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
vtkMRMLMarkupsStorageNode.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
18// .NAME vtkMRMLMarkupsStorageNode - Abstract base class for markups storage nodes.
19// .SECTION Description
20// This class is the base of all markups storage nodes and it allows specifying the
21// coordinate system that is used in files.
22//
23// This interface class is defined in MRML core to allow CLI modules to read/write markups
24// in a specific coordinate system.
25
26#ifndef __vtkMRMLMarkupsStorageNode_h
27#define __vtkMRMLMarkupsStorageNode_h
28
29// MRML includes
30#include "vtkMRMLStorageNode.h"
31
32class VTK_MRML_EXPORT vtkMRMLMarkupsStorageNode : public vtkMRMLStorageNode
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39 void ReadXMLAttributes( const char** atts) override;
40
42 void WriteXML(ostream& of, int indent) override;
43
45 void Copy(vtkMRMLNode *node) override;
46
47 bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
48
50 vtkSetClampMacro(CoordinateSystem, int, 0, vtkMRMLStorageNode::CoordinateSystemType_Last-1);
51 vtkGetMacro(CoordinateSystem, int);
53 static const char* GetCoordinateSystemAsString(int id);
54 static int GetCoordinateSystemFromString(const char* name);
57 void UseRASOn();
58 bool GetUseRAS();
59 void UseLPSOn();
60 bool GetUseLPS();
61
62protected:
67
68private:
69
74 int CoordinateSystem;
75};
76
77#endif
std::string GetCoordinateSystemAsString()
void operator=(const vtkMRMLMarkupsStorageNode &)
~vtkMRMLMarkupsStorageNode() override
static const char * GetCoordinateSystemAsString(int id)
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
vtkMRMLMarkupsStorageNode(const vtkMRMLMarkupsStorageNode &)
static int GetCoordinateSystemFromString(const char *name)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
void PrintSelf(ostream &os, vtkIndent indent) override