Slicer  4.10
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) VTK_OVERRIDE;
41 
42  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
43 
46  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "MarkupsFiducialStorage";};
47 
49  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
50 
52  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
53 
55  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
56 
57  virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
58 
59  // If markupIndex >= number of existing markups then a new markup node is appended.
60  // Returns true on success.
61  virtual bool SetMarkupFromString(vtkMRMLMarkupsNode *markupsNode, int markupIndex, const char* str);
62 
63  virtual std::string GetMarkupAsString(vtkMRMLMarkupsNode *markupsNode, int markupIndex);
64 
68  vtkSetMacro(FieldDelimiterCharacters, std::string);
69  vtkGetMacro(FieldDelimiterCharacters, std::string);
70 
71 protected:
76 
78  virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE;
79 
81  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
82 
84  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
85 
94  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
95 
96  std::string FieldDelimiterCharacters;
97 };
98 
99 #endif
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE
Read node attributes from XML file.
LRU Cache.
MRML node to represent a list of markups Markups nodes contains a list of markups that each contain a...
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
static vtkMRMLMarkupsStorageNode * New()
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
Create instance of the default node. Like New only virtual.
virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE
Initialize all the supported write file types.
void operator=(const vtkMRMLMarkupsStorageNode &)