31 #ifndef OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED 32 #define OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED 40 #include <boost/uuid/uuid.hpp> 73 virtual Ptr copy()
const;
77 std::string getUniqueTag()
const;
79 bool isIdentical(
const std::string& uuidStr)
const;
88 std::string version()
const;
99 static bool hasBloscCompression();
124 static bool isDelayedLoadingEnabled();
136 void setFormatVersion(std::istream&);
143 void setLibraryVersion(std::istream&);
151 void setGridCompression(std::ostream&,
const GridBase&)
const;
154 static void readGridCompression(std::istream&);
157 static int32_t readGridCount(std::istream&);
161 #if OPENVDB_ABI_VERSION_NUMBER >= 3 185 std::ostream&,
bool seekable)
const;
189 bool readHeader(std::istream&);
193 void writeHeader(std::ostream&,
bool seekable)
const;
202 friend class ::TestFile;
205 uint32_t mFileVersion;
209 mutable boost::uuids::uuid mUuid;
212 bool mInputHasGridOffsets;
215 bool mEnableInstancing;
217 uint32_t mCompression;
219 bool mEnableGridStats;
226 #endif // OPENVDB_IO_ARCHIVE_HAS_BEEN_INCLUDED std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:442
void setInstancingEnabled(bool b)
Specify whether trees shared by multiple grids should be written out only once (true) or once per gri...
Definition: Archive.h:96
Abstract base class for typed grids.
Definition: Grid.h:104
SharedPtr< const Archive > ConstPtr
Definition: Archive.h:63
virtual void write(const GridCPtrVec &, const MetaMap &=MetaMap()) const
Write the grids in the given container to this archive's output stream.
Definition: Archive.h:117
VersionId libraryVersion() const
Return the (major, minor) version number of the library that was used to write the input stream.
Definition: Archive.h:85
SharedPtr< Archive > Ptr
Definition: Archive.h:62
bool isGridStatsMetadataEnabled() const
Return true if grid statistics (active voxel count and bounding box, etc.) are computed and written a...
Definition: Archive.h:111
uint32_t compression() const
Return a bit mask specifying compression options for the data stream.
Definition: Archive.h:102
Grid serializer/unserializer.
Definition: Archive.h:59
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:136
static const uint32_t DEFAULT_COMPRESSION_FLAGS
Definition: Archive.h:65
bool inputHasGridOffsets() const
Return true if the input stream contains grid offsets that allow for random access or partial reading...
Definition: Archive.h:129
Definition: Exceptions.h:40
Axis-aligned bounding box of signed integer coordinates.
Definition: Coord.h:264
bool isInstancingEnabled() const
Return true if trees shared by multiple grids are written out only once, false if they are written ou...
Definition: Archive.h:92
std::map< Name, GridBase::Ptr > NamedGridMap
Definition: Archive.h:170
void setCompression(uint32_t c)
Specify whether and how the data stream should be compressed.
Definition: Archive.h:107
Library and file format version numbers.
Definition: version.h:244
std::shared_ptr< T > SharedPtr
Definition: Types.h:139
void setInputHasGridOffsets(bool b)
Definition: Archive.h:130
SharedPtr< const GridBase > ConstPtr
Definition: Grid.h:108
SharedPtr< GridBase > Ptr
Definition: Grid.h:107
OPENVDB_API void setDataCompression(std::ios_base &, uint32_t compressionFlags)
Associate with the given stream a bitwise OR of compression option flags (COMPRESS_ZIP,...
uint32_t fileVersion() const
Return the file format version number of the input stream.
Definition: Archive.h:82
std::vector< GridBase::Ptr > GridPtrVec
Definition: Grid.h:437
void setGridStatsMetadataEnabled(bool b)
Specify whether grid statistics (active voxel count and bounding box, etc.) should be computed and wr...
Definition: Archive.h:114
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:188
std::string Name
Definition: Name.h:44
Definition: GridDescriptor.h:46