Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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  vtkMRMLNode* CreateNodeInstance() override;
23 
24  // Description:
25  // Get node XML tag name (like Storage, Model)
26  const char* GetNodeTagName() override {return "AnnotationFiducialsStorage";}
27 
30  int ReadOneFiducial(fstream & fstr, vtkMRMLAnnotationFiducialNode *fiducialNode);
31 
33  bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
34 
35 protected:
37  ~vtkMRMLAnnotationFiducialsStorageNode() override = default;
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  void InitializeSupportedWriteFileTypes() override;
50 
51  // Read data and set it in the referenced node
52  int ReadDataInternal(vtkMRMLNode *refNode) override;
53 
54 };
55 
56 #endif
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
int ReadAnnotation(vtkMRMLAnnotationControlPointsNode *refNode)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
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:167
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)