iMSTK
Interactive Medical Simulation Toolkit
|
Manages and generates the VTKRenderdelegates for all VisualModels. More...
#include <imstkRenderDelegateObjectFactory.h>
Static Public Member Functions | |
static std::shared_ptr< VTKRenderDelegate > | makeRenderDelegate (std::shared_ptr< VisualModel > visualModel) |
attempt to create a delegate for the given visual model More... | |
![]() | |
static std::shared_ptr< VTKRenderDelegate > | create (const std::string &name, Args &&... args) |
tries to construct the object give name, it will forward the given paramters More... | |
static void | add (const std::string &name, Creator c) |
adds a new creation function to the factory More... | |
static bool | contains (const std::string &name) |
static const std::vector< std::string > | getNames () |
Additional Inherited Members | |
![]() | |
using | BaseType = std::shared_ptr< VTKRenderDelegate > |
using | Creator = std::function< std::shared_ptr< VTKRenderDelegate >(Args...)> |
Type of the function to generate a new object. | |
Manages and generates the VTKRenderdelegates for all VisualModels.
The factory is a singleton and can be accessed anywhere. Given a visual model this will, if available generate a renderdelegate that may be able to render the model.
There are multiple ways to register a renderdelegate
will register the delegate for the class-name of the geometry, this will satisfy the default mechanism If a custom delegate is wanted this form may be preferable
Definition at line 46 of file imstkRenderDelegateObjectFactory.h.
|
static |
attempt to create a delegate for the given visual model
visualModel | the model we need a delegate for |
Definition at line 64 of file imstkRenderDelegateObjectFactory.cpp.