Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLAnnotationSnapshotStorageNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLAnnotationSnapshotStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
17 
18 #ifndef __vtkMRMLAnnotationSnapshotStorageNode_h
19 #define __vtkMRMLAnnotationSnapshotStorageNode_h
20 
21 #include "vtkSlicerAnnotationsModuleMRMLExport.h"
22 #include "vtkMRMLStorageNode.h"
23 
24 class vtkImageData;
26 class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationSnapshotStorageNode
27  : public vtkMRMLStorageNode
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  vtkMRMLNode* CreateNodeInstance() override;
35 
37  const char* GetNodeTagName() override {return "AnnotationSnapshotStorage";}
38 
40  bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
41 protected:
46 
48  void InitializeSupportedReadFileTypes() override;
49 
51  void InitializeSupportedWriteFileTypes() override;
52 
54  int ReadDataInternal(vtkMRMLNode *refNode) override;
55 
57  int WriteDataInternal(vtkMRMLNode *refNode) override;
58 };
59 
60 #endif
61 
62 
63 
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
virtual int ReadDataInternal(vtkMRMLNode *refNode)
virtual void InitializeSupportedReadFileTypes()
void operator=(const vtkMRMLStorageNode &)
void PrintSelf(ostream &os, vtkIndent indent) override
A superclass for other storage nodes.
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)