Slicer 5.4
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
16class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationControlPointsStorageNode : public vtkMRMLAnnotationStorageNode
17{
18public:
21 void PrintSelf(ostream& os, vtkIndent indent) override;
22
24
25 // Description:
26 // Get node XML tag name (like Storage, Model)
27 const char* GetNodeTagName() override {return "AnnotationControlPointsStorage";}
28
29 // Initialize all the supported write file types
30 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
31
32protected:
37
38 const char* GetAnnotationStorageType() { return "point"; }
39
40 int WriteAnnotationPointDisplayProperties(fstream & of, vtkMRMLAnnotationPointDisplayNode *refNode, std::string preposition);
43
45 int ReadAnnotationControlPointsData(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int typeColumn, int xColumn, int yColumn, int zColumn,
46 int selColumn, int visColumn, int numColumns);
47 int ReadAnnotationPointDisplayProperties(vtkMRMLAnnotationPointDisplayNode *refNode, std::string lineString, std::string preposition);
48 int ReadAnnotationControlPointsProperties(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int &typeColumn,
49 int& xColumn, int& yColumn, int& zColumn, int& selColumn, int& visColumn, int& numColumns);
50
52 int ReadDataInternal(vtkMRMLNode *refNode) override;
53
54 int WriteAnnotationDataInternal(vtkMRMLNode *refNode, fstream &of) override;
55};
56
57#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.
Abstract Superclass for all specific types of MRML nodes.