|
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or a sub-object like a material definition. More...
#include <dataSource.h>
Public Member Functions | |
HD_DECLARE_DATASOURCE_ABSTRACT (HdContainerDataSource) | |
virtual TfTokenVector | GetNames ()=0 |
Returns the list of names for which Get(...) is expected to return a non-null value. | |
virtual HdDataSourceBaseHandle | Get (const TfToken &name)=0 |
Returns the child datasource of the given name. | |
Static Public Member Functions | |
static HD_API HdDataSourceBaseHandle | Get (const Handle &container, const HdDataSourceLocator &locator) |
A convenience function: given container , return the descendant identified by locator , which may be at any depth. | |
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or a sub-object like a material definition.
Note that implementations are responsible for providing cache invalidation, if necessary.
Definition at line 98 of file dataSource.h.
|
static |
A convenience function: given container
, return the descendant identified by locator
, which may be at any depth.
Returns container
itself on an empty locator, or null if locator
doesn't identify a valid descendant.
|
pure virtual |
Returns the child datasource of the given name.
This call is expected to be threadsafe.
Implemented in HdDataSourceLegacyPrim, HdLazyContainerDataSource, HdMapContainerDataSource, HdOverlayContainerDataSource, UsdImagingDataSourceBasisCurvesTopology, UsdImagingDataSourceBasisCurves, UsdImagingDataSourceBasisCurvesPrim, UsdImagingDataSourceCamera, UsdImagingDataSourceCameraPrim, UsdImagingDataSourceGprim, UsdImagingDataSourceMapped, UsdImagingDataSourceMaterial, UsdImagingDataSourceSubdivisionTags, UsdImagingDataSourceMeshTopology, UsdImagingDataSourceMesh, UsdImagingDataSourceMeshPrim, UsdImagingDataSourceNurbsCurvesPrim, UsdImagingDataSourceNurbsPatchPrim, UsdImagingDataSourcePointInstancerTopology, UsdImagingDataSourcePointsPrim, UsdImagingDataSourceVisibility, UsdImagingDataSourcePurpose, UsdImagingDataSourceExtent, UsdImagingDataSourceExtentsHint, UsdImagingDataSourceXform, UsdImagingDataSourcePrimOrigin, UsdImagingDataSourcePrim, UsdImagingDataSourcePrimvars, UsdImagingDataSourcePrimvar, UsdImagingDataSourceRenderPassPrim, UsdImagingDataSourceRenderSettingsPrim, UsdImagingDataSourceRenderProductPrim, UsdImagingDataSourceRenderVarPrim, UsdImagingDataSourceStage, UsdImagingDataSourceTetMeshTopology, UsdImagingDataSourceTetMesh, UsdImagingDataSourceTetMeshPrim, UsdImagingDataSourceUsdPrimInfo, UsdImagingDataSourceVolumeFieldBindings, UsdImagingDataSourceVolumePrim, UsdImagingDataSourceFieldAsset, and UsdImagingDataSourceFieldAssetPrim.
|
pure virtual |
Returns the list of names for which Get(...)
is expected to return a non-null value.
This call is expected to be threadsafe.
Implemented in HdDataSourceLegacyPrim, HdLazyContainerDataSource, HdMapContainerDataSource, HdOverlayContainerDataSource, UsdImagingDataSourceBasisCurvesTopology, UsdImagingDataSourceBasisCurves, UsdImagingDataSourceBasisCurvesPrim, UsdImagingDataSourceCamera, UsdImagingDataSourceCameraPrim, UsdImagingDataSourceMapped, UsdImagingDataSourceMaterial, UsdImagingDataSourceSubdivisionTags, UsdImagingDataSourceMeshTopology, UsdImagingDataSourceMesh, UsdImagingDataSourceMeshPrim, UsdImagingDataSourceNurbsCurvesPrim, UsdImagingDataSourceNurbsPatchPrim, UsdImagingDataSourcePointInstancerTopology, UsdImagingDataSourceVisibility, UsdImagingDataSourcePurpose, UsdImagingDataSourceExtent, UsdImagingDataSourceExtentsHint, UsdImagingDataSourceXform, UsdImagingDataSourcePrimOrigin, UsdImagingDataSourcePrim, UsdImagingDataSourcePrimvars, UsdImagingDataSourcePrimvar, UsdImagingDataSourceRenderPassPrim, UsdImagingDataSourceRenderSettingsPrim, UsdImagingDataSourceRenderProductPrim, UsdImagingDataSourceRenderVarPrim, UsdImagingDataSourceStage, UsdImagingDataSourceTetMeshTopology, UsdImagingDataSourceTetMesh, UsdImagingDataSourceTetMeshPrim, UsdImagingDataSourceUsdPrimInfo, UsdImagingDataSourceVolumeFieldBindings, UsdImagingDataSourceVolumePrim, UsdImagingDataSourceFieldAsset, and UsdImagingDataSourceFieldAssetPrim.