Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
15class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationFiducialsStorageNode
17{
18 public:
21
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
35protected:
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
50
51 // Read data and set it in the referenced node
52 int ReadDataInternal(vtkMRMLNode *refNode) override;
53
54};
55
56#endif
MRML node to represent a fiducial in the Annotations module - deprecated.
void operator=(const vtkMRMLAnnotationFiducialsStorageNode &)
int ReadAnnotationFiducialsData(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int labelColumn, int xColumn, int yColumn, int zColumn, int selColumn, int visColumn, int numColumns)
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
Return true if the node can be read in.
int ReadAnnotationFiducialsProperties(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int &labelColumn, int &xColumn, int &yColumn, int &zColumn, int &selColumn, int &visColumn, int &numColumns)
static vtkMRMLAnnotationFiducialsStorageNode * New()
~vtkMRMLAnnotationFiducialsStorageNode() override=default
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
void InitializeSupportedWriteFileTypes() override
vtkMRMLAnnotationFiducialsStorageNode(const vtkMRMLAnnotationFiducialsStorageNode &)
int ReadOneFiducial(fstream &fstr, vtkMRMLAnnotationFiducialNode *fiducialNode)
int ReadAnnotation(vtkMRMLAnnotationFiducialNode *refNode)
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
Abstract Superclass for all specific types of MRML nodes.