Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkMRMLDisplayableHierarchyLogic Class Reference

Slicer logic class for hierarchy manipulation. More...

#include <Libs/MRML/Logic/vtkMRMLDisplayableHierarchyLogic.h>

Inheritance diagram for vtkMRMLDisplayableHierarchyLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLDisplayableHierarchyLogic:
Collaboration graph
[legend]

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 vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_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 vtkMRMLDisplayableHierarchyLogicNew ()
 The Usual vtk class functions. More...
 
static vtkMRMLDisplayableHierarchyLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *removedNode) VTK_OVERRIDE
 Delete the hierarchy node when a node is removed from the scene. More...
 
void operator= (const vtkMRMLDisplayableHierarchyLogic &)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 Reimplemented to observe the scene. More...
 
 vtkMRMLDisplayableHierarchyLogic ()
 
 vtkMRMLDisplayableHierarchyLogic (const vtkMRMLDisplayableHierarchyLogic &)
 
 ~vtkMRMLDisplayableHierarchyLogic ()
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any. More...
 
int InvokePendingModifiedEvent ()
 
virtual void Modified () VTK_OVERRIDE
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=0)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

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)
 

Detailed Description

Slicer logic class for hierarchy manipulation.

This class manages the logic associated with displayable hierarchy nodes.

Definition at line 32 of file vtkMRMLDisplayableHierarchyLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 38 of file vtkMRMLDisplayableHierarchyLogic.h.

Constructor & Destructor Documentation

◆ vtkMRMLDisplayableHierarchyLogic() [1/2]

vtkMRMLDisplayableHierarchyLogic::vtkMRMLDisplayableHierarchyLogic ( )
protected

◆ ~vtkMRMLDisplayableHierarchyLogic()

vtkMRMLDisplayableHierarchyLogic::~vtkMRMLDisplayableHierarchyLogic ( )
protected

◆ vtkMRMLDisplayableHierarchyLogic() [2/2]

vtkMRMLDisplayableHierarchyLogic::vtkMRMLDisplayableHierarchyLogic ( const vtkMRMLDisplayableHierarchyLogic )
protected

Member Function Documentation

◆ AddChildToParent()

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.

◆ AddDisplayableHierarchyNodeForNode()

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

◆ DeleteHierarchyNodeAndChildren()

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.

◆ GetClassName()

virtual const char* vtkMRMLDisplayableHierarchyLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsA()

virtual int vtkMRMLDisplayableHierarchyLogic::IsA ( const char *  type)
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsTypeOf()

static int vtkMRMLDisplayableHierarchyLogic::IsTypeOf ( const char *  type)
static

◆ New()

static vtkMRMLDisplayableHierarchyLogic* vtkMRMLDisplayableHierarchyLogic::New ( )
static

The Usual vtk class functions.

◆ OnMRMLSceneNodeRemoved()

virtual void vtkMRMLDisplayableHierarchyLogic::OnMRMLSceneNodeRemoved ( vtkMRMLNode removedNode)
protectedvirtual

Delete the hierarchy node when a node is removed from the scene.

Reimplemented from vtkMRMLAbstractLogic.

◆ operator=()

void vtkMRMLDisplayableHierarchyLogic::operator= ( const vtkMRMLDisplayableHierarchyLogic )
protected

◆ SafeDownCast()

static vtkMRMLDisplayableHierarchyLogic* vtkMRMLDisplayableHierarchyLogic::SafeDownCast ( vtkObject *  o)
static

◆ SetMRMLSceneInternal()

virtual void vtkMRMLDisplayableHierarchyLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
protectedvirtual

Reimplemented to observe the scene.

Reimplemented from vtkMRMLAbstractLogic.


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