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

#include <layerTree.h>

+ Inheritance diagram for SdfLayerTree:

Public Member Functions

SDF_API const SdfLayerHandle & GetLayer () const
 Returns the layer handle this tree node represents. More...
 
SDF_API const SdfLayerOffsetGetOffset () const
 Returns the cumulative layer offset from the root of the tree. More...
 
SDF_API const
SdfLayerTreeHandleVector
GetChildTrees () const
 Returns the children of this tree node. More...
 
- Public Member Functions inherited from TfRefBase
 TfRefBase ()
 
 TfRefBase (TfRefBase const &)
 
TfRefBaseoperator= (TfRefBase const &)
 
size_t GetCurrentCount () const
 Return the current reference count of this object. More...
 
bool IsUnique () const
 Return true if only one TfRefPtr points to this object. More...
 
void SetShouldInvokeUniqueChangedListener (bool shouldCall)
 
- Public Member Functions inherited from TfWeakBase
 TfWeakBase ()
 
 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void const * GetUniqueIdentifier () const
 

Static Public Member Functions

static SDF_API SdfLayerTreeHandle New (const SdfLayerHandle &layer, const SdfLayerTreeHandleVector &childTrees, const SdfLayerOffset &cumulativeOffset=SdfLayerOffset())
 Create a new layer tree node. More...
 
- Static Public Member Functions inherited from TfRefBase
static TF_API void SetUniqueChangedListener (UniqueChangedListener listener)
 

Additional Inherited Members

- Public Types inherited from TfRefBase
typedef void(* UniqueChangedFuncPtr )(TfRefBase const *, bool)
 
- Protected Member Functions inherited from TfRefBase
virtual TF_API ~TfRefBase ()
 
- Protected Member Functions inherited from TfWeakBase
 ~TfWeakBase ()
 
TfRefPtr< Tf_Remnant_Register () const
 
template<class T >
TfRefPtr< Tf_Remnant_Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Detailed Description

A SdfLayerTree is an immutable tree structure representing a sublayer stack and its recursive structure.

Layers can have sublayers, which can in turn have sublayers of their own. Clients that want to represent that hierarchical structure in memory can build a SdfLayerTree for that purpose.

We use TfRefPtr<SdfLayerTree> as handles to LayerTrees, as a simple way to pass them around as immutable trees without worrying about lifetime.

Definition at line 57 of file layerTree.h.

Member Function Documentation

SDF_API const SdfLayerTreeHandleVector& SdfLayerTree::GetChildTrees ( ) const

Returns the children of this tree node.

SDF_API const SdfLayerHandle& SdfLayerTree::GetLayer ( ) const

Returns the layer handle this tree node represents.

SDF_API const SdfLayerOffset& SdfLayerTree::GetOffset ( ) const

Returns the cumulative layer offset from the root of the tree.

static SDF_API SdfLayerTreeHandle SdfLayerTree::New ( const SdfLayerHandle &  layer,
const SdfLayerTreeHandleVector childTrees,
const SdfLayerOffset cumulativeOffset = SdfLayerOffset() 
)
static

Create a new layer tree node.


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