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

#include <repr.h>

Public Types

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

Public Member Functions

HD_API HdRepr ()
HD_API ~HdRepr ()
const DrawItemUniquePtrVectorGetDrawItems () 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

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 Typedef Documentation

using HdRepr::DrawItemUniquePtr = std::unique_ptr<HdDrawItem>

Definition at line 159 of file repr.h.

Definition at line 160 of file repr.h.

Constructor & Destructor Documentation

HD_API HdRepr::HdRepr ( )
HD_API HdRepr::~HdRepr ( )

Member Function Documentation

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

Transfers ownership of a draw item to this repr.

Definition at line 173 of file repr.h.

HdDrawItem* HdRepr::GetDrawItem ( size_t  index) const

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& HdRepr::GetDrawItems ( ) const

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: