Slicer 5.9
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
14class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationFiducialsStorageNode : public vtkMRMLAnnotationControlPointsStorageNode
15{
16public:
19
21
22 // Description:
23 // Get node XML tag name (like Storage, Model)
24 const char* GetNodeTagName() override { return "AnnotationFiducialsStorage"; }
25
28 int ReadOneFiducial(fstream& fstr, vtkMRMLAnnotationFiducialNode* fiducialNode);
29
31 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
32
33protected:
38
41 char line[1024],
42 int labelColumn,
43 int xColumn,
44 int yColumn,
45 int zColumn,
46 int selColumn,
47 int visColumn,
48 int numColumns);
50 char line[1024],
51 int& labelColumn,
52 int& xColumn,
53 int& yColumn,
54 int& zColumn,
55 int& selColumn,
56 int& visColumn,
57 int& numColumns);
58
59 // Description:
60 // Initialize all the supported write file types
62
63 // Read data and set it in the referenced node
64 int ReadDataInternal(vtkMRMLNode* refNode) override;
65};
66
67#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.