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

#include <systemSchema.h>

+ Inheritance diagram for HdSystemSchema:

Static Public Member Functions

static HD_API
HdDataSourceBaseHandle 
GetFromPath (HdSceneIndexBaseRefPtr const &inputScene, SdfPath const &fromPath, TfToken const &key, SdfPath *foundAtPath)
 
static HD_API
HdContainerDataSourceHandle 
Compose (HdSceneIndexBaseRefPtr const &inputScene, SdfPath const &fromPath, SdfPath *foundAtPath)
 
static HD_API
HdContainerDataSourceHandle 
ComposeAsPrimDataSource (HdSceneIndexBaseRefPtr const &inputScene, SdfPath const &fromPath, SdfPath *foundAtPath)
 
Schema location
static HD_API const TfTokenGetSchemaToken ()
 
static HD_API const
HdDataSourceLocator
GetDefaultLocator ()
 

Schema retrieval

 HdSystemSchema (HdContainerDataSourceHandle container)
 
static HD_API HdSystemSchema GetFromParent (const HdContainerDataSourceHandle &fromParentContainer)
 

Additional Inherited Members

- Public Types inherited from HdSchema
using UnderlyingDataSource = HdContainerDataSource
 
- Public Member Functions inherited from HdSchema
 HdSchema (HdContainerDataSourceHandle container)
 
HD_API HdContainerDataSourceHandle GetContainer () const
 Returns the container data source that this schema is interpreting. More...
 
HD_API bool IsDefined () const
 
 operator bool () const
 
- Protected Member Functions inherited from HdSchema
template<typename T >
T::Handle _GetTypedDataSource (TfToken name) const
 
- Protected Attributes inherited from HdSchema
HdContainerDataSourceHandle _container
 

Detailed Description

Definition at line 51 of file systemSchema.h.

Constructor & Destructor Documentation

HdSystemSchema::HdSystemSchema ( HdContainerDataSourceHandle  container)
inline

Retrieves a container data source with the schema's default name token "system" from the parent container and constructs a HdSystemSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.

Definition at line 57 of file systemSchema.h.

Member Function Documentation

static HD_API HdContainerDataSourceHandle HdSystemSchema::Compose ( HdSceneIndexBaseRefPtr const &  inputScene,
SdfPath const &  fromPath,
SdfPath foundAtPath 
)
static

Composes the system container in at fromPath by walking up the prim.dataSources in inputScene and composing any system containers it encounters.

If no system containers were found, this returns null. Otherwise, this will return a container data source with the composed system data sources. If non-null, foundAtPath will be the last prim at which system data was found.

static HD_API HdContainerDataSourceHandle HdSystemSchema::ComposeAsPrimDataSource ( HdSceneIndexBaseRefPtr const &  inputScene,
SdfPath const &  fromPath,
SdfPath foundAtPath 
)
static

Similar to Compose but this return value would be suitable for using with HdOverlayContainerDataSource for a prim's dataSource: ``` prim.dataSource = HdOverlayContainerDataSource::New( HdSystemSchema::ComposeAsPrimDataSource(...), prim.dataSource); ```

static HD_API const HdDataSourceLocator& HdSystemSchema::GetDefaultLocator ( )
static

Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.

static HD_API HdSystemSchema HdSystemSchema::GetFromParent ( const HdContainerDataSourceHandle &  fromParentContainer)
static

Retrieves a container data source with the schema's default name token "system" from the parent container and constructs a HdSystemSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.

static HD_API HdDataSourceBaseHandle HdSystemSchema::GetFromPath ( HdSceneIndexBaseRefPtr const &  inputScene,
SdfPath const &  fromPath,
TfToken const &  key,
SdfPath foundAtPath 
)
static

Evaluates the key at fromPath. If key is found, the return value will be non-null and foundAtPath will contain the path at which the non-null result was found. Otherwise, this returns null.

This operation will be linear in the length of fromPath.

static HD_API const TfToken& HdSystemSchema::GetSchemaToken ( )
static

Returns a token where the container representing this schema is found in a container by default.


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