4 #ifndef OPENVDB_IO_IO_HAS_BEEN_INCLUDED
5 #define OPENVDB_IO_IO_HAS_BEEN_INCLUDED
45 void transferTo(std::ios_base&)
const;
47 uint32_t fileVersion()
const;
48 void setFileVersion(uint32_t);
53 uint32_t compression()
const;
54 void setCompression(uint32_t);
56 uint32_t gridClass()
const;
59 const void* backgroundPtr()
const;
60 void setBackgroundPtr(
const void*);
62 bool halfFloat()
const;
65 bool writeGridStats()
const;
66 void setWriteGridStats(
bool);
68 bool seekable()
const;
69 void setSeekable(
bool);
71 bool delayedLoadMeta()
const;
73 bool countingPasses()
const;
74 void setCountingPasses(
bool);
76 uint32_t pass()
const;
77 void setPass(uint32_t);
79 uint64_t leaf()
const;
80 void setLeaf(uint64_t);
89 const MetaMap& gridMetadata()
const;
100 uint32_t __test()
const;
102 void __setTest(uint32_t);
109 std::unique_ptr<Impl> mImpl;
132 #ifdef OPENVDB_USE_DELAYED_LOADING
141 MappedFile(
const MappedFile&) =
delete;
142 MappedFile&
operator=(
const MappedFile&) =
delete;
161 void setNotifier(
const Notifier&);
163 void clearNotifier();
167 friend class ::TestMappedFile;
172 std::unique_ptr<Impl> mImpl;
175 #endif // OPENVDB_USE_DELAYED_LOADING
249 #ifdef OPENVDB_USE_DELAYED_LOADING
257 #endif // OPENVDB_USE_DELAYED_LOADING
279 #endif // OPENVDB_IO_IO_HAS_BEEN_INCLUDED
std::ostream & operator<<(std::ostream &, const StreamMetadata &)
Write a description of the given metadata to an output stream.
OPENVDB_API void setDataCompression(std::ios_base &, uint32_t compressionFlags)
Associate with the given stream a bitwise OR of compression option flags (COMPRESS_ZIP, COMPRESS_ACTIVE_MASK, etc.) specifying whether and how input data is compressed or output data should be compressed.
OPENVDB_API void setGridClass(std::ios_base &, uint32_t)
Associate with the given stream the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently ...
GT_API const UT_StringHolder filename
OPENVDB_API const void * getGridBackgroundValuePtr(std::ios_base &)
Return a pointer to the background value of the grid currently being read from or written to the give...
OPENVDB_API void setHalfFloat(std::ios_base &, bool)
Specify whether floating-point values should be quantized to 16 bits when writing to the given stream...
std::string getErrorString(int errorNum)
Return a string (possibly empty) describing the given system error code.
OPENVDB_API std::string getVersion(std::ios_base &)
Return a string of the form "<major>.<minor>/<format>", giving the library and file format version nu...
GLsizei const GLchar *const * string
OPENVDB_API uint32_t getDataCompression(std::ios_base &)
Return a bitwise OR of compression option flags (COMPRESS_ZIP, COMPRESS_ACTIVE_MASK, etc.) specifying whether and how input data is compressed or output data should be compressed.
Leaf nodes that require multi-pass I/O must inherit from this struct.
Grid archive associated with a file on disk.
OPENVDB_API bool getHalfFloat(std::ios_base &)
Return true if floating-point values should be quantized to 16 bits when writing to the given stream ...
#define OPENVDB_USE_VERSION_NAMESPACE
OPENVDB_API VersionId getLibraryVersion(std::ios_base &)
Return the (major, minor) library version number associated with the given input stream.
OPENVDB_API SharedPtr< StreamMetadata > clearStreamMetadataPtr(std::ios_base &)
Dissociate the given stream from its metadata object (if it has one) and return a shared pointer to t...
std::shared_ptr< T > SharedPtr
OPENVDB_API void setVersion(std::ios_base &, const VersionId &libraryVersion, uint32_t fileVersion)
Associate specific file format and library version numbers with the given stream. ...
OPENVDB_API bool getWriteGridStatsMetadata(std::ios_base &)
Return true if grid statistics (active voxel count and bounding box, etc.) should be computed and sto...
OPENVDB_API void setStreamMetadataPtr(std::ios_base &, SharedPtr< StreamMetadata > &, bool transfer=true)
Associate the given stream with (a shared pointer to) an object that stores metadata (file format...
OPENVDB_API void setGridBackgroundValuePtr(std::ios_base &, const void *background)
Specify (a pointer to) the background value of the grid currently being read from or written to the g...
Library and file format version numbers.
OPENVDB_API uint32_t getGridClass(std::ios_base &)
Return the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently being read from or writte...
LeafData & operator=(const LeafData &)=delete
OPENVDB_API SharedPtr< StreamMetadata > getStreamMetadataPtr(std::ios_base &)
Return a shared pointer to an object that stores metadata (file format, compression scheme...
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
OPENVDB_API uint32_t getFormatVersion(std::ios_base &)
Return the file format version number associated with the given input stream.
OPENVDB_API void setWriteGridStatsMetadata(std::ios_base &, bool writeGridStats)
Specify whether to compute grid statistics (active voxel count and bounding box, etc.) and store them as grid metadata when writing to the given stream.
OPENVDB_API void setCurrentVersion(std::istream &)
Associate the current file format and library version numbers with the given input stream...