Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 "vtkSlicerMarkupsModuleMRMLExport.h"
31 
32 class vtkMRMLMarkupsNode;
33 
35 class VTK_SLICER_MARKUPS_MODULE_MRML_EXPORT vtkMRMLMarkupsFiducialStorageNode : public vtkMRMLMarkupsStorageNode
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  vtkMRMLNode* CreateNodeInstance() override;
43 
46  const char* GetNodeTagName() override {return "MarkupsFiducialStorage";};
47 
49  void ReadXMLAttributes( const char** atts) override;
50 
52  void WriteXML(ostream& of, int indent) override;
53 
55  void Copy(vtkMRMLNode *node) override;
56 
57  bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
58 
59  virtual bool SetPointFromString(vtkMRMLMarkupsNode *markupsNode, int pointIndex, const char* str);
60 
61  virtual std::string GetPointAsString(vtkMRMLMarkupsNode *markupsNode, int pointIndex);
62 
66  vtkSetMacro(FieldDelimiterCharacters, std::string);
67  vtkGetMacro(FieldDelimiterCharacters, std::string);
68 
69 protected:
74 
76  void InitializeSupportedReadFileTypes() override;
77 
79  void InitializeSupportedWriteFileTypes() override;
80 
82  int ReadDataInternal(vtkMRMLNode *refNode) override;
83 
92  int WriteDataInternal(vtkMRMLNode *refNode) override;
93 
95 };
96 
97 #endif
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
int ReadDataInternal(vtkMRMLNode *refNode) override
int WriteDataInternal(vtkMRMLNode *refNode) override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
static vtkMRMLMarkupsStorageNode * New()
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void PrintSelf(ostream &os, vtkIndent indent) override
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
void operator=(const vtkMRMLMarkupsStorageNode &)