Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
12 class vtkAbstractTransform;
13 
15 class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationHierarchyNode : public vtkMRMLDisplayableHierarchyNode
16 {
17 public:
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
22  vtkMRMLNode* CreateNodeInstance() override;
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 
61 protected:
66 
67 };
68 
69 #endif
const char * GetNodeTagName() override
Get node XML tag name (like Volume, DisplayableHierarchy)
static vtkMRMLDisplayableHierarchyNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void operator=(const vtkMRMLDisplayableHierarchyNode &)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
MRML node to represent a hierarchy of displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167