Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
32 class VTK_MRML_EXPORT vtkMRMLMarkupsStorageNode : public vtkMRMLStorageNode
33 {
34 public:
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);
52  std::string GetCoordinateSystemAsString();
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 
62 protected:
64  ~vtkMRMLMarkupsStorageNode() override;
67 
68 private:
69 
74  int CoordinateSystem;
75 };
76 
77 #endif
void operator=(const vtkMRMLStorageNode &)
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
void PrintSelf(ostream &os, vtkIndent indent) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
A superclass for other storage nodes.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0