Go to the documentation of this file.
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;
105 #endif // OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED
int64_t getEndPos() const
Definition: GridDescriptor.h:45
GridDescriptor(const GridDescriptor &)=default
GridDescriptor & operator=(const GridDescriptor &)=default
const Name & uniqueName() const
Definition: GridDescriptor.h:30
static Name stripSuffix(const Name &)
Strip from the given name any suffix that is separated by an ASCII "record separator" character and r...
void writeHeader(std::ostream &) const
Write out this descriptor's header information (all data except for stream offsets).
bool saveFloatAsHalf() const
Definition: GridDescriptor.h:36
const Name & instanceParentName() const
Definition: GridDescriptor.h:32
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
std::string Name
Definition: Name.h:17
GridDescriptor(const Name &name, const Name &gridType, bool saveFloatAsHalf=false)
bool isInstance() const
Definition: GridDescriptor.h:34
void seekToGrid(std::ostream &) const
int64_t getBlockPos() const
Definition: GridDescriptor.h:42
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...
void writeStreamPos(std::ostream &) const
Since positions into the stream are known at a later time, they are written out separately.
void setGridPos(int64_t pos)
Definition: GridDescriptor.h:38
const Name & gridName() const
Definition: GridDescriptor.h:29
const Name & gridType() const
Definition: GridDescriptor.h:28
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:146
void seekToBlocks(std::istream &) const
void seekToGrid(std::istream &) const
void setInstanceParentName(const Name &name)
Definition: GridDescriptor.h:33
void setEndPos(int64_t pos)
Definition: GridDescriptor.h:44
const Name & name
Definition: PointAttribute.h:544
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:94
void seekToEnd(std::istream &) const
int64_t getGridPos() const
Definition: GridDescriptor.h:39
void seekToEnd(std::ostream &) const
Definition: Exceptions.h:13
Definition: GridDescriptor.h:20
GridBase::Ptr read(std::istream &)
Read a grid descriptor from the given stream.
void setBlockPos(int64_t pos)
Definition: GridDescriptor.h:41
void seekToBlocks(std::ostream &) const
static Name addSuffix(const Name &, int n)
Append the number n to the given name (separated by an ASCII "record separator" character) and return...
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...