Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
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 "ModelHierarchy"; }
51
55 void UpdateReferences() override;
56
59 void UpdateScene(vtkMRMLScene* scene) override;
60
63 void UpdateReferenceID(const char* oldID, const char* newID) override;
64
67 void SetModelNodeID(const char* id) { this->SetDisplayableNodeID(id); }
68
69 char* GetModelNodeID() { return this->GetDisplayableNodeID(); }
70
72 void SetModelNodeIDReference(const char* ref) { this->SetModelNodeID(ref); };
73
77
81
85
88 void GetChildrenModelNodes(vtkCollection* models);
89
92 void ProcessMRMLEvents(vtkObject* /*caller*/, unsigned long /*event*/, void* /*callData*/) override;
93
94protected:
99
101
103};
104
105#endif
virtual char * GetDisplayableNodeID()
String ID of the corresponding displayable MRML node.
virtual void SetDisplayableNodeID(const char *ref)
MRML node to represent a display property of 3D surface model.
void UpdateScene(vtkMRMLScene *scene) override
Finds the model node and read the data.
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
void UpdateReferences() override
void PrintSelf(ostream &os, vtkIndent indent) override
~vtkMRMLModelHierarchyNode() override
void GetChildrenModelNodes(vtkCollection *models)
Find all child model nodes in the hierarchy.
vtkMRMLModelDisplayNode * GetModelDisplayNode()
Get associated display MRML node.
void SetModelNodeIDReference(const char *ref)
Need this for tcl wrapping to call ReferenceStringMacro methods.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void operator=(const vtkMRMLModelHierarchyNode &)
void SetModelNodeID(const char *id)
String ID of the model MRML node.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
static vtkMRMLModelHierarchyNode * New()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, ModelHierarchy)
vtkMRMLModelHierarchyNode(const vtkMRMLModelHierarchyNode &)
vtkMRMLModelDisplayNode * ModelDisplayNode
Data.
vtkMRMLModelHierarchyNode * GetCollapsedParentNode()
Get the first parent node in hierarchy which is not expanded.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
vtkMRMLModelNode * GetModelNode()
Get associated model MRML node.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
MRML node to represent a 3D surface model.
friend class vtkMRMLScene