Slicer 5.9
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
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
14class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationHierarchyNode : public vtkMRMLDisplayableHierarchyNode
15{
16public:
19 void PrintSelf(ostream& os, vtkIndent indent) override;
20
22
23 virtual const char* GetIcon() {return ":/Icons/Medium/SlicerHierarchy.png";};
24
25 // Description:
26 // Read node attributes from XML file
27 void ReadXMLAttributes( const char** atts) override;
28
29 // Description:
30 // Write this node's information to a MRML file in XML format.
31 void WriteXML(ostream& of, int indent) override;
32
33 // Description:
34 // Get node XML tag name (like Volume, Annotation)
35 const char* GetNodeTagName() override;
36
37 // Description:
38 // Get all top level children associated to this node.
39 virtual void GetDirectChildren(vtkCollection *children);
40
43 virtual void GetAllChildren(vtkCollection *children);
44
49 virtual void GetChildren(vtkCollection *children, int level);
50
51 // Description:
52 // Delete all children of this node
53 // If a child is another hierarchyNode, the parent of it gets set to this' parent
54 virtual void DeleteDirectChildren();
55
57 virtual bool CanApplyNonLinearTransforms()const;
58 virtual void ApplyTransform(vtkAbstractTransform* transform);
59
60protected:
65
66};
67
68#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)