AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::nodes::RendererManager Class Reference

The layer manager node handles serialization and deserialization of all layers used by all ProxyShapes. More...

#include <RendererManager.h>

Inheritance diagram for AL::usdmaya::nodes::RendererManager:

Public Member Functions

 RendererManager ()
 ctor
 
void onRendererChanged ()
 Methods to handle renderer plugin. More...
 
bool setRendererPlugin (const MString &pluginName)
 Set current renderer plugin based on provided name.
 
void changeRendererPlugin (ProxyShape *proxy, bool creation=false)
 Change current renderer plugin for provided ProxyShape.
 
int getRendererPluginIndex () const
 Get current renderer plugin index.
 
 AL_MAYA_DECLARE_NODE ()
 Type Info & Registration.
 
 AL_DECL_ATTRIBUTE (rendererPluginName)
 Type Info & Registration. More...
 
 AL_DECL_ATTRIBUTE (rendererPlugin)
 Hydra renderer plugin index used for UI (internal)
 

Static Public Member Functions

static MObject findNode ()
 Find the already-existing non-referenced RendererManager node in the scene, or return a null MObject. More...
 
static MObject findOrCreateNode (MDGModifier *dgmod=nullptr, bool *wasCreated=nullptr)
 Either find the already-existing non-referenced RendererManager node in the scene, or make one. More...
 
static RendererManagerfindManager ()
 Find the already-existing non-referenced RendererManager node in the scene, or return a nullptr. More...
 
static RendererManagerfindOrCreateManager (MDGModifier *dgmod=nullptr, bool *wasCreated=nullptr)
 Either find the already-existing non-referenced RendererManager in the scene, or make one. More...
 
static const MStringArray & getRendererPluginList ()
 Get list of available Hydra renderer plugin names.
 

Detailed Description

The layer manager node handles serialization and deserialization of all layers used by all ProxyShapes.

Member Function Documentation

AL::usdmaya::nodes::RendererManager::AL_DECL_ATTRIBUTE ( rendererPluginName  )

Type Info & Registration.

Hydra renderer plugin name used for rendering (storable)

static RendererManager* AL::usdmaya::nodes::RendererManager::findManager ( )
static

Find the already-existing non-referenced RendererManager node in the scene, or return a nullptr.

Returns
the found RendererManager, or a nullptr
static MObject AL::usdmaya::nodes::RendererManager::findNode ( )
static

Find the already-existing non-referenced RendererManager node in the scene, or return a null MObject.

Returns
the found RendererManager node, or a null MObject
static RendererManager* AL::usdmaya::nodes::RendererManager::findOrCreateManager ( MDGModifier *  dgmod = nullptr,
bool *  wasCreated = nullptr 
)
static

Either find the already-existing non-referenced RendererManager in the scene, or make one.

Parameters
dgmodAn optional dgmodifier to create the node, if necessary. Note that if one is passed in, createNode might be called on it, but doIt never will be, so the layer manager node may not be added to the scene graph yet
wasCreatedIf given, whether a new layer manager had to be created is stored here.
Returns
the found-or-created RendererManager
static MObject AL::usdmaya::nodes::RendererManager::findOrCreateNode ( MDGModifier *  dgmod = nullptr,
bool *  wasCreated = nullptr 
)
static

Either find the already-existing non-referenced RendererManager node in the scene, or make one.

Parameters
dgmodAn optional dgmodifier to create the node, if necessary. Note that if one is passed in, createNode might be called on it, but doIt never will be, so the layer manager node may not be added to the scene graph yet
wasCreatedIf given, whether a new layer manager had to be created is stored here.
Returns
the found-or-created RendererManager node
void AL::usdmaya::nodes::RendererManager::onRendererChanged ( )

Methods to handle renderer plugin.

Set current renderer for all proxy shapes


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