4 #ifndef OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED
5 #define OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED
13 #include <hboost/uuid/uuid.hpp>
72 static bool hasBloscCompression();
75 static bool hasZLibCompression();
100 static bool isDelayedLoadingEnabled();
112 void setFormatVersion(std::istream&);
119 void setLibraryVersion(std::istream&);
127 void setGridCompression(std::ostream&,
const GridBase&)
const;
130 static void readGridCompression(std::istream&);
133 static int32_t readGridCount(std::istream&);
159 std::ostream&,
bool seekable)
const;
163 bool readHeader(std::istream&);
167 void writeHeader(std::ostream&,
bool seekable)
const;
176 friend class ::TestFile;
179 uint32_t mFileVersion;
183 mutable hboost::uuids::uuid mUuid;
186 bool mInputHasGridOffsets;
189 bool mEnableInstancing;
191 uint32_t mCompression;
193 bool mEnableGridStats;
200 #endif // OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED
Grid serializer/unserializer.
uint32_t fileVersion() const
Return the file format version number of the input 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.
GLboolean GLboolean GLboolean b
SharedPtr< GridBase > Ptr
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
#define OPENVDB_USE_VERSION_NAMESPACE
bool inputHasGridOffsets() const
Return true if the input stream contains grid offsets that allow for random access or partial reading...
uint32_t compression() const
Return a bit mask specifying compression options for the data stream.
std::vector< GridBase::Ptr > GridPtrVec
void setGridStatsMetadataEnabled(bool b)
Specify whether grid statistics (active voxel count and bounding box, etc.) should be computed and wr...
std::shared_ptr< T > SharedPtr
Abstract base class for typed grids.
void setCompression(uint32_t c)
Specify whether and how the data stream should be compressed.
void setInstancingEnabled(bool b)
Specify whether trees shared by multiple grids should be written out only once (true) or once per gri...
GLsizei const GLchar *const * string
bool isGridStatsMetadataEnabled() const
Return true if grid statistics (active voxel count and bounding box, etc.) are computed and written a...
static const uint32_t DEFAULT_COMPRESSION_FLAGS
GT_API const UT_StringHolder version
SharedPtr< const Archive > ConstPtr
virtual void write(const GridCPtrVec &, const MetaMap &=MetaMap()) const
Write the grids in the given container to this archive's output stream.
Library and file format version numbers.
SharedPtr< const GridBase > ConstPtr
void setInputHasGridOffsets(bool b)
bool isInstancingEnabled() const
Return true if trees shared by multiple grids are written out only once, false if they are written ou...
VersionId libraryVersion() const
Return the (major, minor) version number of the library that was used to write the input stream...
void write(T &out, bool v)
std::vector< GridBase::ConstPtr > GridCPtrVec
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
std::map< Name, GridBase::Ptr > NamedGridMap