VMTK
Loading...
Searching...
No Matches
vtkvmtkITKImageWriter.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
10==========================================================================*/
11
12#ifndef __vtkvmtkITKImageWriter_h
13#define __vtkvmtkITKImageWriter_h
14
15#include "vtkImageAlgorithm.h"
16#include "vtkImageData.h"
17#include "vtkObjectFactory.h"
18#include "vtkMatrix4x4.h"
19
20#include "vtkvmtkITK.h"
21#include "itkImageIOBase.h"
22
23class vtkStringArray;
24
37class VTK_VMTK_ITK_EXPORT vtkvmtkITKImageWriter : public vtkImageAlgorithm
38{
39public:
41 vtkTypeMacro(vtkvmtkITKImageWriter,vtkImageAlgorithm);
42 void PrintSelf(std::ostream& os, vtkIndent indent) override;
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) {
77 }
78
79protected:
82
83 char *FileName;
84 vtkMatrix4x4* RasToIJKMatrix;
88
89private:
91 void operator=(const vtkvmtkITKImageWriter&);
92};
93
94//vtkStandardNewMacro(vtkvmtkITKImageWriter)
95
96#endif
Write vtkImageData to a file using an ITK image IO.
static vtkvmtkITKImageWriter * New()
vtkMatrix4x4 * MeasurementFrameMatrix
void Write()
The main interface which triggers the writer to start.
void SetRasToIJKMatrix(vtkMatrix4x4 *mat)
Set orienation matrix.
void PrintSelf(std::ostream &os, vtkIndent indent) override
void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
Set orienation matrix.
Common include pulling in the Utilities/vtkvmtkITK module's Windows export-macro header; included by ...