Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Graphics/vtkReflectionFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkReflectionFilter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00043 #ifndef __vtkReflectionFilter_h
00044 #define __vtkReflectionFilter_h
00045 
00046 #include "vtkDataSetToUnstructuredGridFilter.h"
00047 
00048 #define VTK_USE_X_MIN 0
00049 #define VTK_USE_Y_MIN 1
00050 #define VTK_USE_Z_MIN 2
00051 #define VTK_USE_X_MAX 3
00052 #define VTK_USE_Y_MAX 4
00053 #define VTK_USE_Z_MAX 5
00054 
00055 class VTK_GRAPHICS_EXPORT vtkReflectionFilter : public vtkDataSetToUnstructuredGridFilter
00056 {
00057 public:
00058   static vtkReflectionFilter *New();
00059   
00060   vtkTypeRevisionMacro(vtkReflectionFilter, vtkDataSetToUnstructuredGridFilter);
00061   void PrintSelf(ostream &os, vtkIndent indent);
00062   
00063   vtkSetClampMacro(Plane, int, 0, 5);
00064   vtkGetMacro(Plane, int);
00065   void SetPlaneToXMin() { this->SetPlane(VTK_USE_X_MIN); };
00066   void SetPlaneToYMin() { this->SetPlane(VTK_USE_Y_MIN); };
00067   void SetPlaneToZMin() { this->SetPlane(VTK_USE_Z_MIN); };
00068   void SetPlaneToXMax() { this->SetPlane(VTK_USE_X_MAX); };
00069   void SetPlaneToYMax() { this->SetPlane(VTK_USE_Y_MAX); };
00070   void SetPlaneToZMax() { this->SetPlane(VTK_USE_Z_MAX); };
00071   
00072 protected:
00073   vtkReflectionFilter();
00074   ~vtkReflectionFilter();
00075   
00076   void Execute();
00077 
00078   int Plane;
00079   
00080 private:
00081   vtkReflectionFilter(const vtkReflectionFilter&);  // Not implemented
00082   void operator=(const vtkReflectionFilter&);  // Not implemented
00083 };
00084 
00085 #endif
00086 
00087