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
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
44 int ReadAnnotationControlPointsData(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int typeColumn, int xColumn, int yColumn, int zColumn,
45 int selColumn, int visColumn, int numColumns);
46 int ReadAnnotationPointDisplayProperties(vtkMRMLAnnotationPointDisplayNode *refNode, std::string lineString, std::string preposition);
47 int ReadAnnotationControlPointsProperties(vtkMRMLAnnotationControlPointsNode *refNode, char line[1024], int &typeColumn,
48 int& xColumn, int& yColumn, int& zColumn, int& selColumn, int& visColumn, int& numColumns);
49
51 int ReadDataInternal(vtkMRMLNode *refNode) override;
52
53 int WriteAnnotationDataInternal(vtkMRMLNode *refNode, fstream &of) override;
54};
55
56#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.