Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Slicer logic class for hierarchy manipulation. More...
#include <Libs/MRML/Logic/vtkMRMLDisplayableHierarchyLogic.h>
Public Types | |
typedef vtkMRMLAbstractLogic | Superclass |
Public Types inherited from vtkMRMLAbstractLogic | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
bool | AddChildToParent (vtkMRMLDisplayableNode *child, vtkMRMLDisplayableNode *parent) |
char * | AddDisplayableHierarchyNodeForNode (vtkMRMLDisplayableNode *node) |
bool | DeleteHierarchyNodeAndChildren (vtkMRMLDisplayableHierarchyNode *hnode) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
Public Member Functions inherited from vtkMRMLAbstractLogic | |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLDisplayableHierarchyLogic * | New () |
The Usual vtk class functions. More... | |
static vtkMRMLDisplayableHierarchyLogic * | 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. More... | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. More... | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Slicer logic class for hierarchy manipulation.
This class manages the logic associated with displayable hierarchy nodes.
Definition at line 32 of file vtkMRMLDisplayableHierarchyLogic.h.
Definition at line 38 of file vtkMRMLDisplayableHierarchyLogic.h.
|
protected |
|
overrideprotected |
|
protected |
bool vtkMRMLDisplayableHierarchyLogic::AddChildToParent | ( | vtkMRMLDisplayableNode * | child, |
vtkMRMLDisplayableNode * | parent | ||
) |
Create displayable hierarchy nodes as needed to make the child node a child of the parent node (may need to add 1:1 hierarchy nodes for both parent and child). Return true on success, false on failure.
char* vtkMRMLDisplayableHierarchyLogic::AddDisplayableHierarchyNodeForNode | ( | vtkMRMLDisplayableNode * | node | ) |
Create a 1:1 displayable hierarchy node for this node, add it to the scene and return the id, null on failure
bool vtkMRMLDisplayableHierarchyLogic::DeleteHierarchyNodeAndChildren | ( | vtkMRMLDisplayableHierarchyNode * | hnode | ) |
Delete the passed hierarchy node and all children hierarchy nodes and the associated nodes to which they point. Return true on success, false on failure. Gets the mrml scene from the node.
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
|
static |
|
static |
The Usual vtk class functions.
|
overrideprotectedvirtual |
Delete the hierarchy node when a node is removed from the scene.
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
|
static |
|
overrideprotectedvirtual |
Reimplemented to observe the scene.
Reimplemented from vtkMRMLAbstractLogic.