HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
version.h File Reference

Library and file format version numbers. More...

#include "openvdb/Platform.h"
#include <cstddef>
#include <cstdint>
+ Include dependency graph for version.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openvdb::OPENVDB_VERSION_NAME::VersionId
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 

Macros

#define OPENVDB_ABI_VERSION_NUMBER
 The ABI version that OpenVDB was built with. More...
 
#define OPENVDB_LIBRARY_VERSION_STRING
 Library version number string of the form "<major>.<minor>.<patch>". More...
 
#define OPENVDB_LIBRARY_ABI_VERSION_STRING
 Library version number string of the form "<major>.<minor>.<patch>abi<abi>". More...
 
#define OPENVDB_LIBRARY_VERSION_NUMBER
 Library version number as a packed integer ("%02x%02x%04x", major, minor, patch) More...
 
#define OPENVDB_PACKAGE_URL   "https://github.com/sideeffects/openvdb_dev.git"
 Where this version was compiled from if it comes from a git repo. More...
 
#define OPENVDB_PACKAGE_REVISION   "1ad2266321b982b218e76625fdf6514327104264"
 
#define OPENVDB_VERSION_NAME
 The version namespace name for this library version. More...
 
#define OPENVDB_USE_BLOSC
 
#define OPENVDB_USE_ZLIB
 
#define OPENVDB_USE_DELAYED_LOADING
 
#define OPENVDB_USE_EXPLICIT_INSTANTIATION
 
#define OPENVDB_INSTANTIATE   extern template OPENVDB_TEMPLATE_IMPORT
 
#define OPENVDB_INSTANTIATE_CLASS   extern template class OPENVDB_TEMPLATE_IMPORT
 
#define OPENVDB_INSTANTIATE_STRUCT   extern template struct OPENVDB_TEMPLATE_IMPORT
 
#define OPENVDB_REAL_TREE_INSTANTIATE(Function)
 
#define OPENVDB_NUMERIC_TREE_INSTANTIATE(Function)
 
#define OPENVDB_VEC3_TREE_INSTANTIATE(Function)
 
#define OPENVDB_VOLUME_TREE_INSTANTIATE(Function)
 
#define OPENVDB_ALL_TREE_INSTANTIATE(Function)
 
#define OPENVDB_USE_VERSION_NAMESPACE
 
#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
 Library major, minor and patch version numbers. More...
 
#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER
 Library major, minor and patch version numbers. More...
 
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER
 Library major, minor and patch version numbers. More...
 

Enumerations

enum  {
  openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_ROOTNODE_MAP = 213, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_INTERNALNODE_COMPRESSION = 214, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_SIMPLIFIED_GRID_TYPENAME = 215, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_GRID_INSTANCING = 216,
  openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_BOOL_LEAF_OPTIMIZATION = 217, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_BO__OST_UUID = 218, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_NO_GRIDMAP = 219, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_NEW_TRANSFORM = 219,
  openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_SELECTIVE_COMPRESSION = 220, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_FLOAT_FRUSTUM_BBOX = 221, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_NODE_MASK_COMPRESSION = 222, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_BLOSC_COMPRESSION = 223,
  openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_POINT_INDEX_GRID = 223, openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION_MULTIPASS_IO = 224
}
 Notable file format version numbers. More...
 

Functions

constexpr const char * openvdb::OPENVDB_VERSION_NAME::getLibraryVersionString ()
 Return a library version number string of the form "<major>.<minor>.<patch>". More...
 
constexpr const char * openvdb::OPENVDB_VERSION_NAME::getLibraryAbiVersionString ()
 Return a library version number string of the form "<major>.<minor>.<patch>abi<abi>". More...
 
constexpr const char * openvdb::OPENVDB_VERSION_NAME::getPackageUrl ()
 
constexpr const char * openvdb::OPENVDB_VERSION_NAME::getPackageRevision ()
 

Variables

const int32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_MAGIC = 0x56444220
 The magic number is stored in the first four bytes of every VDB file. More...
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_LIBRARY_MAJOR_VERSION
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_LIBRARY_MINOR_VERSION
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_LIBRARY_PATCH_VERSION
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_LIBRARY_VERSION
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_ABI_VERSION
 
const uint32_t openvdb::OPENVDB_VERSION_NAME::OPENVDB_FILE_VERSION = 224
 The current version number of the VDB file format. More...
 

Detailed Description

Library and file format version numbers.

When the library is built with the latest ABI, its namespace has the form openvdb::vX_Y, where X and Y are the major and minor version numbers.

The library can be built using an older ABI by changing the value of the OPENVDB_ABI_VERSION_NUMBER. (e.g., via -DOPENVDB_ABI_VERSION_NUMBER=N). In that case, the namespace has the form openvdb::vX_YabiN, where N is the ABI version number.

The ABI version must be set consistently when building code that depends on OpenVDB.

The ABI version number defaults to the library major version number, which gets incremented whenever changes are made to the ABI of the Grid class or related classes (Tree, Transform, Metadata, etc.). Setting the ABI version number to an earlier library version number disables grid ABI changes made since that library version.

The library minor version number gets incremented whenever a change is made to any aspect of the public API (not just the grid API) that necessitates changes to client code. Changes to APIs in private or internal namespaces do not trigger a minor version number increment; such APIs should not be used in client code.

A patch version number increment indicates a change—usually a new feature or a bug fix—that does not necessitate changes to client code but rather only recompilation of that code (because the library namespace incorporates the version number).

The file format version number gets incremented when it becomes possible to write files that cannot safely be read with older versions of the library. Not all files written in a newer format are incompatible with older libraries, however. And in general, files containing grids of unknown type can be read safely, although the unknown grids will not be accessible.

Definition in file version.h.

Macro Definition Documentation

#define OPENVDB_ABI_VERSION_NUMBER

The ABI version that OpenVDB was built with.

Note
This ifndef exists for compatibility with older versions of OpenVDB. This value should never be different from the value configured when OpenVDB was built, but this previously needed to be defined by downstream software. Redefining it here would cause build failures, so this allows users to transition and remove the define in their build systems.

Definition at line 74 of file version.h.

#define OPENVDB_ALL_TREE_INSTANTIATE (   Function)
Value:
#define OPENVDB_INSTANTIATE
Definition: version.h:152
NanoTree< int32_t > Int32Tree
Definition: NanoVDB.h:6474
NanoTree< bool > BoolTree
Definition: NanoVDB.h:6483
NanoTree< ValueMask > MaskTree
Definition: NanoVDB.h:6482
NanoTree< float > FloatTree
Definition: NanoVDB.h:6468
NanoTree< int64_t > Int64Tree
Definition: NanoVDB.h:6476
tree::Tree4< Vec3d, 5, 4, 3 >::Type Vec3DTree
Definition: openvdb.h:63
NanoTree< double > DoubleTree
Definition: NanoVDB.h:6473
NanoTree< Vec3i > Vec3ITree
Definition: NanoVDB.h:6481
tree::Tree4< Vec3f, 5, 4, 3 >::Type Vec3STree
Definition: openvdb.h:65
tree::Tree< tree::RootNode< tree::InternalNode< tree::InternalNode< PointDataLeafNode< PointDataIndex32, 3 >, 4 >, 5 >>> PointDataTree
Point index tree configured to match the default VDB configurations.

Definition at line 178 of file version.h.

#define OPENVDB_INSTANTIATE   extern template OPENVDB_TEMPLATE_IMPORT

Definition at line 152 of file version.h.

#define OPENVDB_INSTANTIATE_CLASS   extern template class OPENVDB_TEMPLATE_IMPORT

Definition at line 153 of file version.h.

#define OPENVDB_INSTANTIATE_STRUCT   extern template struct OPENVDB_TEMPLATE_IMPORT

Definition at line 154 of file version.h.

#define OPENVDB_LIBRARY_ABI_VERSION_STRING

Library version number string of the form "<major>.<minor>.<patch>abi<abi>".

This is a macro rather than a static constant because we typically want the compile-time version number, not the runtime version number (although the two are usually the same).

Definition at line 89 of file version.h.

#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER

Library major, minor and patch version numbers.

Definition at line 59 of file version.h.

#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER

Library major, minor and patch version numbers.

Definition at line 61 of file version.h.

#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER

Library major, minor and patch version numbers.

Definition at line 63 of file version.h.

#define OPENVDB_LIBRARY_VERSION_NUMBER

Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)

Definition at line 93 of file version.h.

#define OPENVDB_LIBRARY_VERSION_STRING

Library version number string of the form "<major>.<minor>.<patch>".

This is a macro rather than a static constant because we typically want the compile-time version number, not the runtime version number (although the two are usually the same).

Definition at line 82 of file version.h.

#define OPENVDB_NUMERIC_TREE_INSTANTIATE (   Function)
Value:
#define OPENVDB_INSTANTIATE
Definition: version.h:152
NanoTree< int32_t > Int32Tree
Definition: NanoVDB.h:6474
NanoTree< float > FloatTree
Definition: NanoVDB.h:6468
NanoTree< int64_t > Int64Tree
Definition: NanoVDB.h:6476
NanoTree< double > DoubleTree
Definition: NanoVDB.h:6473

Definition at line 160 of file version.h.

#define OPENVDB_PACKAGE_REVISION   "1ad2266321b982b218e76625fdf6514327104264"

Definition at line 98 of file version.h.

#define OPENVDB_PACKAGE_URL   "https://github.com/sideeffects/openvdb_dev.git"

Where this version was compiled from if it comes from a git repo.

Definition at line 97 of file version.h.

#define OPENVDB_REAL_TREE_INSTANTIATE (   Function)
Value:
#define OPENVDB_INSTANTIATE
Definition: version.h:152
NanoTree< float > FloatTree
Definition: NanoVDB.h:6468
NanoTree< double > DoubleTree
Definition: NanoVDB.h:6473

Definition at line 157 of file version.h.

#define OPENVDB_USE_BLOSC

Definition at line 133 of file version.h.

#define OPENVDB_USE_DELAYED_LOADING

Definition at line 143 of file version.h.

#define OPENVDB_USE_EXPLICIT_INSTANTIATION

Definition at line 148 of file version.h.

#define OPENVDB_USE_VERSION_NAMESPACE

By default, the OPENVDB_REQUIRE_VERSION_NAME macro is undefined, and symbols from the version namespace are promoted to the top-level namespace so that, for example, openvdb::v5_0::io::File can be referred to simply as openvdb::io::File.

When OPENVDB_REQUIRE_VERSION_NAME is defined, symbols must be fully namespace-qualified.

Definition at line 239 of file version.h.

#define OPENVDB_USE_ZLIB

Definition at line 138 of file version.h.

#define OPENVDB_VEC3_TREE_INSTANTIATE (   Function)
Value:
#define OPENVDB_INSTANTIATE
Definition: version.h:152
tree::Tree4< Vec3d, 5, 4, 3 >::Type Vec3DTree
Definition: openvdb.h:63
NanoTree< Vec3i > Vec3ITree
Definition: NanoVDB.h:6481
tree::Tree4< Vec3f, 5, 4, 3 >::Type Vec3STree
Definition: openvdb.h:65

Definition at line 165 of file version.h.

#define OPENVDB_VERSION_NAME

The version namespace name for this library version.

When the ABI version number matches the library major version number, symbols are named as in the following examples:

  • openvdb::vX_Y::Vec3i
  • openvdb::vX_Y::io::File
  • openvdb::vX_Y::tree::Tree

where X and Y are the major and minor version numbers.

When the ABI version number does not match the library major version number, symbol names include the ABI version:

  • openvdb::vX_YabiN::Vec3i
  • openvdb::vX_YabiN::io::File
  • openvdb::vX_YabiN::tree::Tree

where X, Y and N are the major, minor and ABI version numbers, respectively.

Definition at line 119 of file version.h.

#define OPENVDB_VOLUME_TREE_INSTANTIATE (   Function)
Value:
#define OPENVDB_INSTANTIATE
Definition: version.h:152
NanoTree< int32_t > Int32Tree
Definition: NanoVDB.h:6474
NanoTree< bool > BoolTree
Definition: NanoVDB.h:6483
NanoTree< float > FloatTree
Definition: NanoVDB.h:6468
NanoTree< int64_t > Int64Tree
Definition: NanoVDB.h:6476
tree::Tree4< Vec3d, 5, 4, 3 >::Type Vec3DTree
Definition: openvdb.h:63
NanoTree< double > DoubleTree
Definition: NanoVDB.h:6473
NanoTree< Vec3i > Vec3ITree
Definition: NanoVDB.h:6481
tree::Tree4< Vec3f, 5, 4, 3 >::Type Vec3STree
Definition: openvdb.h:65

Definition at line 169 of file version.h.