4#ifndef OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED
5#define OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED
34 bool isInstance()
const {
return !mInstanceParentName.empty(); }
88 Name mInstanceParentName;
92 bool mSaveFloatAsHalf;
SharedPtr< GridBase > Ptr
Definition Grid.h:80
GridDescriptor(const GridDescriptor &)=default
const Name & gridName() const
Definition GridDescriptor.h:29
void setBlockPos(int64_t pos)
Definition GridDescriptor.h:41
int64_t getBlockPos() const
Definition GridDescriptor.h:42
void writeStreamPos(std::ostream &) const
Since positions into the stream are known at a later time, they are written out separately.
void writeHeader(std::ostream &) const
Write out this descriptor's header information (all data except for stream offsets).
static std::string nameAsString(const Name &)
Given a name with suffix N, return "name[N]", otherwise just return "name". Use this to produce a hum...
const Name & uniqueName() const
Definition GridDescriptor.h:30
void seekToGrid(std::istream &) const
void seekToGrid(std::ostream &) const
void seekToEnd(std::istream &) const
GridBase::Ptr read(std::istream &)
Read a grid descriptor from the given stream.
const Name & instanceParentName() const
Definition GridDescriptor.h:32
void seekToBlocks(std::istream &) const
const Name & gridType() const
Definition GridDescriptor.h:28
GridDescriptor & operator=(const GridDescriptor &)=default
void seekToBlocks(std::ostream &) const
int64_t getGridPos() const
Definition GridDescriptor.h:39
static Name stripSuffix(const Name &)
Strip from the given name any suffix that is separated by an ASCII "record separator" character and r...
int64_t getEndPos() const
Definition GridDescriptor.h:45
void seekToEnd(std::ostream &) const
GridDescriptor(const Name &name, const Name &gridType, bool saveFloatAsHalf=false)
void setInstanceParentName(const Name &name)
Definition GridDescriptor.h:33
bool saveFloatAsHalf() const
Definition GridDescriptor.h:36
static Name stringAsUniqueName(const std::string &)
Given a string of the form "name[N]", return "name" with the suffix N separated by an ASCII "record s...
bool isInstance() const
Definition GridDescriptor.h:34
static Name addSuffix(const Name &, int n)
Append the number n to the given name (separated by an ASCII "record separator" character) and return...
void setGridPos(int64_t pos)
Definition GridDescriptor.h:38
void setEndPos(int64_t pos)
Definition GridDescriptor.h:44
std::string Name
Definition Name.h:19
Definition Exceptions.h:13
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218