HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdrRegistry Class Reference

#include <registry.h>

+ Inheritance diagram for SdrRegistry:

Public Member Functions

SDR_API SdrShaderNodeConstPtr GetShaderNodeByIdentifier (const NdrIdentifier &identifier, const NdrTokenVec &typePriority=NdrTokenVec())
 
SDR_API SdrShaderNodeConstPtr GetShaderNodeByIdentifierAndType (const NdrIdentifier &identifier, const TfToken &nodeType)
 
SDR_API SdrShaderNodeConstPtr GetShaderNodeByName (const std::string &name, const NdrTokenVec &typePriority=NdrTokenVec(), NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
SDR_API SdrShaderNodeConstPtr GetShaderNodeByNameAndType (const std::string &name, const TfToken &nodeType, NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
SDR_API SdrShaderNodeConstPtr GetShaderNodeFromAsset (const SdfAssetPath &shaderAsset, const NdrTokenMap &metadata=NdrTokenMap(), const TfToken &subIdentifier=TfToken(), const TfToken &sourceType=TfToken())
 
SDR_API SdrShaderNodeConstPtr GetShaderNodeFromSourceCode (const std::string &sourceCode, const TfToken &sourceType, const NdrTokenMap &metadata=NdrTokenMap())
 
SDR_API SdrShaderNodePtrVec GetShaderNodesByIdentifier (const NdrIdentifier &identifier)
 
SDR_API SdrShaderNodePtrVec GetShaderNodesByName (const std::string &name, NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
SDR_API SdrShaderNodePtrVec GetShaderNodesByFamily (const TfToken &family=TfToken(), NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
- Public Member Functions inherited from NdrRegistry
NDR_API void SetExtraDiscoveryPlugins (DiscoveryPluginRefPtrVec plugins)
 
NDR_API void SetExtraDiscoveryPlugins (const std::vector< TfType > &pluginTypes)
 
NDR_API void AddDiscoveryResult (NdrNodeDiscoveryResult &&discoveryResult)
 
NDR_API void AddDiscoveryResult (const NdrNodeDiscoveryResult &discoveryResult)
 
NDR_API void SetExtraParserPlugins (const std::vector< TfType > &pluginTypes)
 
NDR_API NdrNodeConstPtr GetNodeFromAsset (const SdfAssetPath &asset, const NdrTokenMap &metadata, const TfToken &subIdentifier=TfToken(), const TfToken &sourceType=TfToken())
 
NDR_API NdrNodeConstPtr GetNodeFromSourceCode (const std::string &sourceCode, const TfToken &sourceType, const NdrTokenMap &metadata)
 
NDR_API NdrStringVec GetSearchURIs () const
 
NDR_API NdrIdentifierVec GetNodeIdentifiers (const TfToken &family=TfToken(), NdrVersionFilter filter=NdrVersionFilterDefaultOnly) const
 
NDR_API NdrStringVec GetNodeNames (const TfToken &family=TfToken()) const
 
NDR_API NdrNodeConstPtr GetNodeByIdentifier (const NdrIdentifier &identifier, const NdrTokenVec &sourceTypePriority=NdrTokenVec())
 
NDR_API NdrNodeConstPtr GetNodeByIdentifierAndType (const NdrIdentifier &identifier, const TfToken &sourceType)
 
NDR_API NdrNodeConstPtr GetNodeByName (const std::string &name, const NdrTokenVec &sourceTypePriority=NdrTokenVec(), NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
NDR_API NdrNodeConstPtr GetNodeByNameAndType (const std::string &name, const TfToken &sourceType, NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
NDR_API NdrNodeConstPtrVec GetNodesByIdentifier (const NdrIdentifier &identifier)
 
NDR_API NdrNodeConstPtrVec GetNodesByName (const std::string &name, NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
NDR_API NdrNodeConstPtrVec GetNodesByFamily (const TfToken &family=TfToken(), NdrVersionFilter filter=NdrVersionFilterDefaultOnly)
 
NDR_API NdrTokenVec GetAllNodeSourceTypes () const
 
- Public Member Functions inherited from TfWeakBase
 TfWeakBase ()
 
 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void const * GetUniqueIdentifier () const
 

Static Public Member Functions

static SDR_API SdrRegistryGetInstance ()
 Get the single SdrRegistry instance. More...
 

Protected Member Functions

 SdrRegistry ()
 
 ~SdrRegistry ()
 
- Protected Member Functions inherited from NdrRegistry
 NdrRegistry (const NdrRegistry &)=delete
 
NdrRegistryoperator= (const NdrRegistry &)=delete
 
NDR_API NdrRegistry ()
 
NDR_API ~NdrRegistry ()
 
- Protected Member Functions inherited from TfWeakBase
 ~TfWeakBase ()
 
TfRefPtr< Tf_Remnant_Register () const
 
template<class T >
TfRefPtr< Tf_Remnant_Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Friends

class TfSingleton< SdrRegistry >
 

Additional Inherited Members

- Public Types inherited from NdrRegistry
using DiscoveryPluginRefPtrVec = NdrDiscoveryPluginRefPtrVector
 

Detailed Description

The shading-specialized version of NdrRegistry.

Definition at line 43 of file registry.h.

Constructor & Destructor Documentation

SdrRegistry::SdrRegistry ( )
protected
SdrRegistry::~SdrRegistry ( )
protected

Member Function Documentation

static SDR_API SdrRegistry& SdrRegistry::GetInstance ( )
static

Get the single SdrRegistry instance.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeByIdentifier ( const NdrIdentifier identifier,
const NdrTokenVec typePriority = NdrTokenVec() 
)

Exactly like NdrRegistry::GetNodeByIdentifier(), but returns a SdrShaderNode pointer instead of a NdrNode pointer.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeByIdentifierAndType ( const NdrIdentifier identifier,
const TfToken nodeType 
)

Exactly like NdrRegistry::GetNodeByIdentifierAndType(), but returns a SdrShaderNode pointer instead of a NdrNode pointer.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeByName ( const std::string name,
const NdrTokenVec typePriority = NdrTokenVec(),
NdrVersionFilter  filter = NdrVersionFilterDefaultOnly 
)

Exactly like NdrRegistry::GetNodeByName(), but returns a SdrShaderNode pointer instead of a NdrNode pointer.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeByNameAndType ( const std::string name,
const TfToken nodeType,
NdrVersionFilter  filter = NdrVersionFilterDefaultOnly 
)

Exactly like NdrRegistry::GetNodeByNameAndType(), but returns a SdrShaderNode pointer instead of a NdrNode pointer.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeFromAsset ( const SdfAssetPath shaderAsset,
const NdrTokenMap metadata = NdrTokenMap(),
const TfToken subIdentifier = TfToken(),
const TfToken sourceType = TfToken() 
)

Wrapper method for NdrRegistry::GetNodeFromAsset(). Returns a valid SdrShaderNode pointer upon success.

SDR_API SdrShaderNodeConstPtr SdrRegistry::GetShaderNodeFromSourceCode ( const std::string sourceCode,
const TfToken sourceType,
const NdrTokenMap metadata = NdrTokenMap() 
)

Wrapper method for NdrRegistry::GetNodeFromSourceCode(). Returns a valid SdrShaderNode pointer upon success.

SDR_API SdrShaderNodePtrVec SdrRegistry::GetShaderNodesByFamily ( const TfToken family = TfToken(),
NdrVersionFilter  filter = NdrVersionFilterDefaultOnly 
)

Exactly like NdrRegistry::GetNodesByFamily(), but returns a vector of SdrShaderNode pointers instead of a vector of NdrNode pointers.

SDR_API SdrShaderNodePtrVec SdrRegistry::GetShaderNodesByIdentifier ( const NdrIdentifier identifier)

Exactly like NdrRegistry::GetNodesByIdentifier(), but returns a vector of SdrShaderNode pointers instead of a vector of NdrNode pointers.

SDR_API SdrShaderNodePtrVec SdrRegistry::GetShaderNodesByName ( const std::string name,
NdrVersionFilter  filter = NdrVersionFilterDefaultOnly 
)

Exactly like NdrRegistry::GetNodesByName(), but returns a vector of SdrShaderNode pointers instead of a vector of NdrNode pointers.

Friends And Related Function Documentation

friend class TfSingleton< SdrRegistry >
friend

Definition at line 118 of file registry.h.


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