Loading...
Searching...
No Matches
HioFieldTextureData Class Referenceabstract

An interface class for reading volume files having a transformation. More...

#include <fieldTextureData.h>

Public Member Functions

virtual const GfBBox3dGetBoundingBox () const =0
 Bounding box describing how 3d texture maps into world space.
 
virtual int ResizedWidth () const =0
 
virtual int ResizedHeight () const =0
 
virtual int ResizedDepth () const =0
 
virtual HioFormat GetFormat () const =0
 
virtual bool Read ()=0
 
virtual bool HasRawBuffer () const =0
 
virtual unsigned char const * GetRawBuffer () const =0
 

Static Public Member Functions

static HIO_API HioFieldTextureDataSharedPtr New (std::string const &filePath, std::string const &fieldName, int fieldIndex, std::string const &fieldPurpose, size_t targetMemory)
 Load Volume Field Data.
 

Detailed Description

An interface class for reading volume files having a transformation.

Definition at line 49 of file fieldTextureData.h.

Member Function Documentation

◆ GetBoundingBox()

virtual const GfBBox3d & GetBoundingBox ( ) const
pure virtual

Bounding box describing how 3d texture maps into world space.

◆ New()

static HIO_API HioFieldTextureDataSharedPtr New ( std::string const &  filePath,
std::string const &  fieldName,
int  fieldIndex,
std::string const &  fieldPurpose,
size_t  targetMemory 
)
static

Load Volume Field Data.

fieldName corresponds to the gridName in an OpenVDB file or to the layer/attribute name in a Field3D file. fieldIndex corresponds to the partition index fieldPurpose corresponds to the partition name/grouping

Returns nullptr and posts an error if the specified data cannot be loaded.


The documentation for this class was generated from the following file: