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

#include <materialBindingAPI.h>

Public Member Functions

 DirectBinding ()
 
USDSHADE_API DirectBinding (const UsdRelationship &bindingRel)
 
USDSHADE_API UsdShadeMaterial GetMaterial () const
 Gets the material object that this direct binding binds to. More...
 
const SdfPathGetMaterialPath () const
 
const UsdRelationshipGetBindingRel () const
 
const TfTokenGetMaterialPurpose () const
 Returns the purpose of the direct binding. More...
 
bool IsBound () const
 

Detailed Description

This class represents a direct material binding.

Definition at line 313 of file materialBindingAPI.h.

Constructor & Destructor Documentation

UsdShadeMaterialBindingAPI::DirectBinding::DirectBinding ( )
inline

Default constructor initializes a DirectBinding object with invalid material and bindingRel data members.

Definition at line 317 of file materialBindingAPI.h.

USDSHADE_API UsdShadeMaterialBindingAPI::DirectBinding::DirectBinding ( const UsdRelationship bindingRel)
explicit

Member Function Documentation

const UsdRelationship& UsdShadeMaterialBindingAPI::DirectBinding::GetBindingRel ( ) const
inline

Returns the binding-relationship that represents this direct binding.

Definition at line 335 of file materialBindingAPI.h.

USDSHADE_API UsdShadeMaterial UsdShadeMaterialBindingAPI::DirectBinding::GetMaterial ( ) const

Gets the material object that this direct binding binds to.

const SdfPath& UsdShadeMaterialBindingAPI::DirectBinding::GetMaterialPath ( ) const
inline

Returns the path to the material that is bound to by this direct binding.

Definition at line 329 of file materialBindingAPI.h.

const TfToken& UsdShadeMaterialBindingAPI::DirectBinding::GetMaterialPurpose ( ) const
inline

Returns the purpose of the direct binding.

Definition at line 340 of file materialBindingAPI.h.

bool UsdShadeMaterialBindingAPI::DirectBinding::IsBound ( ) const
inline

Returns true if there is a material bound.

Note, GetMaterialPath() could be empty, which would indicate that no material should be bound (and nothing should be inherited).

Definition at line 348 of file materialBindingAPI.h.


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