Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkITKImageWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Copyright 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: vtkITK
9 Module: $HeadURL$
10 Date: $Date$
11 Version: $Revision$
12
13==========================================================================*/
14
15#ifndef __vtkITKImageWriter_h
16#define __vtkITKImageWriter_h
17
18#include "vtkImageAlgorithm.h"
19#include "vtkImageData.h"
20#include "vtkObjectFactory.h"
21#include "vtkMatrix4x4.h"
22
23#include "vtkITK.h"
24#include "itkImageIOBase.h"
25
26class vtkStringArray;
27
28class VTK_ITK_EXPORT vtkITKImageWriter : public vtkImageAlgorithm
29{
30public:
32 vtkTypeMacro(vtkITKImageWriter,vtkImageAlgorithm);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
35 enum
36 {
41 VoxelVectorType_Last // must be last
42 };
43
48 void SetFileName(const char *);
49
51 {
52 return FileName;
53 }
54
57 vtkGetMacro(UseCompression, int);
58 vtkSetMacro(UseCompression, int);
59 vtkBooleanMacro(UseCompression, int);
60
63 vtkGetStringMacro(ImageIOClassName);
64 vtkSetStringMacro(ImageIOClassName);
65
68 void Write();
69
71 void SetRasToIJKMatrix(vtkMatrix4x4* mat)
72 {
73 RasToIJKMatrix = mat;
74 }
75
77 void SetMeasurementFrameMatrix(vtkMatrix4x4* mat)
78 {
80 }
81
83 vtkSetMacro(VoxelVectorType, int);
84 vtkGetMacro(VoxelVectorType, int);
85
86protected:
89
90 char *FileName;
91 vtkMatrix4x4* RasToIJKMatrix;
96
97private:
98 vtkITKImageWriter(const vtkITKImageWriter&) = delete;
99 void operator=(const vtkITKImageWriter&) = delete;
100};
101
102//vtkStandardNewMacro(vtkITKImageWriter);
103
104#endif
~vtkITKImageWriter() override
void SetRasToIJKMatrix(vtkMatrix4x4 *mat)
Set orientation matrix.
void Write()
The main interface which triggers the writer to start.
void PrintSelf(ostream &os, vtkIndent indent) override
vtkMatrix4x4 * MeasurementFrameMatrix
void SetFileName(const char *)
void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
Set orientation matrix.
vtkMatrix4x4 * RasToIJKMatrix
static vtkITKImageWriter * New()