Schema classes represent a structured view of the inherently unstructured container data source passed into the constructor.
More...
Inherited by HdBasisCurvesSchema, HdBasisCurvesTopologySchema, HdCameraSchema, HdCapsuleSchema, HdCategoriesSchema, HdConeSchema, HdCoordSysBindingSchema, HdCubeSchema, HdCylinderSchema, HdDependenciesSchema, HdDependencySchema, HdExtComputationInputComputationSchema, HdExtComputationOutputSchema, HdExtComputationPrimvarSchema, HdExtComputationPrimvarsSchema, HdExtComputationSchema, HdExtentSchema, HdGeomSubsetSchema, HdGeomSubsetsSchema, HdInstanceCategoriesSchema, HdInstancedBySchema, HdInstancerTopologySchema, HdInstanceSchema, HdLegacyDisplayStyleSchema, HdLightSchema, HdMaterialBindingSchema, HdMaterialConnectionSchema, HdMaterialNetworkSchema, HdMaterialNodeSchema, HdMaterialSchema, HdMeshSchema, HdMeshTopologySchema, HdPrimvarSchema, HdPrimvarsSchema, HdPurposeSchema, HdRenderBufferSchema, HdRenderSettingsSchema, HdSampleFilterSchema, HdSphereSchema, HdSubdivisionTagsSchema, HdVisibilitySchema, HdVolumeFieldBindingSchema, HdVolumeFieldSchema, HdXformSchema, and UsdImagingModelSchema.
|
|
| 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 |
| | Returns true if this schema is applied on top of a non-null container. More...
|
| |
|
| template<typename T > |
| T::Handle | _GetTypedDataSource (TfToken name) |
| | Returns a datasource of the requested type for the given name: schema implementations can use this to ask for child containers, sampled values, vectors, etc. More...
|
| |
|
|
HdContainerDataSourceHandle | _container |
| |
Schema classes represent a structured view of the inherently unstructured container data source passed into the constructor.
They're used to represent what fields a given object is expected to have. Note that a schema can be applied to a container which doesn't contain all of the named fields; in that case, some of the field accessors will return null, and the caller should use default values for those fields.
Definition at line 42 of file schema.h.
◆ _GetTypedDataSource()
| T::Handle _GetTypedDataSource |
( |
TfToken |
name | ) |
|
|
inlineprotected |
Returns a datasource of the requested type for the given name: schema implementations can use this to ask for child containers, sampled values, vectors, etc.
If the key has the wrong type, this function returns null.
Definition at line 68 of file schema.h.
◆ GetContainer()
| HD_API HdContainerDataSourceHandle GetContainer |
( |
| ) |
|
Returns the container data source that this schema is interpreting.
◆ operator bool()
Returns true if this schema is applied on top of a non-null container.
Definition at line 57 of file schema.h.
The documentation for this class was generated from the following file: