Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLVolumeArchetypeStorageNode.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: vtkMRMLVolumeArchetypeStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.8 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLVolumeArchetypeStorageNode_h
16 #define __vtkMRMLVolumeArchetypeStorageNode_h
17 
18 #include "vtkMRMLStorageNode.h"
19 
20 class vtkImageData;
22 class vtkMRMLVolumeNode;
23 
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
34 
35  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
36 
39  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
40 
47  std::string UpdateFileList(vtkMRMLNode *refNode, int move = 0);
48 
51  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
52 
55  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
56 
59  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "VolumeArchetypeStorage";}
60 
63  vtkGetMacro(CenterImage, int);
64  vtkSetMacro(CenterImage, int);
65 
68  vtkGetMacro(SingleFile, int);
69  vtkSetMacro(SingleFile, int);
70 
73  vtkSetMacro(UseOrientationFromFile, int);
74  vtkGetMacro(UseOrientationFromFile, int);
75 
77  virtual bool CanReadInReferenceNode(vtkMRMLNode* refNode) VTK_OVERRIDE;
78  virtual bool CanWriteFromReferenceNode(vtkMRMLNode* refNode) VTK_OVERRIDE;
79 
84  virtual void ConfigureForDataExchange() VTK_OVERRIDE;
85 
91  static void SetMetaDataDictionaryFromReader(vtkMRMLVolumeNode*, vtkITKArchetypeImageSeriesReader*);
92 
93 protected:
97  void operator=(const vtkMRMLVolumeArchetypeStorageNode&);
98 
100  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
101 
102  vtkITKArchetypeImageSeriesReader* InstantiateVectorVolumeReader(const std::string &fullName);
103 
105  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
106 
108  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
109 
110  int CenterImage;
111  int SingleFile;
112  int UseOrientationFromFile;
113 
114 };
115 
116 #endif
virtual void ConfigureForDataExchange()
LRU Cache.
Read a series of files that have a common naming convention.
MRML node for representing a volume storage.
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE=0
Create instance of the default node. Like New only virtual.
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
A superclass for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
MRML node for representing a volume (image stack).
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0