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 & instanceParentName() const
Definition: GridDescriptor.h:32
void setEndPos(int64_t pos)
Definition: GridDescriptor.h:44
void setInstanceParentName(const Name &name)
Definition: GridDescriptor.h:33
int64_t getGridPos() const
Definition: GridDescriptor.h:39
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
const Name & gridName() const
Definition: GridDescriptor.h:29
void setGridPos(int64_t pos)
Definition: GridDescriptor.h:38
int64_t getBlockPos() const
Definition: GridDescriptor.h:42
static void read(std::istream &is, GridHandle< BufferT > &handle, Codec codec)
bool isInstance() const
Definition: GridDescriptor.h:34
bool saveFloatAsHalf() const
Definition: GridDescriptor.h:36
const Name & uniqueName() const
Definition: GridDescriptor.h:30
std::string Name
Definition: Name.h:17
Definition: Exceptions.h:13
void setBlockPos(int64_t pos)
Definition: GridDescriptor.h:41
int64_t getEndPos() const
Definition: GridDescriptor.h:45
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
const Name & gridType() const
Definition: GridDescriptor.h:28
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:202
Definition: GridDescriptor.h:19