VTK
dox/Imaging/Core/vtkImageFlip.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageFlip.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00025 #ifndef __vtkImageFlip_h
00026 #define __vtkImageFlip_h
00027 
00028 
00029 #include "vtkImagingCoreModule.h" // For export macro
00030 #include "vtkImageReslice.h"
00031 
00032 class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
00033 {
00034 public:
00035   static vtkImageFlip *New();
00036 
00037   vtkTypeMacro(vtkImageFlip,vtkImageReslice);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041 
00043   vtkSetMacro(FilteredAxis, int);
00044   vtkGetMacro(FilteredAxis, int);
00046 
00048 
00061   vtkSetMacro(FlipAboutOrigin, int);
00062   vtkGetMacro(FlipAboutOrigin, int);
00063   vtkBooleanMacro(FlipAboutOrigin, int);
00065 
00067 
00069   void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
00070   int GetFilteredAxes() { return this->GetFilteredAxis(); }
00072 
00074 
00077   vtkSetMacro(PreserveImageExtent, int);
00078   vtkGetMacro(PreserveImageExtent, int);
00079   vtkBooleanMacro(PreserveImageExtent, int);
00081 
00082 protected:
00083   vtkImageFlip();
00084   ~vtkImageFlip() {}
00085 
00086   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00087 
00088   int FilteredAxis;
00089   int FlipAboutOrigin;
00090   int PreserveImageExtent;
00091 
00092 private:
00093   vtkImageFlip(const vtkImageFlip&);  // Not implemented.
00094   void operator=(const vtkImageFlip&);  // Not implemented.
00095 };
00096 
00097 #endif