Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
26 class vtkStringArray;
27 
28 class VTK_ITK_EXPORT vtkITKImageWriter : public vtkImageAlgorithm
29 {
30 public:
31  static vtkITKImageWriter *New();
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 
50  char *GetFileName() {
51  return FileName;
52  }
53 
56  vtkGetMacro (UseCompression, int);
57  vtkSetMacro (UseCompression, int);
58  vtkBooleanMacro(UseCompression, int);
59 
62  vtkGetStringMacro (ImageIOClassName);
63  vtkSetStringMacro (ImageIOClassName);
64 
67  void Write();
68 
70  void SetRasToIJKMatrix( vtkMatrix4x4* mat) {
71  RasToIJKMatrix = mat;
72  }
73 
75  void SetMeasurementFrameMatrix( vtkMatrix4x4* mat) {
76  MeasurementFrameMatrix = mat;
77  }
78 
80  vtkSetMacro(VoxelVectorType, int);
81  vtkGetMacro(VoxelVectorType, int);
82 
83 protected:
85  ~vtkITKImageWriter() override;
86 
87  char *FileName;
88  vtkMatrix4x4* RasToIJKMatrix;
89  vtkMatrix4x4* MeasurementFrameMatrix;
93 
94 private:
95  vtkITKImageWriter(const vtkITKImageWriter&) = delete;
96  void operator=(const vtkITKImageWriter&) = delete;
97 };
98 
99 //vtkStandardNewMacro(vtkITKImageWriter)
100 
101 #endif
vtkMatrix4x4 * MeasurementFrameMatrix
vtkMatrix4x4 * RasToIJKMatrix
void SetRasToIJKMatrix(vtkMatrix4x4 *mat)
Set orientation matrix.
void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
Set orientation matrix.