Slicer 5.9
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
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
30 //--------------------------------------------------------------------------
32 //--------------------------------------------------------------------------
33
35
38 void ReadXMLAttributes(const char** atts) override;
39
42 void WriteXML(ostream& of, int indent) override;
43
46 void Copy(vtkMRMLNode* node) override;
47
50 const char* GetNodeTagName() override { return "DisplayableHierarchy"; }
51
53 void SetSceneReferences() override;
54
58 void UpdateReferences() override;
59
62 void UpdateScene(vtkMRMLScene* scene) override;
63
66 void UpdateReferenceID(const char* oldID, const char* newID) override;
67
70 virtual char* GetDisplayableNodeID() { return this->GetAssociatedNodeID(); }
71
72 virtual void SetDisplayableNodeID(const char* ref) { this->SetAssociatedNodeID(ref); }
73
75 vtkGetStringMacro(DisplayNodeID);
76
80
84
87 vtkBooleanMacro(Expanded, int);
88 vtkGetMacro(Expanded, int);
89 vtkSetMacro(Expanded, int);
90
94
97 void GetChildrenDisplayableNodes(vtkCollection* children);
98
101 static vtkMRMLDisplayableHierarchyNode* GetDisplayableHierarchyNode(vtkMRMLScene* scene, const char* displayableNodeID);
102
106
110
113 void ProcessMRMLEvents(vtkObject* /*caller*/, unsigned long /*event*/, void* /*callData*/) override;
114
116 enum
117 {
119 };
120
121protected:
126
127 void SetDisplayNodeID(const char*);
128
130
132
134};
135
136#endif
Abstract class that contains graphical display properties for 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)
virtual void SetAssociatedNodeID(const char *ref)
virtual char * GetAssociatedNodeID()
String ID of the corresponding displayable MRML node.
friend class vtkMRMLScene