Loading...
Searching...
No Matches
HdStCapsule Class Referencefinal

Represents a tapered capsule that can be rendered natively by Storm. More...

#include <capsule.h>

+ Inheritance diagram for HdStCapsule:

Public Member Functions

 HF_MALLOC_TAG_NEW ("new HdStCapsule")
 
HDST_API HdStCapsule (SdfPath const &id)
 
- Public Member Functions inherited from HdStImplicitSurface
HDST_API void UpdateRenderTag (HdSceneDelegate *delegate, HdRenderParam *renderParam) override
 
HDST_API void Sync (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits, TfToken const &reprToken) override
 Pull invalidated scene data and prepare/update the renderable representation.
 
HDST_API void Finalize (HdRenderParam *renderParam) override
 Finalizes object resources.
 
HDST_API HdDirtyBits GetInitialDirtyBitsMask () const override
 Returns the set of dirty bits that should be added to the change tracker for this prim, when this prim is inserted.
 
- Public Member Functions inherited from HdImplicitSurface
bool IsDoubleSided (HdSceneDelegate *delegate) const
 Render State.
 
HdCullStyle GetCullStyle (HdSceneDelegate *delegate) const
 
HdDisplayStyle GetDisplayStyle (HdSceneDelegate *delegate) const
 
HD_API TfTokenVector const & GetBuiltinPrimvarNames () const override
 Returns the names of built-in primvars, i.e.
 
- Public Member Functions inherited from HdRprim
HD_API HdRprim (SdfPath const &id)
 
HD_API const HdRepr::DrawItemUniquePtrVector & GetDrawItems (TfToken const &reprToken) const
 Returns the draw items for the requested repr token, if any.
 
SdfPath const & GetId () const
 Returns the identifier of this Rprim.
 
int32_t GetPrimId () const
 Return the unique instance id.
 
HD_API void SetPrimId (int32_t primId)
 Set the unique instance id.
 
SdfPath const & GetInstancerId () const
 Returns the identifier of the instancer (if any) for this Rprim.
 
SdfPath const & GetMaterialId () const
 Returns the path of the material to which this Rprim is bound.
 
HD_API void SetMaterialId (SdfPath const &materialId)
 Sets a new material binding to be used by this rprim.
 
HdReprSelector const & GetReprSelector () const
 
TfToken const & GetRenderTag () const
 
TfToken GetRenderTag (HdSceneDelegate *delegate) const
 Returns the render tag associated to this rprim.
 
GfRange3d GetExtent (HdSceneDelegate *delegate) const
 Returns the bounds of the rprim in local, untransformed space.
 
HdPrimvarDescriptorVector GetPrimvarDescriptors (HdSceneDelegate *delegate, HdInterpolation interpolation) const
 Primvar Query.
 
VtValue GetPrimvar (HdSceneDelegate *delegate, const TfToken &name) const
 
VtValue GetIndexedPrimvar (HdSceneDelegate *delegate, const TfToken &name, VtIntArray *indices) const
 
HD_API VtMatrix4dArray GetInstancerTransforms (HdSceneDelegate *delegate)
 
HD_API bool IsDirty (HdChangeTracker &changeTracker) const
 Returns true if any dirty flags are set for this rprim.
 
bool IsVisible () const
 Is the prim itself visible.
 
HD_API void UpdateReprSelector (HdSceneDelegate *delegate, HdDirtyBits *dirtyBits)
 
HD_API bool CanSkipDirtyBitPropagationAndSync (HdDirtyBits bits) const
 This function gives an Rprim the chance to "early exit" from dirty bit propagation, delegate sync and rprim sync altogether.
 
HD_API HdDirtyBits PropagateRprimDirtyBits (HdDirtyBits bits)
 This function gives an Rprim the chance to set additional dirty bits based on those set in the change tracker, before passing the dirty bits to the scene delegate.
 
HD_API void InitRepr (HdSceneDelegate *delegate, TfToken const &reprToken, HdDirtyBits *dirtyBits)
 Initialize the representation of this Rprim by calling _InitRepr.
 

Protected Member Functions

HDST_API void _PopulateCustomConstantPrimvars (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem) override
 
- Protected Member Functions inherited from HdStImplicitSurface
HDST_API HdStImplicitSurface (SdfPath const &id, TfToken const &primType, HdBufferSpecVector customSpecs)
 
HDST_API void _InitRepr (TfToken const &reprToken, HdDirtyBits *dirtyBits) override
 Initialize the given representation of this Rprim.
 
HDST_API HdDirtyBits _PropagateDirtyBits (HdDirtyBits bits) const override
 This callback from Rprim gives the prim an opportunity to set additional dirty bits based on those already set.
 
void _UpdateRepr (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, TfToken const &reprToken, HdDirtyBits *dirtyBitsState)
 
void _UpdateDrawItem (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, HdDirtyBits *dirtyBits)
 
void _UpdateDrawItemGeometricShader (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, HdImplicitSurfaceReprDesc const &desc)
 
void _UpdateShadersForAllReprs (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, bool updateMaterialNetworkShader, bool updateGeometricShader)
 
void _UpdateMaterialTagsForAllReprs (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam)
 
void _PopulateIndexBuffer (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem)
 
- Protected Member Functions inherited from HdImplicitSurface
HD_API HdImplicitSurface (SdfPath const &id)
 
- Protected Member Functions inherited from HdRprim
HD_API HdReprSharedPtr const & _GetRepr (TfToken const &reprToken) const
 
HD_API void _UpdateVisibility (HdSceneDelegate *sceneDelegate, HdDirtyBits *dirtyBits)
 
HD_API void _UpdateInstancer (HdSceneDelegate *sceneDelegate, HdDirtyBits *dirtyBits)
 

Additional Inherited Members

- Static Public Member Functions inherited from HdImplicitSurface
static HD_API void ConfigureRepr (TfToken const &reprName, HdImplicitSurfaceReprDesc desc)
 Configure geometric style of drawItems for reprName.
 
- Protected Types inherited from HdImplicitSurface
using _ImplicitSurfaceReprConfig = _ReprDescConfigs<HdImplicitSurfaceReprDesc>
 
- Protected Types inherited from HdRprim
using _ReprVector = std::vector<std::pair<TfToken, HdReprSharedPtr>>
 
- Static Protected Member Functions inherited from HdImplicitSurface
static HD_API _ImplicitSurfaceReprConfig::DescArray _GetReprDesc (TfToken const &reprName)
 
- Protected Attributes inherited from HdStImplicitSurface
const TfToken _primType
 
const HdBufferSpecVector _customSpecs
 
- Protected Attributes inherited from HdRprim
HdRprimSharedData _sharedData
 
HdReprSelector _authoredReprSelector
 
TfToken _renderTag
 
_ReprVector _reprs
 

Detailed Description

Represents a tapered capsule that can be rendered natively by Storm.

Definition at line 18 of file capsule.h.

Member Function Documentation

◆ _PopulateCustomConstantPrimvars()

HDST_API void _PopulateCustomConstantPrimvars ( HdSceneDelegate * sceneDelegate,
HdRenderParam * renderParam,
HdStDrawItem * drawItem )
overrideprotectedvirtual

Implements HdStImplicitSurface.


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