|
Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/LayerDM/Logic/vtkSlicerLayerDMLogic.h>


Public Types | |
| typedef vtkSlicerModuleLogic | Superclass |
Public Types inherited from vtkSlicerModuleLogic | |
| typedef vtkMRMLModuleLogic | Superclass |
Public Types inherited from vtkMRMLModuleLogic | |
| typedef vtkMRMLAbstractLogic | Superclass |
Public Types inherited from vtkMRMLAbstractLogic | |
| typedef vtkObject | Superclass |
| typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | operator= (const vtkSlicerLayerDMLogic &)=delete |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | RegisterNodes () override |
| Registers the LayerDM MRML nodes in the scene. | |
| vtkSlicerLayerDMLogic (const vtkSlicerLayerDMLogic &)=delete | |
Public Member Functions inherited from vtkSlicerModuleLogic | |
| virtual vtkSlicerApplicationLogic * | GetApplicationLogic () |
| Get access to overall application state. | |
| virtual vtkMRMLAbstractLogic * | GetModuleLogic (const char *moduleName) |
| Convenience method for getting another module's logic from the application logic. | |
| std::string | GetModuleShareDirectory () const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | SetModuleShareDirectory (const std::string &shareDirectory) |
Public Member Functions inherited from vtkMRMLModuleLogic | |
| virtual std::vector< vtkSmartPointer< vtkMRMLFileIOHandler > > | CreateFileIOHandlers () |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
Public Member Functions inherited from vtkMRMLAbstractLogic | |
| virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
| Get access to overall application state. | |
| vtkMRMLScene * | GetMRMLScene () const |
| Return a reference to the current MRML scene. | |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
| void | SetMRMLScene (vtkMRMLScene *newScene) |
| Set and observe the MRMLScene. | |
Static Public Member Functions | |
| static void | CreateDefaultEventTranslation (vtkMRMLNode *node, const std::string &singletonId, const std::function< void(vtkMRMLLayerDMWidgetEventTranslationNode *)> &configureF) |
| template<typename T> | |
| static T * | CreateDisplayNode (vtkMRMLNode *node, bool allowMultiple=false) |
| template<typename T> | |
| static T * | CreateReferenceNode (vtkMRMLNode *node, bool allowMultiple=false) |
| template<typename T> | |
| static T * | CreateReferenceNode (vtkMRMLNode *node, const char *role, bool allowMultiple=false) |
| static vtkMRMLLayerDMWidgetEventTranslationNode * | CreateWidgetEventTranslationSingleton (vtkMRMLScene *scene, const std::string &singletonId) |
| template<typename T> | |
| static T * | GetDisplayNode (vtkMRMLNode *node) |
| static std::string | GetDisplayRole () |
| static std::string | GetEventTranslationRole () |
| template<typename T> | |
| static T * | GetReferenceNode (vtkMRMLNode *node) |
| template<typename T> | |
| static T * | GetReferenceNode (vtkMRMLNode *node, const char *role) |
| template<typename T> | |
| static std::vector< T * > | GetReferenceNodes (vtkMRMLNode *node) |
| template<typename T> | |
| static std::vector< T * > | GetReferenceNodes (vtkMRMLNode *node, const char *role) |
| static vtkMRMLLayerDMWidgetEventTranslationNode * | GetWidgetEventTranslationNode (vtkMRMLNode *node) |
| static vtkMRMLLayerDMWidgetEventTranslationNode * | GetWidgetEventTranslationSingleton (vtkMRMLScene *scene, const std::string &singletonId) |
| Get the singleton translation node with given ID if it exists in the scene. | |
| static vtkMRMLLayerDMWidgetEventTranslationNode * | GetWidgetEventTranslationSingleton (vtkMRMLScene *scene, const std::string &singletonId, const std::function< void(vtkMRMLLayerDMWidgetEventTranslationNode *)> &configureF) |
| static int | IsTypeOf (const char *type) |
| static vtkSlicerLayerDMLogic * | New () |
| template<typename T> | |
| static void | RegisterNodeIfNeeded (vtkMRMLScene *scene) |
| static vtkSlicerLayerDMLogic * | SafeDownCast (vtkObject *o) |
| static void | SetWidgetEventTranslationNode (vtkMRMLNode *node, vtkMRMLLayerDMWidgetEventTranslationNode *translationNode) |
| Attach a translation node ref to the input node. | |
| template<typename T> | |
| static T * | AddReferenceNode (vtkMRMLNode *node, T *nodeRef, const char *role) |
| template<typename T> | |
| static T * | SetReferenceNode (vtkMRMLNode *node, T *nodeRef, const char *role) |
| template<typename T> | |
| static T * | SetNthReferenceNode (vtkMRMLNode *node, T *nodeRef, const char *role, int nthRef) |
Static Public Member Functions inherited from vtkSlicerModuleLogic | |
| static int | IsTypeOf (const char *type) |
| static vtkSlicerModuleLogic * | New () |
| The Usual vtk class functions. | |
| static vtkSlicerModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLModuleLogic | |
| static int | IsTypeOf (const char *type) |
| static vtkMRMLModuleLogic * | New () |
| static vtkMRMLModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractLogic | |
| static int | IsTypeOf (const char *type) |
| static vtkMRMLAbstractLogic * | New () |
| static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkMRMLAbstractLogic | |
| static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
| MRMLLogicCallback is a static function to relay modified events from the logics. | |
| static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
| MRMLNodesCallback is a static function to relay modified events from the nodes. | |
| static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Logic class for the LayerDM module. Provides helper templates to simplify registering and accessing custom display nodes.
Definition at line 35 of file vtkSlicerLayerDMLogic.h.
Definition at line 39 of file vtkSlicerLayerDMLogic.h.
|
delete |
|
protecteddefault |
|
overrideprotecteddefault |
|
static |
Utility method change the node references of the input node using nodeRef and given role. If either the node or nodeRef is nullptr, does nothing. Will invoke a Modified event on the nodeRef after modification.
Definition at line 276 of file vtkSlicerLayerDMLogic.h.
|
static |
If the input node doesn't have any translation node, sets the singleton TL node as TL node. If the singleton doesn't yet exist in the scene, creates and initializes the TL node singleton given the input configure method.
If the node already has a TL node, does nothing. If the node doesn't have a TL node and isn't set in the Scene, does nothing.
|
static |
Creates a display node of given type and attach it to the input node
| node | instance of node for which the display node will be created. If the node is nullptr or not attached to a scene, will not create any node. |
| allowMultiple | when false, will return the existing display node if a display node of given type / role is already attached to the input node. |
Definition at line 240 of file vtkSlicerLayerDMLogic.h.
|
static |
Creates a reference node of given type and role and attach it to the input node.
| node | instance of node for which the display node will be created. If the node is nullptr or not attached to a scene, will not create any node. |
| allowMultiple | when false, will return the existing ref node if a ref node of given type / role is already attached to the input node. |
Expects T to have a static T::GetReferenceRole method returning its reference role.
Definition at line 270 of file vtkSlicerLayerDMLogic.h.
|
static |
Creates a reference node of given type and role and attach it to the input node.
| node | instance of node for which the display node will be created. If the node is nullptr or not attached to a scene, will not create any node. |
| role | name of the role for the created and attached reference node. Role can be any arbitrary string. |
| allowMultiple | when false, will return the existing ref node if a ref node of given type / role is already attached to the input node. |
Definition at line 251 of file vtkSlicerLayerDMLogic.h.
|
static |
Create a singleton translation node with given ID.
By default, the created singleton is set to not be saved with the scene to avoid changing interaction events when loading scenes coming from other users.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
|
static |
Definition at line 191 of file vtkSlicerLayerDMLogic.h.
|
static |
|
static |
|
static |
Definition at line 209 of file vtkSlicerLayerDMLogic.h.
|
static |
Definition at line 202 of file vtkSlicerLayerDMLogic.h.
|
static |
Definition at line 234 of file vtkSlicerLayerDMLogic.h.
|
static |
Definition at line 215 of file vtkSlicerLayerDMLogic.h.
|
static |
|
static |
Get the singleton translation node with given ID if it exists in the scene.
|
static |
Get the singleton translation node with given ID if it exists in the scene. If it doesn't exist in the scene, creates the singleton and configures the singleton given the input configure function.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
|
static |
|
static |
|
delete |
|
override |
|
static |
Register node if the node isn't already registered in the scene. Otherwise, registering multiple time the same node will overwrite the previous node and generate a warning.
Definition at line 176 of file vtkSlicerLayerDMLogic.h.
|
overridevirtual |
Registers the LayerDM MRML nodes in the scene.
Reimplemented from vtkMRMLAbstractLogic.
|
static |
|
static |
Definition at line 288 of file vtkSlicerLayerDMLogic.h.
|
static |
Definition at line 282 of file vtkSlicerLayerDMLogic.h.
|
static |
Attach a translation node ref to the input node.