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
vtkMRMLAnnotationFiducialsStorageNode.h
Go to the documentation of this file.
1 // .NAME vtkMRMLAnnotationFiducialsStorageNode - MRML node for representing a volume storage
2 // .SECTION Description
3 // vtkMRMLAnnotationFiducialsStorageNode can be used to read in the old style storage files ending with fcsv
4 
5 #ifndef __vtkMRMLAnnotationFiducialsStorageNode_h
6 #define __vtkMRMLAnnotationFiducialsStorageNode_h
7 
8 #include "vtkSlicerAnnotationsModuleMRMLExport.h"
10 
13 
15 class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationFiducialsStorageNode
17 {
18  public:
21 
22  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
23 
24  // Description:
25  // Get node XML tag name (like Storage, Model)
26  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "AnnotationFiducialsStorage";}
27 
30  int ReadOneFiducial(fstream & fstr, vtkMRMLAnnotationFiducialNode *fiducialNode);
31 
33  virtual bool CanReadInReferenceNode(vtkMRMLNode* refNode) VTK_OVERRIDE;
34 
35 protected:
40 
42  int ReadAnnotationFiducialsData(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int labelColumn, int xColumn, int yColumn, int zColumn,
43  int selColumn, int visColumn, int numColumns);
44  int ReadAnnotationFiducialsProperties(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int &labelColumn,
45  int& xColumn, int& yColumn, int& zColumn, int& selColumn, int& visColumn, int& numColumns);
46 
47  // Description:
48  // Initialize all the supported write file types
49  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
50 
51  // Read data and set it in the referenced node
52  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
53 
54 };
55 
56 #endif
int ReadAnnotation(vtkMRMLAnnotationControlPointsNode *refNode)
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE
Return true if the node can be read in.
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
Create instance of the default node. Like New only virtual.
static vtkMRMLAnnotationControlPointsStorageNode * New()
MRML node to represent a fiducial in the Annotations module - deprecated.
void operator=(const vtkMRMLAnnotationControlPointsStorageNode &)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE
Initialize all the supported write file types.