All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdCoordSys Class Reference

#include <coordSys.h>

+ Inheritance diagram for HdCoordSys:

Public Types

enum  DirtyBits : HdDirtyBits { Clean = 0, DirtyTransform = 1 << 0, AllDirty = DirtyTransform }

Public Member Functions

HD_API HdCoordSys (SdfPath const &id)
virtual HD_API ~HdCoordSys ()
TfToken GetName () const
- Public Member Functions inherited from HdSprim
HD_API HdSprim (SdfPath const &id)
virtual HD_API ~HdSprim ()
SdfPath constGetId () const
virtual void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits)=0
virtual HD_API void Finalize (HdRenderParam *renderParam)
virtual HdDirtyBits GetInitialDirtyBitsMask () const =0

Detailed Description

HdCoordSys representes a coordinate system as a Hydra state prim.

Coordinate systems may be referred to by name from a shader network. Following the convention in UsdShadeCoordSysAPI, we use the Hydra id to establish the name, where the id is a namespaced property path of the form <.../prim.coordSys:NAME>. GetName() will retrieve the name.

Each rprim may have a set of bound coordinate systems, which may be retrieved via the HdTokens->coordSysBindings key. The returned value is of type HdIdVectorSharedPtr, a reference- counted pointer to a vector of ids of coordinate systems. The intention of this design is to make it efficient for scene delegates to communicate to renderer delegates the common mappings of bound coordinate systems across groups of rprims.

The transform value of an HdCoordSys is the matrix representation of the transform from its local space to world space. In other words, it has the same interpretation as the transform for rprims.

Definition at line 64 of file coordSys.h.

Member Enumeration Documentation


Definition at line 72 of file coordSys.h.

Constructor & Destructor Documentation

HD_API HdCoordSys::HdCoordSys ( SdfPath const id)
virtual HD_API HdCoordSys::~HdCoordSys ( )

Member Function Documentation

TfToken HdCoordSys::GetName ( ) const

Returns the name bound to this coordinate system.

There may be multiple coordinate systems with the same name, but they must associate with disjoint sets of rprims.

Definition at line 82 of file coordSys.h.

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