2 #ifndef __vtkNRRDWriter_h 3 #define __vtkNRRDWriter_h 7 #include "vtkDoubleArray.h" 8 #include "vtkMatrix4x4.h" 9 #include "vtkSmartPointer.h" 10 #include "teem/nrrd.h" 12 #include "vtkTeemConfigure.h" 15 class AttributeMapType;
16 class AxisInfoMapType;
28 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
34 vtkImageData* GetInput();
35 vtkImageData* GetInput(
int port);
39 vtkSetStringMacro(FileName);
40 vtkGetStringMacro(FileName);
42 vtkSetObjectMacro(DiffusionGradients,vtkDoubleArray);
43 vtkGetObjectMacro(DiffusionGradients,vtkDoubleArray);
45 vtkSetObjectMacro(BValues,vtkDoubleArray);
46 vtkGetObjectMacro(BValues,vtkDoubleArray);
48 vtkSetObjectMacro(IJKToRASMatrix,vtkMatrix4x4);
49 vtkGetObjectMacro(IJKToRASMatrix,vtkMatrix4x4);
51 vtkSetObjectMacro(MeasurementFrameMatrix,vtkMatrix4x4);
52 vtkGetObjectMacro(MeasurementFrameMatrix,vtkMatrix4x4);
54 vtkSetMacro(UseCompression,
int);
55 vtkGetMacro(UseCompression,
int);
56 vtkBooleanMacro(UseCompression,
int);
58 vtkSetClampMacro(FileType,
int,VTK_ASCII,VTK_BINARY);
59 vtkGetMacro(FileType,
int);
63 vtkBooleanMacro(WriteError,
int);
64 vtkSetMacro(WriteError,
int);
65 vtkGetMacro(WriteError,
int);
69 void SetAttribute(
const std::string& name,
const std::string& value);
72 void SetAxisLabel(
unsigned int axis,
const char* label);
75 void SetAxisUnit(
unsigned int axis,
const char* unit);
84 virtual int FillInputPortInformation(
int port, vtkInformation *info) VTK_OVERRIDE;
88 void WriteData() VTK_OVERRIDE;
112 void vtkImageDataInfoToNrrdInfo(vtkImageData *in,
int &nrrdKind,
size_t &numComp,
int &vtkType,
void **buffer);
113 int VTKToNrrdPixelType(
const int vtkPixelType );
114 int DiffusionWeigthedData;
AttributeMapType * Attributes
int WriteError
Flag to set to on when a write error occured.
void SetFileTypeToBinary()
vtkMatrix4x4 * MeasurementFrameMatrix
vtkDoubleArray * DiffusionGradients
void SetFileTypeToASCII()
AxisInfoMapType * AxisLabels
vtkMatrix4x4 * IJKToRASMatrix
AxisInfoMapType * AxisUnits