Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLAnnotationControlPointsStorageNode.h
Go to the documentation of this file.
1// .NAME vtkMRMLAnnotationControlPointsStorageNode - MRML node for representing a volume storage
2// .SECTION Description
3// vtkMRMLAnnotationControlPointsStorageNode nodes describe the annotation storage
4// node that allows to read/write point data from/to file.
5
6#ifndef __vtkMRMLAnnotationControlPointsStorageNode_h
7#define __vtkMRMLAnnotationControlPointsStorageNode_h
8
9#include "vtkSlicerAnnotationsModuleMRMLExport.h"
11
14
15class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationControlPointsStorageNode : public vtkMRMLAnnotationStorageNode
16{
17public:
20 void PrintSelf(ostream& os, vtkIndent indent) override;
21
23
24 // Description:
25 // Get node XML tag name (like Storage, Model)
26 const char* GetNodeTagName() override { return "AnnotationControlPointsStorage"; }
27
28 // Initialize all the supported write file types
29 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
30
31protected:
36
37 const char* GetAnnotationStorageType() { return "point"; }
38
39 int WriteAnnotationPointDisplayProperties(fstream& of, vtkMRMLAnnotationPointDisplayNode* refNode, std::string preposition);
42
45 char line[1024],
46 int typeColumn,
47 int xColumn,
48 int yColumn,
49 int zColumn,
50 int selColumn,
51 int visColumn,
52 int numColumns);
53 int ReadAnnotationPointDisplayProperties(vtkMRMLAnnotationPointDisplayNode* refNode, std::string lineString, std::string preposition);
55 char line[1024],
56 int& typeColumn,
57 int& xColumn,
58 int& yColumn,
59 int& zColumn,
60 int& selColumn,
61 int& visColumn,
62 int& numColumns);
63
65 int ReadDataInternal(vtkMRMLNode* refNode) override;
66
67 int WriteAnnotationDataInternal(vtkMRMLNode* refNode, fstream& of) override;
68};
69
70#endif
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
vtkMRMLAnnotationControlPointsStorageNode(const vtkMRMLAnnotationControlPointsStorageNode &)
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
int ReadAnnotationControlPointsData(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int typeColumn, int xColumn, int yColumn, int zColumn, int selColumn, int visColumn, int numColumns)
int WriteAnnotationPointDisplayProperties(fstream &of, vtkMRMLAnnotationPointDisplayNode *refNode, std::string preposition)
int WriteAnnotationControlPointsData(fstream &of, vtkMRMLAnnotationControlPointsNode *refNode)
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkMRMLAnnotationControlPointsStorageNode * New()
void operator=(const vtkMRMLAnnotationControlPointsStorageNode &)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
int ReadAnnotationPointDisplayProperties(vtkMRMLAnnotationPointDisplayNode *refNode, std::string lineString, std::string preposition)
int WriteAnnotationControlPointsProperties(fstream &of, vtkMRMLAnnotationControlPointsNode *refNode)
int ReadAnnotationControlPointsProperties(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int &typeColumn, int &xColumn, int &yColumn, int &zColumn, int &selColumn, int &visColumn, int &numColumns)
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
int ReadAnnotation(vtkMRMLAnnotationControlPointsNode *refNode)
int WriteAnnotationDataInternal(vtkMRMLNode *refNode, fstream &of) override
Write data from a referenced node into a passed stream.