Loading...
Searching...
No Matches
UsdImagingAdapterRegistry Class Reference

Registry of PrimAdapter plug-ins. More...

#include <adapterRegistry.h>

+ Inheritance diagram for UsdImagingAdapterRegistry:

Public Types

using ApiSchemaAdapters = std::vector< UsdImagingAPISchemaAdapterSharedPtr >
 

Public Member Functions

USDIMAGING_API bool HasAdapter (TfToken const &adapterKey)
 Returns true if an adapter has been registered to handle the given adapterKey.
 
USDIMAGING_API UsdImagingPrimAdapterSharedPtr ConstructAdapter (TfToken const &adapterKey)
 Returns a new instance of the UsdImagingPrimAdapter that has been registered to handle the given adapterKey.
 
USDIMAGING_API const TfTokenVectorGetAdapterKeys ()
 Returns the set of adapter keys this class responds to; i.e.
 
USDIMAGING_API bool HasAPISchemaAdapter (TfToken const &adapterKey)
 Returns true if an api schema adapter has been registered to handle the given adapterKey.
 
USDIMAGING_API UsdImagingAPISchemaAdapterSharedPtr ConstructAPISchemaAdapter (TfToken const &adapterKey)
 Returns a new instance of the UsdImagingAPISchemaAdapter that has been registered to handle the given adapterKey.
 
USDIMAGING_API const TfTokenVectorGetAPISchemaAdapterKeys ()
 Returns the set of api schema adapter keys this class responds to; i.e.
 
USDIMAGING_API ApiSchemaAdapters ConstructKeylessAPISchemaAdapters ()
 Constructs instances of "keyless" api schema adapters which are intended to run for every prim.
 

Static Public Member Functions

static USDIMAGING_API bool AreExternalPluginsEnabled ()
 Returns true if external plugins are enabled.
 
static USDIMAGING_API UsdImagingAdapterRegistryGetInstance ()
 
- Static Public Member Functions inherited from TfSingleton< UsdImagingAdapterRegistry >
static UsdImagingAdapterRegistryGetInstance ()
 Return a reference to an object of type T, creating it if necessary.
 
static bool CurrentlyExists ()
 Return whether or not the single object of type T is currently in existence.
 
static void SetInstanceConstructed (UsdImagingAdapterRegistry &instance)
 Indicate that the sole instance object has already been created.
 
static void DeleteInstance ()
 Destroy the sole instance object of type T, if it exists.
 

Friends

class TfSingleton< UsdImagingAdapterRegistry >
 

Detailed Description

Registry of PrimAdapter plug-ins.

Note: this is a registry of adapter factories, and not adapter instances; we expect to store adapter instances (created via ConstructAdapter) with per-stage data.

Definition at line 62 of file adapterRegistry.h.

Member Typedef Documentation

◆ ApiSchemaAdapters

using ApiSchemaAdapters = std::vector<UsdImagingAPISchemaAdapterSharedPtr>

Definition at line 136 of file adapterRegistry.h.

Member Function Documentation

◆ AreExternalPluginsEnabled()

static USDIMAGING_API bool AreExternalPluginsEnabled ( )
static

Returns true if external plugins are enabled.

Internal plugins have isInternal=1 set in their metadata. This flag is only intended to be set for critical imaging plugins (mesh, cube, sphere, curve, etc). This allows users to disable plugins that are crashing or executing slowly.

Driven by by the USDIMAGING_ENABLE_PLUGINS environment variable.

◆ ConstructAdapter()

USDIMAGING_API UsdImagingPrimAdapterSharedPtr ConstructAdapter ( TfToken const &  adapterKey)

Returns a new instance of the UsdImagingPrimAdapter that has been registered to handle the given adapterKey.

This key is either a prim typename or a key specified in UsdImagingAdapterKeyTokens. Returns NULL if no adapter was registered for this key.

◆ ConstructAPISchemaAdapter()

USDIMAGING_API UsdImagingAPISchemaAdapterSharedPtr ConstructAPISchemaAdapter ( TfToken const &  adapterKey)

Returns a new instance of the UsdImagingAPISchemaAdapter that has been registered to handle the given adapterKey.

Returns NULL if no adapter was registered for this key.

◆ ConstructKeylessAPISchemaAdapters()

USDIMAGING_API ApiSchemaAdapters ConstructKeylessAPISchemaAdapters ( )

Constructs instances of "keyless" api schema adapters which are intended to run for every prim.

◆ GetAdapterKeys()

USDIMAGING_API const TfTokenVector & GetAdapterKeys ( )

Returns the set of adapter keys this class responds to; i.e.

the set of usd prim types for which we've registered a prim adapter.

◆ GetAPISchemaAdapterKeys()

USDIMAGING_API const TfTokenVector & GetAPISchemaAdapterKeys ( )

Returns the set of api schema adapter keys this class responds to; i.e.

the set of usd api schema types for which we've registered an adapter.

◆ GetInstance()

static USDIMAGING_API UsdImagingAdapterRegistry & GetInstance ( )
inlinestatic

Definition at line 97 of file adapterRegistry.h.

◆ HasAdapter()

USDIMAGING_API bool HasAdapter ( TfToken const &  adapterKey)

Returns true if an adapter has been registered to handle the given adapterKey.

◆ HasAPISchemaAdapter()

USDIMAGING_API bool HasAPISchemaAdapter ( TfToken const &  adapterKey)

Returns true if an api schema adapter has been registered to handle the given adapterKey.

Friends And Related Function Documentation

◆ TfSingleton< UsdImagingAdapterRegistry >

friend class TfSingleton< UsdImagingAdapterRegistry >
friend

Definition at line 145 of file adapterRegistry.h.


The documentation for this class was generated from the following file: