All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdRepr Class Referencefinal

An HdRepr refers to a (single) topological representation of an rprim, and owns the draw item(s) that visually represent it. More...

Public Types

using DrawItemUniquePtr = std::unique_ptr< HdDrawItem >
 
using DrawItemUniquePtrVector = std::vector< DrawItemUniquePtr >
 

Public Member Functions

const DrawItemUniquePtrVector & GetDrawItems () const
 Returns the draw items for this representation. More...
 
void AddDrawItem (std::unique_ptr< HdDrawItem > &&item)
 Transfers ownership of a draw item to this repr. More...
 
HdDrawItemGetDrawItem (size_t index) const
 Returns the draw item at the requested index. More...
 

Detailed Description

An HdRepr refers to a (single) topological representation of an rprim, and owns the draw item(s) that visually represent it.

The draw items are populated by the rprim. The relevant compositional hierarchy is:

HdRprim | +–HdRepr(s) | +–HdDrawItem(s)

When multiple topological representations are required for an rprim, we use HdReprSelector to compose the individual representations.

Definition at line 156 of file repr.h.

Member Function Documentation

void AddDrawItem ( std::unique_ptr< HdDrawItem > &&  item)
inline

Transfers ownership of a draw item to this repr.

Definition at line 173 of file repr.h.

HdDrawItem* GetDrawItem ( size_t  index) const
inline

Returns the draw item at the requested index.

Note that the pointer returned is owned by this object and must not be deleted.

Definition at line 181 of file repr.h.

const DrawItemUniquePtrVector& GetDrawItems ( ) const
inline

Returns the draw items for this representation.

Definition at line 168 of file repr.h.


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