Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLNRRDStorageNode.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: vtkMRMLNRRDStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.8 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLNRRDStorageNode_h
16 #define __vtkMRMLNRRDStorageNode_h
17 
18 #include "vtkMRMLStorageNode.h"
19 class vtkDoubleArray;
20 class vtkNRRDReader;
21 
26 class VTK_MRML_EXPORT vtkMRMLNRRDStorageNode : public vtkMRMLStorageNode
27 {
28  public:
29  static vtkMRMLNRRDStorageNode *New();
31  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
32 
33  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
34 
37  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
38 
41  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
42 
45  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
46 
49  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "NRRDStorage";}
50 
53  vtkGetMacro(CenterImage, int);
54  vtkSetMacro(CenterImage, int);
55 
58  int ParseDiffusionInformation(vtkNRRDReader *reader,vtkDoubleArray *grad,vtkDoubleArray *bvalues);
59 
61  virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
62 
67  virtual void ConfigureForDataExchange() VTK_OVERRIDE;
68 
69 protected:
73  void operator=(const vtkMRMLNRRDStorageNode&);
74 
76  virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE;
77 
79  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
80 
82  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
83 
85  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
86 
88 
89 };
90 
91 #endif
Reads Nearly Raw Raster Data files.
Definition: vtkNRRDReader.h:54
virtual int ReadDataInternal(vtkMRMLNode *refNode)
virtual void ConfigureForDataExchange()
virtual void InitializeSupportedReadFileTypes()
void operator=(const vtkMRMLStorageNode &)
MRML node for representing a volume storage.
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE=0
Create instance of the default node. Like New only virtual.
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0