HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStField Class Reference

#include <field.h>

+ Inheritance diagram for HdStField:

Public Member Functions

HDST_API HdStField (SdfPath const &id, TfToken const &fieldType)
 For now, only fieldType HdStTokens->openvdbAsset is supported. More...
 
HDST_API ~HdStField () override
 
HDST_API void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
 Loads field as 3d texture to generate GetFieldResource. More...
 
HDST_API HdDirtyBits GetInitialDirtyBitsMask () const override
 
HDST_API HdStTextureIdentifier
const
GetTextureIdentifier () const
 Initialized by Sync. More...
 
size_t GetTextureMemory () const
 Get memory request for this field. More...
 
- Public Member Functions inherited from HdField
HD_API HdField (SdfPath const &id)
 
virtual HD_API ~HdField ()
 
- Public Member Functions inherited from HdBprim
HD_API HdBprim (SdfPath const &id)
 
virtual HD_API ~HdBprim ()
 
SdfPath constGetId () const
 
virtual HD_API void Finalize (HdRenderParam *renderParam)
 

Static Public Member Functions

static HDST_API const
TfTokenVector
GetSupportedBprimTypes ()
 Bprim types handled by this class. More...
 
static HDST_API bool IsSupportedBprimType (const TfToken &bprimType)
 Can bprim type be handled by this class. More...
 

Additional Inherited Members

- Public Types inherited from HdField
enum  DirtyBits : HdDirtyBits { Clean = 0, DirtyTransform = 1 << 0, DirtyParams = 1 << 1, AllDirty }
 

Detailed Description

Represents a Field Buffer Prim.

Definition at line 39 of file field.h.

Constructor & Destructor Documentation

HDST_API HdStField::HdStField ( SdfPath const id,
TfToken const fieldType 
)

For now, only fieldType HdStTokens->openvdbAsset is supported.

HDST_API HdStField::~HdStField ( )
override

Member Function Documentation

HDST_API HdDirtyBits HdStField::GetInitialDirtyBitsMask ( ) const
overridevirtual

Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. Typically this would be all dirty bits.

Implements HdBprim.

static HDST_API const TfTokenVector& HdStField::GetSupportedBprimTypes ( )
static

Bprim types handled by this class.

HDST_API HdStTextureIdentifier const& HdStField::GetTextureIdentifier ( ) const
inline

Initialized by Sync.

Definition at line 58 of file field.h.

size_t HdStField::GetTextureMemory ( ) const
inline

Get memory request for this field.

Definition at line 63 of file field.h.

static HDST_API bool HdStField::IsSupportedBprimType ( const TfToken bprimType)
static

Can bprim type be handled by this class.

HDST_API void HdStField::Sync ( HdSceneDelegate sceneDelegate,
HdRenderParam renderParam,
HdDirtyBits dirtyBits 
)
overridevirtual

Loads field as 3d texture to generate GetFieldResource.

Implements HdBprim.


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