Slicer  4.10
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 vtkTeemNRRDReader;
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(vtkTeemNRRDReader *reader,vtkDoubleArray *grad,vtkDoubleArray *bvalues);
59 
61  virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
62 
67  virtual void ConfigureForDataExchange() VTK_OVERRIDE;
68 
70  std::string GetCompressionParameterFastest() { return "gzip_fastest"; };
72  std::string GetCompressionParameterNormal() { return "gzip_normal"; };
74  std::string GetCompressionParameterMinimumSize() { return "gzip_minimum_size"; };
75 
76 protected:
80  void operator=(const vtkMRMLNRRDStorageNode&);
81 
83  virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE;
84 
86  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
87 
89  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
90 
92  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
93 
95  int GetGzipCompressionLevelFromCompressionParameter(std::string parameter);
96 
97  int CenterImage;
98 };
99 
100 #endif
virtual void ConfigureForDataExchange()
virtual void InitializeSupportedReadFileTypes()
LRU Cache.
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.
std::string GetCompressionParameterMinimumSize()
Compression parameter corresponding to maximum compression (slow)
std::string GetCompressionParameterNormal()
Compression parameter corresponding to normal compression.
A superclass for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Reads Nearly Raw Raster Data files.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0