VTK
|
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 "vtkImageReslice.h" 00030 00031 class VTK_IMAGING_EXPORT vtkImageFlip : public vtkImageReslice 00032 { 00033 public: 00034 static vtkImageFlip *New(); 00035 00036 vtkTypeMacro(vtkImageFlip,vtkImageReslice); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 00042 vtkSetMacro(FilteredAxis, int); 00043 vtkGetMacro(FilteredAxis, int); 00045 00047 00060 vtkSetMacro(FlipAboutOrigin, int); 00061 vtkGetMacro(FlipAboutOrigin, int); 00062 vtkBooleanMacro(FlipAboutOrigin, int); 00064 00066 00068 void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); } 00069 int GetFilteredAxes() { return this->GetFilteredAxis(); } 00071 00073 00076 vtkSetMacro(PreserveImageExtent, int); 00077 vtkGetMacro(PreserveImageExtent, int); 00078 vtkBooleanMacro(PreserveImageExtent, int); 00080 00081 protected: 00082 vtkImageFlip(); 00083 ~vtkImageFlip() {}; 00084 00085 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00086 00087 int FilteredAxis; 00088 int FlipAboutOrigin; 00089 int PreserveImageExtent; 00090 00091 private: 00092 vtkImageFlip(const vtkImageFlip&); // Not implemented. 00093 void operator=(const vtkImageFlip&); // Not implemented. 00094 }; 00095 00096 #endif