Slicer  4.8
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) VTK_OVERRIDE;
34 
39  void SetFileName(const char *);
40 
41  char *GetFileName() {
42  return FileName;
43  }
44 
47  vtkGetMacro (UseCompression, int);
48  vtkSetMacro (UseCompression, int);
49  vtkBooleanMacro(UseCompression, int);
50 
53  vtkGetStringMacro (ImageIOClassName);
54  vtkSetStringMacro (ImageIOClassName);
55 
58  void Write();
59 
61  void SetRasToIJKMatrix( vtkMatrix4x4* mat) {
62  RasToIJKMatrix = mat;
63  }
64 
66  void SetMeasurementFrameMatrix( vtkMatrix4x4* mat) {
67  MeasurementFrameMatrix = mat;
68  }
69 
70 protected:
73 
74  char *FileName;
75  vtkMatrix4x4* RasToIJKMatrix;
76  vtkMatrix4x4* MeasurementFrameMatrix;
79 
80 private:
82  void operator=(const vtkITKImageWriter&);
83 };
84 
85 //vtkStandardNewMacro(vtkITKImageWriter)
86 
87 #endif
vtkMatrix4x4 * MeasurementFrameMatrix
vtkMatrix4x4 * RasToIJKMatrix
void SetRasToIJKMatrix(vtkMatrix4x4 *mat)
Set orienation matrix.
void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
Set orienation matrix.