Slicer 5.9
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
14class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationFiducialsStorageNode
16{
17 public:
20
22
23 // Description:
24 // Get node XML tag name (like Storage, Model)
25 const char* GetNodeTagName() override {return "AnnotationFiducialsStorage";}
26
29 int ReadOneFiducial(fstream & fstr, vtkMRMLAnnotationFiducialNode *fiducialNode);
30
32 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
33
34protected:
39
41 int ReadAnnotationFiducialsData(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int labelColumn, int xColumn, int yColumn, int zColumn,
42 int selColumn, int visColumn, int numColumns);
43 int ReadAnnotationFiducialsProperties(vtkMRMLAnnotationFiducialNode *refNode, char line[1024], int &labelColumn,
44 int& xColumn, int& yColumn, int& zColumn, int& selColumn, int& visColumn, int& numColumns);
45
46 // Description:
47 // Initialize all the supported write file types
49
50 // Read data and set it in the referenced node
51 int ReadDataInternal(vtkMRMLNode *refNode) override;
52
53};
54
55#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.