Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLDisplayableHierarchyNode.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: vtkMRMLDisplayableHierarchyNode.h,v $
10 Date: $Date: 2006/03/19 17:12:28 $
11 Version: $Revision: 1.6 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLDisplayableHierarchyNode_h
16#define __vtkMRMLDisplayableHierarchyNode_h
17
21
22class vtkCallbackCommand;
23
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
32 //--------------------------------------------------------------------------
34 //--------------------------------------------------------------------------
35
37
40 void ReadXMLAttributes( const char** atts) override;
41
44 void WriteXML(ostream& of, int indent) override;
45
46
49 void Copy(vtkMRMLNode *node) override;
50
53 const char* GetNodeTagName() override {return "DisplayableHierarchy";}
54
56 void SetSceneReferences() override;
57
61 void UpdateReferences() override;
62
65 void UpdateScene(vtkMRMLScene *scene) override;
66
69 void UpdateReferenceID(const char *oldID, const char *newID) override;
70
73 virtual char* GetDisplayableNodeID()
74 {
75 return this->GetAssociatedNodeID();
76 }
77
78 virtual void SetDisplayableNodeID(const char* ref)
79 {
80 this->SetAssociatedNodeID(ref);
81 }
82
83 void SetAndObserveDisplayNodeID(const char *DisplayNodeID);
84 vtkGetStringMacro(DisplayNodeID);
85
86
90
94
95
98 vtkBooleanMacro(Expanded, int);
99 vtkGetMacro(Expanded, int);
100 vtkSetMacro(Expanded, int);
101
105
108 void GetChildrenDisplayableNodes(vtkCollection *children);
109
113 const char *displayableNodeID);
114
115
119
123
124
127 void ProcessMRMLEvents ( vtkObject * /*caller*/,
128 unsigned long /*event*/,
129 void * /*callData*/ ) override;
130
132 enum
133 {
134 DisplayModifiedEvent = 17000
135 };
136
137
138protected:
143
144 void SetDisplayNodeID(const char *);
145
147
149
151
152
153};
154
155#endif
Abstract class that contains graphical display properties for displayable nodes.
MRML node to represent a hierarchy of displayable nodes.
vtkMRMLDisplayableHierarchyNode * GetCollapsedParentNode()
Get the top parent node in the hierarchy which is not expanded.
static vtkMRMLDisplayableHierarchyNode * New()
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void PrintSelf(ostream &os, vtkIndent indent) override
vtkMRMLDisplayNode * GetDisplayNode()
Get associated display MRML node.
void GetChildrenDisplayableNodes(vtkCollection *children)
Find all child displayable nodes in the hierarchy.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
virtual char * GetDisplayableNodeID()
String ID of the corresponding displayable MRML node.
vtkMRMLDisplayableNode * GetDisplayableNode()
Get associated displayable MRML node.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void SetDisplayNodeID(const char *)
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
static vtkMRMLDisplayableHierarchyNode * GetDisplayableHierarchyNode(vtkMRMLScene *scene, const char *displayableNodeID)
Get Hierarchy node for a given displayable node.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, DisplayableHierarchy)
void SetSceneReferences() override
Set the display node as reference into the scene.
vtkMRMLDisplayableHierarchyNode(const vtkMRMLDisplayableHierarchyNode &)
void SetAndObserveDisplayNodeID(const char *DisplayNodeID)
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
void operator=(const vtkMRMLDisplayableHierarchyNode &)
void UpdateScene(vtkMRMLScene *scene) override
Finds the Displayable node and read the data.
virtual void SetDisplayableNodeID(const char *ref)
Abstract class representing a hierarchy member.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.