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
vtkMRMLMarkupsFiducialStorageNode.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16==============================================================================*/
17
24
25#ifndef __vtkMRMLMarkupsFiducialStorageNode_h
26#define __vtkMRMLMarkupsFiducialStorageNode_h
27
28// Markups includes
29#include "vtkMRMLExport.h"
31
33
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 const char* GetNodeTagName() override {return "MarkupsFiducialStorage";};
46
48 void ReadXMLAttributes( const char** atts) override;
49
51 void WriteXML(ostream& of, int indent) override;
52
54 void Copy(vtkMRMLNode *node) override;
55
56 bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
57
58 virtual bool SetPointFromString(vtkMRMLMarkupsNode *markupsNode, int pointIndex, const char* str);
59
60 virtual std::string GetPointAsString(vtkMRMLMarkupsNode *markupsNode, int pointIndex);
61
65 vtkSetMacro(FieldDelimiterCharacters, std::string);
66 vtkGetMacro(FieldDelimiterCharacters, std::string);
67
73 std::string ConvertStringToStorageFormat(std::string input);
74 std::string ConvertStringFromStorageFormat(std::string input);
75
79 static int GetMaximumLineLength() { return 1024; }
80
81protected:
86
89
92
94 int ReadDataInternal(vtkMRMLNode *refNode) override;
95
104 int WriteDataInternal(vtkMRMLNode *refNode) override;
105
107};
108
109#endif
virtual bool SetPointFromString(vtkMRMLMarkupsNode *markupsNode, int pointIndex, const char *str)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
void PrintSelf(ostream &os, vtkIndent indent) override
std::string ConvertStringFromStorageFormat(std::string input)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
void operator=(const vtkMRMLMarkupsFiducialStorageNode &)
virtual std::string GetPointAsString(vtkMRMLMarkupsNode *markupsNode, int pointIndex)
int WriteDataInternal(vtkMRMLNode *refNode) override
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
std::string ConvertStringToStorageFormat(std::string input)
static vtkMRMLMarkupsFiducialStorageNode * New()
vtkMRMLMarkupsFiducialStorageNode(const vtkMRMLMarkupsFiducialStorageNode &)