![]() |
|
A draw item is a light-weight representation of an HdRprim's resources and material to be used for rendering. More...
Inherited by HdStDrawItem.
Public Member Functions | |
| HF_MALLOC_TAG_NEW ("new HdDrawItem") | |
| HD_API | HdDrawItem (HdRprimSharedData const *sharedData) |
| SdfPath const & | GetRprimID () const |
| GfBBox3d const & | GetBounds () const |
| GfRange3d const & | GetExtent () const |
| GfMatrix4d const & | GetMatrix () const |
| HdDrawingCoord * | GetDrawingCoord () |
| bool | GetVisible () const |
| Returns the authored visibility, expressed by the delegate. More... | |
| TfToken const & | GetMaterialTag () const |
| void | SetMaterialTag (TfToken const &materialTag) |
Protected Member Functions | |
| HdDrawingCoord const & | _GetDrawingCoord () const |
| Returns the drawingCoord. More... | |
| HdRprimSharedData const * | _GetSharedData () const |
| Returns the shared data. More... | |
A draw item is a light-weight representation of an HdRprim's resources and material to be used for rendering.
The visual representation (HdRepr) of an HdRprim might require multiple draw items.
HdDrawItem(s) are created by the HdRprim (HdMesh, HdBasisCurve, ..) for each HdRepr. The relevant compositional hierarchy is:
HdRprim | +–HdRepr(s) | +–HdDrawItem(s)
HdDrawItem(s) are consumed by HdRenderPass for its HdRprimCollection via HdRenderIndex::GetDrawItems.
Definition at line 47 of file drawItem.h.
|
inlineprotected |
Returns the drawingCoord.
Definition at line 87 of file drawItem.h.
|
inlineprotected |
Returns the shared data.
Definition at line 92 of file drawItem.h.
|
inline |
Returns the authored visibility, expressed by the delegate.
Definition at line 75 of file drawItem.h.