Slicer  4.10
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
vtkMRMLAnnotationAngleStorageNode.h
Go to the documentation of this file.
1 // .NAME vtkMRMLAnnotationAngleStorageNode - MRML node for representing a volume storage
2 // .SECTION Description
3 // vtkMRMLAnnotationAngleStorageNode nodes describe the annotation storage
4 // node that allows to read/write point data from/to file.
5 
6 #ifndef __vtkMRMLAnnotationAngleStorageNode_h
7 #define __vtkMRMLAnnotationAngleStorageNode_h
8 
9 #include "vtkSlicerAnnotationsModuleMRMLExport.h"
11 
13 
15 class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationAngleStorageNode
17 {
18 public:
21  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
22 
23  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
24 
25  // Description:
26  // Get node XML tag name (like Storage, Model)
27  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "AnnotationAngleStorage";}
28 
30  virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
31 
32 protected:
37 
38  const char* GetAnnotationStorageType() { return "angle"; }
39 
42  int WriteAnnotationAngleProperties(fstream & of, vtkMRMLAnnotationAngleNode *refNode);
43  int WriteAnnotationAngleData(fstream& of, vtkMRMLAnnotationAngleNode *refNode);
44 
46  int ReadAnnotationAngleData(vtkMRMLAnnotationAngleNode *refNode, char line[1024], int typeColumn, int line1IDColumn, int line2IDColumn, int selColumn, int visColumn, int numColumns);
47  int ReadAnnotationAngleProperties(vtkMRMLAnnotationAngleNode *refNode, char line[1024], int &typeColumn, int& line1IDColumn, int& line2Column, int& selColumn, int& visColumn, int& numColumns);
48 
50  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
51 
53  virtual int WriteAnnotationDataInternal(vtkMRMLNode *refNode, fstream & of) VTK_OVERRIDE;
54 };
55 
56 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int ReadAnnotation(vtkMRMLAnnotationLinesNode *refNode)
void operator=(const vtkMRMLAnnotationLinesStorageNode &)
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
Create instance of the default node. Like New only virtual.
static vtkMRMLAnnotationLinesStorageNode * New()
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE
Read data and set it in the referenced node.
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE
Return true if the node can be read in.
virtual int WriteAnnotationDataInternal(vtkMRMLNode *refNode, fstream &of) VTK_OVERRIDE
Write data from a referenced node into a passed stream.