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

#include <bindingSchema.h>

+ Inheritance diagram for UsdSkelImagingBindingSchema:

Classes

class  Builder
 

Public Member Functions

Member accessor
USDSKELIMAGING_API
HdPathDataSourceHandle 
GetAnimationSource () const
 
USDSKELIMAGING_API
HdPathDataSourceHandle 
GetSkeleton () const
 
USDSKELIMAGING_API
HdTokenArrayDataSourceHandle 
GetJoints () const
 
USDSKELIMAGING_API
HdTokenArrayDataSourceHandle 
GetBlendShapes () const
 This is not inherited according to the UsdSkel spec. More...
 
USDSKELIMAGING_API
HdPathArrayDataSourceHandle 
GetBlendShapeTargets () const
 This is not inherited according to the UsdSkel spec. More...
 
USDSKELIMAGING_API
HdBoolDataSourceHandle 
GetHasSkelRoot () const
 
- 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
 

Static Public Member Functions

Schema location
static USDSKELIMAGING_API
const TfToken
GetSchemaToken ()
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetDefaultLocator ()
 
Data source locators for members

The following methods return an HdDataSourceLocator (relative to the prim-level data source) where the data source for a member can be found.

This is often useful for checking intersection against the HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.

static USDSKELIMAGING_API
const HdDataSourceLocator
GetAnimationSourceLocator ()
 Prim-level relative data source locator to locate animationSource. More...
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetSkeletonLocator ()
 Prim-level relative data source locator to locate skeleton. More...
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetJointsLocator ()
 Prim-level relative data source locator to locate joints. More...
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetBlendShapesLocator ()
 Prim-level relative data source locator to locate blendShapes. More...
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetBlendShapeTargetsLocator ()
 Prim-level relative data source locator to locate blendShapeTargets. More...
 
static USDSKELIMAGING_API
const HdDataSourceLocator
GetHasSkelRootLocator ()
 Prim-level relative data source locator to locate hasSkelRoot. More...
 
Schema construction
static USDSKELIMAGING_API
HdContainerDataSourceHandle 
BuildRetained (const HdPathDataSourceHandle &animationSource, const HdPathDataSourceHandle &skeleton, const HdTokenArrayDataSourceHandle &joints, const HdTokenArrayDataSourceHandle &blendShapes, const HdPathArrayDataSourceHandle &blendShapeTargets, const HdBoolDataSourceHandle &hasSkelRoot)
 

Schema retrieval

 UsdSkelImagingBindingSchema (HdContainerDataSourceHandle container)
 
static USDSKELIMAGING_API
UsdSkelImagingBindingSchema 
GetFromParent (const HdContainerDataSourceHandle &fromParentContainer)
 

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) const
 
- Protected Attributes inherited from HdSchema
HdContainerDataSourceHandle _container
 

Detailed Description

Definition at line 56 of file bindingSchema.h.

Constructor & Destructor Documentation

UsdSkelImagingBindingSchema::UsdSkelImagingBindingSchema ( HdContainerDataSourceHandle  container)
inline

Retrieves a container data source with the schema's default name token "skelBinding" from the parent container and constructs a UsdSkelImagingBindingSchema 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 62 of file bindingSchema.h.

Member Function Documentation

static USDSKELIMAGING_API HdContainerDataSourceHandle UsdSkelImagingBindingSchema::BuildRetained ( const HdPathDataSourceHandle animationSource,
const HdPathDataSourceHandle skeleton,
const HdTokenArrayDataSourceHandle joints,
const HdTokenArrayDataSourceHandle blendShapes,
const HdPathArrayDataSourceHandle blendShapeTargets,
const HdBoolDataSourceHandle hasSkelRoot 
)
static
Deprecated:
Use Builder instead.

Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.

USDSKELIMAGING_API HdPathDataSourceHandle UsdSkelImagingBindingSchema::GetAnimationSource ( ) const

Note that in UsdSkel, the animation comes from the animationSource on the Skeleton (which also carries the topology of the skeleton as joints). This animationSource is either authored on the Skeleton directly (and UsdSkelBindingAPI is applied) or inherited from an ancestor of Skeleton (that has UsdSkelBindingAPI applied).

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetAnimationSourceLocator ( )
static

Prim-level relative data source locator to locate animationSource.

USDSKELIMAGING_API HdTokenArrayDataSourceHandle UsdSkelImagingBindingSchema::GetBlendShapes ( ) const

This is not inherited according to the UsdSkel spec.

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetBlendShapesLocator ( )
static

Prim-level relative data source locator to locate blendShapes.

USDSKELIMAGING_API HdPathArrayDataSourceHandle UsdSkelImagingBindingSchema::GetBlendShapeTargets ( ) const

This is not inherited according to the UsdSkel spec.

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetBlendShapeTargetsLocator ( )
static

Prim-level relative data source locator to locate blendShapeTargets.

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetDefaultLocator ( )
static

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

static USDSKELIMAGING_API UsdSkelImagingBindingSchema UsdSkelImagingBindingSchema::GetFromParent ( const HdContainerDataSourceHandle &  fromParentContainer)
static

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

USDSKELIMAGING_API HdBoolDataSourceHandle UsdSkelImagingBindingSchema::GetHasSkelRoot ( ) const

Is this prim a descendant of a SkelRoot? Does not correspond to Usd attribute and is actually populated by the SkelRoot and not the SkelBinding.

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetHasSkelRootLocator ( )
static

Prim-level relative data source locator to locate hasSkelRoot.

USDSKELIMAGING_API HdTokenArrayDataSourceHandle UsdSkelImagingBindingSchema::GetJoints ( ) const

Note that in UsdSkel, the animation comes from the animationSource on the Skeleton (which also carries the topology of the skeleton as joints). This animationSource is either authored on the Skeleton directly (and UsdSkelBindingAPI is applied) or inherited from an ancestor of Skeleton (that has UsdSkelBindingAPI applied).

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetJointsLocator ( )
static

Prim-level relative data source locator to locate joints.

static USDSKELIMAGING_API const TfToken& UsdSkelImagingBindingSchema::GetSchemaToken ( )
static

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

USDSKELIMAGING_API HdPathDataSourceHandle UsdSkelImagingBindingSchema::GetSkeleton ( ) const

Note that in UsdSkel, the animation comes from the animationSource on the Skeleton (which also carries the topology of the skeleton as joints). This animationSource is either authored on the Skeleton directly (and UsdSkelBindingAPI is applied) or inherited from an ancestor of Skeleton (that has UsdSkelBindingAPI applied).

static USDSKELIMAGING_API const HdDataSourceLocator& UsdSkelImagingBindingSchema::GetSkeletonLocator ( )
static

Prim-level relative data source locator to locate skeleton.


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