Slicer  4.10
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 Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
vtkMRMLModelHierarchyLogic Class Reference

Slicer logic class for volumes manipulation. More...

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

Inheritance diagram for vtkMRMLModelHierarchyLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLModelHierarchyLogic:
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

virtual int GetChildrenVisibilitySetBatchUpdateThreshold ()
 
virtual const char * GetClassName ()
 
void GetHierarchyChildrenNodes (vtkMRMLModelHierarchyNode *parentNode, vtkMRMLModelHierarchyNodeList &childrenNodes)
 
Given model hierarchy node returns all it's children recursively. More...
 
vtkMRMLModelHierarchyNodeList GetHierarchyChildrenNodes (vtkMRMLModelHierarchyNode *parentNode)
 
vtkMRMLModelHierarchyNodeGetModelHierarchyNode (const char *modelNodeID)
 
int GetNumberOfModelsInHierarchy ()
 
Return number of model that are in a hierarchy More...
 
void HierarchyIsModified ()
 
Call this to update the cache when hierarchy is modified. More...
 
virtual int IsA (const char *type)
 
virtual void SetChildrenVisibilitySetBatchUpdateThreshold (int)
 
- 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 vtkMRMLModelHierarchyLogicNew ()
 The Usual vtk class functions. More...
 
static vtkMRMLModelHierarchyLogicSafeDownCast (vtkObject *o)
 
static void SetChildrenVisibility (vtkMRMLDisplayableHierarchyNode *displayableHierarchyNode, const char *displayableNodeClass, const char *displayNodeClass, int visibility)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Types

typedef std::map< std::string, std::vector< vtkMRMLModelHierarchyNode * > > HierarchyChildrenNodesType
 

Protected Member Functions

virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *removedNode) VTK_OVERRIDE
 Delete the hierarchy node when a model is removed from the scene. More...
 
void operator= (const vtkMRMLModelHierarchyLogic &)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 Reimplemented to observe the scene. More...
 
void UpdateHierarchyChildrenMap ()
 
int UpdateModelToHierarchyMap ()
 
 vtkMRMLModelHierarchyLogic ()
 
 vtkMRMLModelHierarchyLogic (const vtkMRMLModelHierarchyLogic &)
 
 ~vtkMRMLModelHierarchyLogic ()
 
- 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 ()
 

Protected Attributes

HierarchyChildrenNodesType HierarchyChildrenNodes
 
vtkMTimeType HierarchyChildrenNodesMTime
 
std::map< std::string, vtkMRMLModelHierarchyNode * > ModelHierarchyNodes
 
vtkMTimeType ModelHierarchyNodesMTime
 

Static Protected Attributes

static int ChildrenVisibilitySetBatchUpdateThreshold
 

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 volumes manipulation.

This class manages the logic associated with reading, saving, and changing propertied of the volumes.

Definition at line 36 of file vtkMRMLModelHierarchyLogic.h.

Member Typedef Documentation

◆ HierarchyChildrenNodesType

typedef std::map<std::string, std::vector< vtkMRMLModelHierarchyNode *> > vtkMRMLModelHierarchyLogic::HierarchyChildrenNodesType
protected

Definition at line 109 of file vtkMRMLModelHierarchyLogic.h.

◆ Superclass

Definition at line 41 of file vtkMRMLModelHierarchyLogic.h.

Constructor & Destructor Documentation

◆ vtkMRMLModelHierarchyLogic() [1/2]

vtkMRMLModelHierarchyLogic::vtkMRMLModelHierarchyLogic ( )
protected

◆ ~vtkMRMLModelHierarchyLogic()

vtkMRMLModelHierarchyLogic::~vtkMRMLModelHierarchyLogic ( )
protected

◆ vtkMRMLModelHierarchyLogic() [2/2]

vtkMRMLModelHierarchyLogic::vtkMRMLModelHierarchyLogic ( const vtkMRMLModelHierarchyLogic )
protected

Member Function Documentation

◆ GetChildrenVisibilitySetBatchUpdateThreshold()

virtual int vtkMRMLModelHierarchyLogic::GetChildrenVisibilitySetBatchUpdateThreshold ( )
virtual

◆ GetClassName()

virtual const char* vtkMRMLModelHierarchyLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ GetHierarchyChildrenNodes() [1/2]

void vtkMRMLModelHierarchyLogic::GetHierarchyChildrenNodes ( vtkMRMLModelHierarchyNode parentNode,
vtkMRMLModelHierarchyNodeList childrenNodes 
)


Given model hierarchy node returns all it's children recursively.

◆ GetHierarchyChildrenNodes() [2/2]

vtkMRMLModelHierarchyNodeList vtkMRMLModelHierarchyLogic::GetHierarchyChildrenNodes ( vtkMRMLModelHierarchyNode parentNode)

Given model hierarchy node returns all it's 1st level children (not recursive). Note: Most compilers don't make a copy of the list if you call the function like that: std::vector< vtkMRMLModelHierarchyNode > children = logic->GetHierarchyChildrenNodes(parent);

◆ GetModelHierarchyNode()

vtkMRMLModelHierarchyNode* vtkMRMLModelHierarchyLogic::GetModelHierarchyNode ( const char *  modelNodeID)

Given model id return it's hierarchy or NULL if it does not have one

◆ GetNumberOfModelsInHierarchy()

int vtkMRMLModelHierarchyLogic::GetNumberOfModelsInHierarchy ( )
inline


Return number of model that are in a hierarchy

Definition at line 50 of file vtkMRMLModelHierarchyLogic.h.

◆ HierarchyIsModified()

void vtkMRMLModelHierarchyLogic::HierarchyIsModified ( )
inline


Call this to update the cache when hierarchy is modified.

Definition at line 68 of file vtkMRMLModelHierarchyLogic.h.

◆ IsA()

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

Reimplemented from vtkMRMLAbstractLogic.

◆ IsTypeOf()

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

◆ New()

static vtkMRMLModelHierarchyLogic* vtkMRMLModelHierarchyLogic::New ( )
static

The Usual vtk class functions.

◆ OnMRMLSceneNodeRemoved()

virtual void vtkMRMLModelHierarchyLogic::OnMRMLSceneNodeRemoved ( vtkMRMLNode removedNode)
protectedvirtual

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

Reimplemented from vtkMRMLAbstractLogic.

◆ operator=()

void vtkMRMLModelHierarchyLogic::operator= ( const vtkMRMLModelHierarchyLogic )
protected

◆ SafeDownCast()

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

◆ SetChildrenVisibility()

static void vtkMRMLModelHierarchyLogic::SetChildrenVisibility ( vtkMRMLDisplayableHierarchyNode displayableHierarchyNode,
const char *  displayableNodeClass,
const char *  displayNodeClass,
int  visibility 
)
static

Set visibility on all children of the node recursively If displayNodeClass is not 0 apply only to the disaply nodes of that class, otherwise to all display nodes

◆ SetChildrenVisibilitySetBatchUpdateThreshold()

virtual void vtkMRMLModelHierarchyLogic::SetChildrenVisibilitySetBatchUpdateThreshold ( int  )
virtual

Children visibility setting will be performed in batch processing mode if the number of children nodes are more than this number (the same value is used by all the logic instances)

◆ SetMRMLSceneInternal()

virtual void vtkMRMLModelHierarchyLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
protectedvirtual

Reimplemented to observe the scene.

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdateHierarchyChildrenMap()

void vtkMRMLModelHierarchyLogic::UpdateHierarchyChildrenMap ( )
protected

◆ UpdateModelToHierarchyMap()

int vtkMRMLModelHierarchyLogic::UpdateModelToHierarchyMap ( )
protected

Create model to hierarchy map, return number of model hierarchy nodes

Member Data Documentation

◆ ChildrenVisibilitySetBatchUpdateThreshold

int vtkMRMLModelHierarchyLogic::ChildrenVisibilitySetBatchUpdateThreshold
staticprotected

Definition at line 115 of file vtkMRMLModelHierarchyLogic.h.

◆ HierarchyChildrenNodes

HierarchyChildrenNodesType vtkMRMLModelHierarchyLogic::HierarchyChildrenNodes
protected

Definition at line 110 of file vtkMRMLModelHierarchyLogic.h.

◆ HierarchyChildrenNodesMTime

vtkMTimeType vtkMRMLModelHierarchyLogic::HierarchyChildrenNodesMTime
protected

Definition at line 113 of file vtkMRMLModelHierarchyLogic.h.

◆ ModelHierarchyNodes

std::map<std::string, vtkMRMLModelHierarchyNode *> vtkMRMLModelHierarchyLogic::ModelHierarchyNodes
protected

Definition at line 108 of file vtkMRMLModelHierarchyLogic.h.

◆ ModelHierarchyNodesMTime

vtkMTimeType vtkMRMLModelHierarchyLogic::ModelHierarchyNodesMTime
protected

Definition at line 112 of file vtkMRMLModelHierarchyLogic.h.


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