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

#include <directMaterialBindingsSchema.h>

+ Inheritance diagram for UsdImagingDirectMaterialBindingsSchema:

Public Member Functions

 UsdImagingDirectMaterialBindingsSchema (HdContainerDataSourceHandle container)
 
USDIMAGING_API TfTokenVector GetPurposes ()
 
USDIMAGING_API
UsdImagingDirectMaterialBindingSchema 
GetDirectMaterialBinding ()
 Returns the 'allPurpose' binding. More...
 
USDIMAGING_API
UsdImagingDirectMaterialBindingSchema 
GetDirectMaterialBinding (const TfToken &purpose)
 Returns the binding for the requested purpose. More...
 
- Public Member Functions inherited from HdSchema
 HdSchema (HdContainerDataSourceHandle container)
 
HD_API HdContainerDataSourceHandle GetContainer ()
 Returns the container data source that this schema is interpreting. More...
 
HD_API bool IsDefined () const
 
 operator bool () const
 

Static Public Member Functions

static USDIMAGING_API
HdContainerDataSourceHandle 
BuildRetained (size_t count, const TfToken *names, const HdDataSourceBaseHandle *values)
 
static USDIMAGING_API
UsdImagingDirectMaterialBindingsSchema 
GetFromParent (const HdContainerDataSourceHandle &fromParentContainer)
 
static USDIMAGING_API const
TfToken
GetSchemaToken ()
 
static USDIMAGING_API const
HdDataSourceLocator
GetDefaultLocator ()
 

Additional Inherited Members

- Public Types inherited from HdSchema
using UnderlyingDataSource = HdContainerDataSource
 
- Protected Member Functions inherited from HdSchema
template<typename T >
T::Handle _GetTypedDataSource (TfToken name)
 
- Protected Attributes inherited from HdSchema
HdContainerDataSourceHandle _container
 

Detailed Description

Definition at line 65 of file directMaterialBindingsSchema.h.

Constructor & Destructor Documentation

UsdImagingDirectMaterialBindingsSchema::UsdImagingDirectMaterialBindingsSchema ( HdContainerDataSourceHandle  container)
inline

Definition at line 68 of file directMaterialBindingsSchema.h.

Member Function Documentation

static USDIMAGING_API HdContainerDataSourceHandle UsdImagingDirectMaterialBindingsSchema::BuildRetained ( size_t  count,
const TfToken names,
const HdDataSourceBaseHandle *  values 
)
static
static USDIMAGING_API const HdDataSourceLocator& UsdImagingDirectMaterialBindingsSchema::GetDefaultLocator ( )
static

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

USDIMAGING_API UsdImagingDirectMaterialBindingSchema UsdImagingDirectMaterialBindingsSchema::GetDirectMaterialBinding ( )

Returns the 'allPurpose' binding.

USDIMAGING_API UsdImagingDirectMaterialBindingSchema UsdImagingDirectMaterialBindingsSchema::GetDirectMaterialBinding ( const TfToken purpose)

Returns the binding for the requested purpose.

static USDIMAGING_API UsdImagingDirectMaterialBindingsSchema UsdImagingDirectMaterialBindingsSchema::GetFromParent ( const HdContainerDataSourceHandle &  fromParentContainer)
static

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

USDIMAGING_API TfTokenVector UsdImagingDirectMaterialBindingsSchema::GetPurposes ( )

Returns the purposes for which bindings may be available.

Note
This API is preferable to schema.GetContainer()->GetNames().
static USDIMAGING_API const TfToken& UsdImagingDirectMaterialBindingsSchema::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: