Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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"
19class vtkDoubleArray;
21
26class VTK_MRML_EXPORT vtkMRMLNRRDStorageNode : public vtkMRMLStorageNode
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
37 void ReadXMLAttributes(const char** atts) override;
38
41 void WriteXML(ostream& of, int indent) override;
42
45 void Copy(vtkMRMLNode* node) override;
46
49 const char* GetNodeTagName() override { return "NRRDStorage"; }
50
53 vtkGetMacro(CenterImage, int);
54 vtkSetMacro(CenterImage, int);
55
58 int ParseDiffusionInformation(vtkTeemNRRDReader* reader, vtkDoubleArray* grad, vtkDoubleArray* bvalues);
59
61 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
62
67 void ConfigureForDataExchange() override;
68
70 std::string GetCompressionParameterFastest() { return "gzip_fastest"; };
71
73 std::string GetCompressionParameterNormal() { return "gzip_normal"; };
75 std::string GetCompressionParameterMinimumSize() { return "gzip_minimum_size"; };
76
77protected:
82
85
88
90 int ReadDataInternal(vtkMRMLNode* refNode) override;
91
93 int WriteDataInternal(vtkMRMLNode* refNode) override;
94
97
99};
100
101#endif
int ParseDiffusionInformation(vtkTeemNRRDReader *reader, vtkDoubleArray *grad, vtkDoubleArray *bvalues)
Access the nrrd header fields to create a diffusion gradient table.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
Return true if the node can be read in.
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
void operator=(const vtkMRMLNRRDStorageNode &)
std::string GetCompressionParameterMinimumSize()
Compression parameter corresponding to maximum compression (slow)
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
std::string GetCompressionParameterNormal()
Compression parameter corresponding to normal compression.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
std::string GetCompressionParameterFastest()
Compression parameter corresponding to minimum compression (fast)
void PrintSelf(ostream &os, vtkIndent indent) override
~vtkMRMLNRRDStorageNode() override
vtkMRMLNRRDStorageNode(const vtkMRMLNRRDStorageNode &)
void ConfigureForDataExchange() override
int WriteDataInternal(vtkMRMLNode *refNode) override
Write data from a referenced node.
static vtkMRMLNRRDStorageNode * New()
int GetGzipCompressionLevelFromCompressionParameter(std::string parameter)
Convert compression parameter string to gzip compression level.
Reads Nearly Raw Raster Data files.