15 #ifndef __vtkMRMLModelHierarchyLogic_h 16 #define __vtkMRMLModelHierarchyLogic_h 52 this->UpdateModelToHierarchyMap();
53 return (
int)this->ModelHierarchyNodes.size();
70 ModelHierarchyNodesMTime = 0;
71 HierarchyChildrenNodesMTime = 0;
79 const char *displayableNodeClass,
const char *displayNodeClass,
86 vtkSetMacro(ChildrenVisibilitySetBatchUpdateThreshold,
int);
87 vtkGetMacro(ChildrenVisibilitySetBatchUpdateThreshold,
int);
104 int UpdateModelToHierarchyMap();
106 void UpdateHierarchyChildrenMap();
Superclass for MRML logic classes.
HierarchyChildrenNodesType HierarchyChildrenNodes
vtkMTimeType ModelHierarchyNodesMTime
std::vector< vtkMRMLModelHierarchyNode * > vtkMRMLModelHierarchyNodeList
std::map< std::string, std::vector< vtkMRMLModelHierarchyNode * > > HierarchyChildrenNodesType
A set of MRML Nodes that supports serialization and undo/redo.
static int ChildrenVisibilitySetBatchUpdateThreshold
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode *)
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
int GetNumberOfModelsInHierarchy()
Return number of model that are in a hierarchy
vtkMTimeType HierarchyChildrenNodesMTime
MRML node to represent a hierarchyu of models.
void HierarchyIsModified()
Call this to update the cache when hierarchy is modified.
Slicer logic class for volumes manipulation.
MRML node to represent a hierarchy of displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
static vtkMRMLAbstractLogic * New()
std::map< std::string, vtkMRMLModelHierarchyNode * > ModelHierarchyNodes