Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLAnnotationHierarchyNode.h
Go to the documentation of this file.
1// .NAME vtkMRMLAnnotationHierarchyNode - MRML node to represent hierarchy of Annotations.
2// .SECTION Description
3// n/a
4//
5
6#ifndef __vtkMRMLAnnotationHierarchyNode_h
7#define __vtkMRMLAnnotationHierarchyNode_h
8
9#include "vtkSlicerAnnotationsModuleMRMLExport.h"
11
12class vtkAbstractTransform;
13
15class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationHierarchyNode : public vtkMRMLDisplayableHierarchyNode
16{
17public:
20 void PrintSelf(ostream& os, vtkIndent indent) override;
21
23
24 virtual const char* GetIcon() {return ":/Icons/Medium/SlicerHierarchy.png";};
25
26 // Description:
27 // Read node attributes from XML file
28 void ReadXMLAttributes( const char** atts) override;
29
30 // Description:
31 // Write this node's information to a MRML file in XML format.
32 void WriteXML(ostream& of, int indent) override;
33
34 // Description:
35 // Get node XML tag name (like Volume, Annotation)
36 const char* GetNodeTagName() override;
37
38 // Description:
39 // Get all top level children associated to this node.
40 virtual void GetDirectChildren(vtkCollection *children);
41
44 virtual void GetAllChildren(vtkCollection *children);
45
50 virtual void GetChildren(vtkCollection *children, int level);
51
52 // Description:
53 // Delete all children of this node
54 // If a child is another hierarchyNode, the parent of it gets set to this' parent
55 virtual void DeleteDirectChildren();
56
58 virtual bool CanApplyNonLinearTransforms()const;
59 virtual void ApplyTransform(vtkAbstractTransform* transform);
60
61protected:
66
67};
68
69#endif
void ReadXMLAttributes(const char **atts) override
virtual void GetChildren(vtkCollection *children, int level)
void WriteXML(ostream &of, int indent) override
virtual void DeleteDirectChildren()
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool CanApplyNonLinearTransforms() const
From Transformable superclass.
virtual void GetDirectChildren(vtkCollection *children)
static vtkMRMLAnnotationHierarchyNode * New()
~vtkMRMLAnnotationHierarchyNode() override
virtual void GetAllChildren(vtkCollection *children)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
vtkMRMLAnnotationHierarchyNode(const vtkMRMLAnnotationHierarchyNode &)
const char * GetNodeTagName() override
void operator=(const vtkMRMLAnnotationHierarchyNode &)
virtual void ApplyTransform(vtkAbstractTransform *transform)
MRML node to represent a hierarchy of displayable nodes.
Abstract Superclass for all specific types of MRML nodes.