![]() |
OpenVDB 13.2.0
|
Container for metadata describing how to unserialize grids from and/or serialize grids to a stream (which file format, compression scheme, etc. to use) More...
#include <openvdb/io/io.h>
Public Types | |
| using | Ptr = SharedPtr<StreamMetadata> |
| using | ConstPtr = SharedPtr<const StreamMetadata> |
| using | AuxDataMap = std::map<std::string, std::any> |
Public Member Functions | |
| StreamMetadata () | |
| StreamMetadata (const StreamMetadata &) | |
| StreamMetadata (std::ios_base &) | |
| ~StreamMetadata () | |
| StreamMetadata & | operator= (const StreamMetadata &) |
| void | transferTo (std::ios_base &) const |
| Transfer metadata items directly to the given stream. | |
| uint32_t | fileVersion () const |
| void | setFileVersion (uint32_t) |
| VersionId | libraryVersion () const |
| void | setLibraryVersion (VersionId) |
| uint32_t | compression () const |
| void | setCompression (uint32_t) |
| uint32_t | gridClass () const |
| void | setGridClass (uint32_t) |
| const void * | backgroundPtr () const |
| void | setBackgroundPtr (const void *) |
| bool | halfFloat () const |
| void | setHalfFloat (bool) |
| bool | writeGridStats () const |
| void | setWriteGridStats (bool) |
| bool | seekable () const |
| void | setSeekable (bool) |
| bool | delayedLoadMeta () const |
| bool | countingPasses () const |
| void | setCountingPasses (bool) |
| bool | allocateLeafBuffers () const |
Return true if readTopology() should allocate and zero-fill leaf buffers after loading the tree structure (topology-only read mode). | |
| void | setAllocateLeafBuffers (bool) |
| uint32_t | pass () const |
| void | setPass (uint32_t) |
| MetaMap & | gridMetadata () |
| Return a (reference to a) copy of the metadata of the grid currently being read or written. | |
| const MetaMap & | gridMetadata () const |
| AuxDataMap & | auxData () |
| Return a map that can be populated with arbitrary user data. | |
| const AuxDataMap & | auxData () const |
| std::string | str () const |
| Return a string describing this stream metadata. | |
Container for metadata describing how to unserialize grids from and/or serialize grids to a stream (which file format, compression scheme, etc. to use)
This class is mainly for internal use.
| using AuxDataMap = std::map<std::string, std::any> |
| using ConstPtr = SharedPtr<const StreamMetadata> |
| using Ptr = SharedPtr<StreamMetadata> |
| StreamMetadata | ( | ) |
| StreamMetadata | ( | const StreamMetadata & | ) |
|
explicit |
| ~StreamMetadata | ( | ) |
| bool allocateLeafBuffers | ( | ) | const |
Return true if readTopology() should allocate and zero-fill leaf buffers after loading the tree structure (topology-only read mode).
| AuxDataMap & auxData | ( | ) |
Return a map that can be populated with arbitrary user data.
| const AuxDataMap & auxData | ( | ) | const |
| const void * backgroundPtr | ( | ) | const |
| uint32_t compression | ( | ) | const |
| bool countingPasses | ( | ) | const |
| bool delayedLoadMeta | ( | ) | const |
| uint32_t fileVersion | ( | ) | const |
| uint32_t gridClass | ( | ) | const |
| MetaMap & gridMetadata | ( | ) |
Return a (reference to a) copy of the metadata of the grid currently being read or written.
Some grid metadata might duplicate information returned by gridClass(), backgroundPtr() and other accessors, but those values are not guaranteed to be kept in sync.
| const MetaMap & gridMetadata | ( | ) | const |
| bool halfFloat | ( | ) | const |
| VersionId libraryVersion | ( | ) | const |
| StreamMetadata & operator= | ( | const StreamMetadata & | ) |
| uint32_t pass | ( | ) | const |
| bool seekable | ( | ) | const |
| void setAllocateLeafBuffers | ( | bool | ) |
| void setBackgroundPtr | ( | const void * | ) |
| void setCompression | ( | uint32_t | ) |
| void setCountingPasses | ( | bool | ) |
| void setFileVersion | ( | uint32_t | ) |
| void setGridClass | ( | uint32_t | ) |
| void setHalfFloat | ( | bool | ) |
| void setLibraryVersion | ( | VersionId | ) |
| void setPass | ( | uint32_t | ) |
| void setSeekable | ( | bool | ) |
| void setWriteGridStats | ( | bool | ) |
| std::string str | ( | ) | const |
Return a string describing this stream metadata.
| void transferTo | ( | std::ios_base & | ) | const |
Transfer metadata items directly to the given stream.
| bool writeGridStats | ( | ) | const |