Slicer  4.8
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) VTK_OVERRIDE;
21 
22  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
23 
24  virtual const char* GetIcon() {return ":/Icons/Medium/SlicerHierarchy.png";};
25 
26  // Description:
27  // Read node attributes from XML file
28  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
29 
30  // Description:
31  // Write this node's information to a MRML file in XML format.
32  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
33 
34  // Description:
35  // Get node XML tag name (like Volume, Annotation)
36  virtual const char* GetNodeTagName() VTK_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
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkMRMLDisplayableHierarchyNode * New()
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
void operator=(const vtkMRMLDisplayableHierarchyNode &)
MRML node to represent a hierarchy of displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual const char * GetNodeTagName() VTK_OVERRIDE
Get node XML tag name (like Volume, DisplayableHierarchy)