forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLFiducialListStorageNode.h
77 lines (56 loc) · 2.57 KB
/
vtkMRMLFiducialListStorageNode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRMLFiducialListStorageNode.h,v $
Date: $Date: 2006/03/19 17:12:29 $
Version: $Revision: 1.8 $
=========================================================================auto=*/
#ifndef __vtkMRMLFiducialListStorageNode_h
#define __vtkMRMLFiducialListStorageNode_h
#include "vtkMRMLStorageNode.h"
/// \brief MRML node for handling fiducial list storage
///
/// \deprecated Used for reading in Slicer3 fiducial lists, please use the Annotation Module MRML storage nodes
/// \sa vtkMRMLAnnotationStorageNode, vtkMRMLAnnotationFiducialsStorageNode
///
/// vtkMRMLFiducialListStorageNode nodes describe the fiducial storage
/// node that allows to read/write point data from/to file.
class VTK_MRML_EXPORT vtkMRMLFiducialListStorageNode
: public vtkMRMLStorageNode
{
public:
/// \deprecated Used for reading in Slicer3 fiducial lists, please use the Annotation Module MRML storage nodes
/// \sa vtkMRMLAnnotationStorageNode, vtkMRMLAnnotationFiducialsStorageNode
///
static vtkMRMLFiducialListStorageNode *New();
vtkTypeMacro(vtkMRMLFiducialListStorageNode,vtkMRMLStorageNode);
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkMRMLNode* CreateNodeInstance() override;
///
/// Get node XML tag name (like Storage, Model)
const char* GetNodeTagName() override {return "FiducialListStorage";}
/// Get/Set the storage node version
vtkGetMacro(Version, int);
vtkSetMacro(Version, int);
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
protected:
vtkMRMLFiducialListStorageNode();
~vtkMRMLFiducialListStorageNode() override;
vtkMRMLFiducialListStorageNode(const vtkMRMLFiducialListStorageNode&);
void operator=(const vtkMRMLFiducialListStorageNode&);
/// Initialize all the supported write file types
void InitializeSupportedReadFileTypes() override;
/// Initialize all the supported write file types
void InitializeSupportedWriteFileTypes() override;
/// Read data and set it in the referenced node
int ReadDataInternal(vtkMRMLNode *refNode) override;
/// Write data from a referenced node
int WriteDataInternal(vtkMRMLNode *refNode) override;
/// the storage node version
// version 1 has the old glyph numbering (pre svn 12553), starting at 0
// version 2 has the new glyph numbering, starting at 1
int Version;
};
#endif