Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkMRMLModelHierarchyNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLModelHierarchyNode.h,v $
10  Date: $Date: 2006/03/19 17:12:28 $
11  Version: $Revision: 1.6 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLModelHierarchyNode_h
16 #define __vtkMRMLModelHierarchyNode_h
17 
20 class vtkMRMLModelNode;
21 
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
29 
30  //--------------------------------------------------------------------------
32  //--------------------------------------------------------------------------
33 
34  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
35 
38  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
39 
42  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
43 
44 
47  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
48 
51  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "ModelHierarchy";}
52 
56  virtual void UpdateReferences() VTK_OVERRIDE;
57 
60  virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE;
61 
64  virtual void UpdateReferenceID(const char *oldID, const char *newID) VTK_OVERRIDE;
65 
68  void SetModelNodeID(const char* id)
69  {
70  this->SetDisplayableNodeID(id);
71  }
72 
74  {
75  return this->GetDisplayableNodeID();
76  }
77 
79  void SetModelNodeIDReference(const char* ref) {
80  this->SetModelNodeID(ref);
81  };
82 
83 
86  vtkMRMLModelNode* GetModelNode();
87 
90  vtkMRMLModelDisplayNode* GetModelDisplayNode();
91 
92 
96 
99  void GetChildrenModelNodes(vtkCollection *models);
100 
103  virtual void ProcessMRMLEvents ( vtkObject * /*caller*/,
104  unsigned long /*event*/,
105  void * /*callData*/ ) VTK_OVERRIDE;
106 
107 
108 protected:
113 
114 
116 
118 
119 };
120 
121 #endif
void SetModelNodeIDReference(const char *ref)
Need this for tcl wrapping to call ReferenceStringMacro methods.
vtkMRMLDisplayableHierarchyNode * GetCollapsedParentNode()
Get the top parent node in the hierarchy which is not expanded
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
virtual void ProcessMRMLEvents(vtkObject *, unsigned long, void *) VTK_OVERRIDE
alternative method to propagate events generated in Display nodes
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
MRML node to represent a display property of 3D surface model.
MRML node to represent a 3D surface model.
static vtkMRMLDisplayableHierarchyNode * New()
void operator=(const vtkMRMLDisplayableHierarchyNode &)
virtual char * GetDisplayableNodeID()
String ID of the corresponding displayable MRML node
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
virtual void SetDisplayableNodeID(const char *ref)
vtkMRMLModelDisplayNode * ModelDisplayNode
Data.
MRML node to represent a hierarchyu of models.
virtual void UpdateReferences() VTK_OVERRIDE
MRML node to represent a hierarchy of displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138