4 #ifndef OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED 5 #define OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED 34 bool isInstance()
const {
return !mInstanceParentName.empty(); }
48 void seekToGrid(std::istream&)
const;
49 void seekToBlocks(std::istream&)
const;
50 void seekToEnd(std::istream&)
const;
52 void seekToGrid(std::ostream&)
const;
53 void seekToBlocks(std::ostream&)
const;
54 void seekToEnd(std::ostream&)
const;
58 void writeHeader(std::ostream&)
const;
62 void writeStreamPos(std::ostream&)
const;
70 static Name addSuffix(
const Name&,
int n);
73 static Name stripSuffix(
const Name&);
76 static std::string nameAsString(
const Name&);
80 static Name stringAsUniqueName(
const std::string&);
88 Name mInstanceParentName;
92 bool mSaveFloatAsHalf;
105 #endif // OPENVDB_IO_GRIDDESCRIPTOR_HAS_BEEN_INCLUDED
const Name & gridType() const
Definition: GridDescriptor.h:28
void setBlockPos(int64_t pos)
Definition: GridDescriptor.h:41
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
bool saveFloatAsHalf() const
Definition: GridDescriptor.h:36
int64_t getGridPos() const
Definition: GridDescriptor.h:39
void setEndPos(int64_t pos)
Definition: GridDescriptor.h:44
const Name & gridName() const
Definition: GridDescriptor.h:29
const Name & uniqueName() const
Definition: GridDescriptor.h:30
Definition: Exceptions.h:13
int64_t getEndPos() const
Definition: GridDescriptor.h:45
void setGridPos(int64_t pos)
Definition: GridDescriptor.h:38
bool isInstance() const
Definition: GridDescriptor.h:34
void setInstanceParentName(const Name &name)
Definition: GridDescriptor.h:33
const Name & instanceParentName() const
Definition: GridDescriptor.h:32
int64_t getBlockPos() const
Definition: GridDescriptor.h:42
Definition: GridDescriptor.h:19
std::string Name
Definition: Name.h:19
#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