Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Slicer logic class for volumes manipulation. More...
#include <Libs/MRML/Logic/vtkMRMLModelHierarchyLogic.h>
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) |
vtkMRMLModelHierarchyNode * | GetModelHierarchyNode (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 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) 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 vtkMRMLModelHierarchyLogic * | New () |
The Usual vtk class functions. More... | |
static vtkMRMLModelHierarchyLogic * | SafeDownCast (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 vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Protected Types | |
typedef std::map< std::string, std::vector< vtkMRMLModelHierarchyNode * > > | HierarchyChildrenNodesType |
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) |
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.
|
protected |
Definition at line 109 of file vtkMRMLModelHierarchyLogic.h.
Definition at line 41 of file vtkMRMLModelHierarchyLogic.h.
|
protected |
|
protected |
|
protected |
|
virtual |
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
void vtkMRMLModelHierarchyLogic::GetHierarchyChildrenNodes | ( | vtkMRMLModelHierarchyNode * | parentNode, |
vtkMRMLModelHierarchyNodeList & | childrenNodes | ||
) |
Given model hierarchy node returns all it's children recursively.
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);
vtkMRMLModelHierarchyNode* vtkMRMLModelHierarchyLogic::GetModelHierarchyNode | ( | const char * | modelNodeID | ) |
Given model id return it's hierarchy or NULL if it does not have one
|
inline |
Return number of model that are in a hierarchy.
Definition at line 50 of file vtkMRMLModelHierarchyLogic.h.
|
inline |
Call this to update the cache when hierarchy is modified.
Definition at line 68 of file vtkMRMLModelHierarchyLogic.h.
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
|
static |
|
static |
The Usual vtk class functions.
|
protectedvirtual |
Delete the hierarchy node when a model is removed from the scene.
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
|
static |
|
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
|
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)
|
protectedvirtual |
Reimplemented to observe the scene.
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
|
protected |
Create model to hierarchy map, return number of model hierarchy nodes
|
staticprotected |
Definition at line 115 of file vtkMRMLModelHierarchyLogic.h.
|
protected |
Definition at line 110 of file vtkMRMLModelHierarchyLogic.h.
|
protected |
Definition at line 113 of file vtkMRMLModelHierarchyLogic.h.
|
protected |
Definition at line 108 of file vtkMRMLModelHierarchyLogic.h.
|
protected |
Definition at line 112 of file vtkMRMLModelHierarchyLogic.h.