|
| HF_MALLOC_TAG_NEW ("new HdStPoints") |
|
HDST_API | HdStPoints (SdfPath const &id) |
|
HDST_API | ~HdStPoints () override |
|
HDST_API void | UpdateRenderTag (HdSceneDelegate *delegate, HdRenderParam *renderParam) override |
|
HDST_API void | Sync (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits, TfToken const &reprToken) override |
|
HDST_API void | Finalize (HdRenderParam *renderParam) override |
|
HDST_API HdDirtyBits | GetInitialDirtyBitsMask () const override |
|
HD_API | ~HdPoints () override |
|
HD_API TfTokenVector const & | GetBuiltinPrimvarNames () const override |
|
HD_API | HdRprim (SdfPath const &id) |
|
virtual HD_API | ~HdRprim () |
|
HD_API const
HdRepr::DrawItemUniquePtrVector & | GetDrawItems (TfToken const &reprToken) const |
|
SdfPath const & | GetId () const |
|
int32_t | GetPrimId () const |
| Return the unique instance id. More...
|
|
HD_API void | SetPrimId (int32_t primId) |
| Set the unique instance id. More...
|
|
SdfPath const & | GetInstancerId () const |
|
SdfPath const & | GetMaterialId () const |
|
HD_API void | SetMaterialId (SdfPath const &materialId) |
| Sets a new material binding to be used by this rprim. More...
|
|
HdReprSelector const & | GetReprSelector () const |
|
TfToken const & | GetRenderTag () const |
|
TfToken | GetRenderTag (HdSceneDelegate *delegate) const |
| Returns the render tag associated to this rprim. More...
|
|
GfRange3d | GetExtent (HdSceneDelegate *delegate) const |
| Returns the bounds of the rprim in local, untransformed space. More...
|
|
HdPrimvarDescriptorVector | GetPrimvarDescriptors (HdSceneDelegate *delegate, HdInterpolation interpolation) const |
| Primvar Query. More...
|
|
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. More...
|
|
bool | IsVisible () const |
| Is the prim itself visible. More...
|
|
HD_API void | UpdateReprSelector (HdSceneDelegate *delegate, HdDirtyBits *dirtyBits) |
|
HD_API bool | CanSkipDirtyBitPropagationAndSync (HdDirtyBits bits) const |
|
HD_API HdDirtyBits | PropagateRprimDirtyBits (HdDirtyBits bits) |
|
HD_API void | InitRepr (HdSceneDelegate *delegate, TfToken const &reprToken, HdDirtyBits *dirtyBits) |
|
Points.
Definition at line 44 of file points.h.
Pull invalidated scene data and prepare/update the renderable representation.
This function is told which scene data to pull through the dirtyBits parameter. The first time it's called, dirtyBits comes from _GetInitialDirtyBits(), which provides initial dirty state, but after that it's driven by invalidation tracking in the scene delegate.
The contract for this function is that the prim can only pull on scene delegate buffers that are marked dirty. Scene delegates can and do implement just-in-time data schemes that mean that pulling on clean data will be at best incorrect, and at worst a crash.
This function is called in parallel from worker threads, so it needs to be threadsafe; calls into HdSceneDelegate are ok.
- Parameters
-
sceneDelegate | The data source for this geometry item. |
renderParam | A render delegate object that holds rendering parameters that scene geometry may use. |
dirtyBits | A specifier for which scene data has changed. |
reprToken | The representation that needs to be updated. This is useful for backends that support multiple display representations for an rprim. A given representation may choose to pull on a subset of the dirty state. |
dirtyBits | On input specifies which state is dirty and can be pulled from the scene delegate. On output specifies which bits are still dirty and were not cleaned by the sync. |
Implements HdRprim.