HDK
|
#include <modelSchema.h>
Classes | |
class | Builder |
Public Member Functions | |
HdModelSchema (HdContainerDataSourceHandle container) | |
HD_API HdTokenDataSourceHandle | GetDrawMode () |
HD_API HdBoolDataSourceHandle | GetApplyDrawMode () |
HD_API HdVec3fDataSourceHandle | GetDrawModeColor () |
HD_API HdTokenDataSourceHandle | GetCardGeometry () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureXPos () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureYPos () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureZPos () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureXNeg () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureYNeg () |
HD_API HdAssetPathDataSourceHandle | GetCardTextureZNeg () |
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 HD_API HdContainerDataSourceHandle | BuildRetained (const HdTokenDataSourceHandle &drawMode, const HdBoolDataSourceHandle &applyDrawMode, const HdVec3fDataSourceHandle &drawModeColor, const HdTokenDataSourceHandle &cardGeometry, const HdAssetPathDataSourceHandle &cardTextureXPos, const HdAssetPathDataSourceHandle &cardTextureYPos, const HdAssetPathDataSourceHandle &cardTextureZPos, const HdAssetPathDataSourceHandle &cardTextureXNeg, const HdAssetPathDataSourceHandle &cardTextureYNeg, const HdAssetPathDataSourceHandle &cardTextureZNeg) |
static HD_API HdModelSchema | GetFromParent (const HdContainerDataSourceHandle &fromParentContainer) |
static HD_API const TfToken & | GetSchemaToken () |
static HD_API const HdDataSourceLocator & | GetDefaultLocator () |
static HD_API const HdDataSourceLocator & | GetDrawModeLocator () |
Additional Inherited Members | |
Protected Member Functions inherited from HdSchema | |
template<typename T > | |
T::Handle | _GetTypedDataSource (TfToken name) |
Protected Attributes inherited from HdSchema | |
HdContainerDataSourceHandle | _container |
Definition at line 68 of file modelSchema.h.
|
inline |
Definition at line 71 of file modelSchema.h.
|
static |
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.
HD_API HdBoolDataSourceHandle HdModelSchema::GetApplyDrawMode | ( | ) |
HD_API HdTokenDataSourceHandle HdModelSchema::GetCardGeometry | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureXNeg | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureXPos | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureYNeg | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureYPos | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureZNeg | ( | ) |
HD_API HdAssetPathDataSourceHandle HdModelSchema::GetCardTextureZPos | ( | ) |
|
static |
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.
HD_API HdTokenDataSourceHandle HdModelSchema::GetDrawMode | ( | ) |
HD_API HdVec3fDataSourceHandle HdModelSchema::GetDrawModeColor | ( | ) |
|
static |
Returns an HdDataSourceLocator (relative to the prim-level data source) where the drawmode data source can be found. This is often useful for checking intersection against the HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
|
static |
Retrieves a container data source with the schema's default name token "model" from the parent container and constructs a HdModelSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
Returns a token where the container representing this schema is found in a container by default.