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>
72 TfToken const& appliedInstanceName);
83 TfToken const& appliedInstanceName);
96 TfToken const& appliedInstanceName,
105 TfToken const& appliedInstanceName,
112 virtual UsdImagingAPISchemaAdapterSharedPtr New()
const = 0;
116 class UsdImagingAPISchemaAdapterFactory
117 :
public UsdImagingAPISchemaAdapterFactoryBase {
119 virtual UsdImagingAPISchemaAdapterSharedPtr New()
const 121 return std::make_shared<T>();
125 PXR_NAMESPACE_CLOSE_SCOPE
virtual USDIMAGING_API TfTokenVector GetImagingSubprims(TfToken const &appliedInstanceName)
Called to determine whether an API schema defines additional child hydra prims beyond the primary hyd...
virtual USDIMAGING_API HdDataSourceLocatorSet InvalidateImagingSubprim(TfToken const &subprim, TfToken const &appliedInstanceName, TfTokenVector const &properties)
Given the names of USD properties which have changed, an adapter may provide a HdDataSourceLocatorSet...
Base class for all API schema adapters.
Base class of all factory types.
Token for efficient comparison, assignment, and hashing of known strings.
virtual USDIMAGING_API HdContainerDataSourceHandle GetImagingSubprimData(TfToken const &subprim, UsdPrim const &prim, TfToken const &appliedInstanceName, const UsdImagingDataSourceStageGlobals &stageGlobals)
Returns an HdContainerDataSourceHandle representing the API schema's contributions to the primary pri...
This class is used as a context object with global stage information, that gets passed down to dataso...
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 TfToken GetImagingSubprimType(TfToken const &subprim, TfToken const &appliedInstanceName)
Called to determine whether an API schema specifies the hydra type of a given prim previously defined...