24 #ifndef PXR_USD_IMAGING_USD_IMAGING_API_SCHEMA_ADAPTER_H 25 #define PXR_USD_IMAGING_USD_IMAGING_API_SCHEMA_ADAPTER_H 30 #include "pxr/usdImaging/usdImaging/api.h" 31 #include "pxr/usdImaging/usdImaging/version.h" 35 #include "pxr/imaging/hd/sceneIndex.h" 37 #include "pxr/base/tf/type.h" 42 PXR_NAMESPACE_OPEN_SCOPE
46 using UsdImagingAPISchemaAdapterSharedPtr =
47 std::shared_ptr<class UsdImagingAPISchemaAdapter>;
56 :
public std::enable_shared_from_this<UsdImagingAPISchemaAdapter>
73 TfToken const& appliedInstanceName);
85 TfToken const& appliedInstanceName);
98 TfToken const& appliedInstanceName,
108 TfToken const& appliedInstanceName,
115 virtual UsdImagingAPISchemaAdapterSharedPtr New()
const = 0;
119 class UsdImagingAPISchemaAdapterFactory
120 :
public UsdImagingAPISchemaAdapterFactoryBase {
122 virtual UsdImagingAPISchemaAdapterSharedPtr New()
const 124 return std::make_shared<T>();
128 PXR_NAMESPACE_CLOSE_SCOPE
Base class for all API schema adapters.
virtual USDIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName)
Called to determine whether an API schema specifies the hydra type of a given prim previously defined...
Base class of all factory types.
Token for efficient comparison, assignment, and hashing of known strings.
This class is used as a context object with global stage information, that gets passed down to dataso...
virtual USDIMAGING_API HdContainerDataSourceHandle GetImagingSubprimData(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName, const UsdImagingDataSourceStageGlobals &stageGlobals)
Returns an HdContainerDataSourceHandle representing the API schema's contributions to the primary pri...
Represents a set of data source locators closed under descendancy.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
virtual USDIMAGING_API HdDataSourceLocatorSet InvalidateImagingSubprim(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName, TfTokenVector const &properties)
Given the names of USD properties which have changed, an adapter may provide a HdDataSourceLocatorSet...
virtual USDIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim, TfToken const &appliedInstanceName)
Called to determine whether an API schema defines additional child hydra prims beyond the primary hyd...