24 #ifndef PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
25 #define PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
30 #include "pxr/usdImaging/usdImaging/api.h"
34 #include "pxr/base/tf/type.h"
36 #include <unordered_map>
38 PXR_NAMESPACE_OPEN_SCOPE
42 using UsdImagingPrimAdapterSharedPtr = std::shared_ptr<UsdImagingPrimAdapter>;
44 #define USD_IMAGING_ADAPTER_KEY_TOKENS \
45 ((instanceAdapterKey, "__instanceAdapter")) \
46 ((drawModeAdapterKey, "__drawModeAdapter")) \
50 USD_IMAGING_ADAPTER_KEY_TOKENS);
58 friend class TfSingleton<UsdImagingAdapterRegistry>;
59 UsdImagingAdapterRegistry();
61 typedef std::unordered_map<TfToken,TfType,TfToken::HashFunctor> _TypeMap;
96 PXR_NAMESPACE_CLOSE_SCOPE
98 #endif //PXR_USD_IMAGING_USD_IMAGING_ADAPTER_REGISTRY_H
Manage a single instance of an object.
Manage a single instance of an object (see.
Token for efficient comparison, assignment, and hashing of known strings.
USDIMAGING_API bool HasAdapter(TfToken const &adapterKey)
Returns true if an adapter has been registered to handle the given adapterKey.
Base class for all PrimAdapters.
USDIMAGING_API UsdImagingPrimAdapterSharedPtr ConstructAdapter(TfToken const &adapterKey)
Returns a new instance of the UsdImagingPrimAdapter that has been registered to handle the given adap...
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
static T & GetInstance()
Return a reference to an object of type T, creating it if necessary.
This file defines some macros that are useful for declaring and using static TfTokens.
Registry of PrimAdapter plug-ins.
static USDIMAGING_API bool AreExternalPluginsEnabled()
Returns true if external plugins are enabled.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...