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

vtkImageRectilinearWipe.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageRectilinearWipe.h,v $
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 =========================================================================*/
00059 #ifndef __vtkImageRectilinearWipe_h
00060 #define __vtkImageRectilinearWipe_h
00061 
00062 #include "vtkImageTwoInputFilter.h"
00063 
00064 #define VTK_WIPE_QUAD 0
00065 #define VTK_WIPE_HORIZONTAL 1
00066 #define VTK_WIPE_VERTICAL 2
00067 #define VTK_WIPE_LOWER_LEFT 3
00068 #define VTK_WIPE_LOWER_RIGHT 4
00069 #define VTK_WIPE_UPPER_LEFT 5
00070 #define VTK_WIPE_UPPER_RIGHT 6
00071 
00072 class VTK_IMAGING_EXPORT vtkImageRectilinearWipe : public vtkImageTwoInputFilter
00073 {
00074 public:
00075   static vtkImageRectilinearWipe *New();
00076   vtkTypeRevisionMacro(vtkImageRectilinearWipe,vtkImageTwoInputFilter);
00077   void PrintSelf(ostream& os, vtkIndent indent);
00078 
00080 
00081   vtkSetVector2Macro(Position,int);
00082   vtkGetVectorMacro(Position,int,2);
00084 
00086 
00100   vtkSetClampMacro(Wipe,int,
00101                    VTK_WIPE_QUAD,VTK_WIPE_UPPER_RIGHT);
00102   vtkGetMacro(Wipe,int);
00103   void SetWipeToQuad()
00104     {this->SetWipe(VTK_WIPE_QUAD);}
00105   void SetWipeToHorizontal()
00106     {this->SetWipe(VTK_WIPE_HORIZONTAL);}
00107   void SetWipeToVertical()
00108     {this->SetWipe(VTK_WIPE_VERTICAL);}
00109   void SetWipeToLowerLeft()
00110     {this->SetWipe(VTK_WIPE_LOWER_LEFT);}
00111   void SetWipeToLowerRight()
00112     {this->SetWipe(VTK_WIPE_LOWER_RIGHT);}
00113   void SetWipeToUpperLeft()
00114     {this->SetWipe(VTK_WIPE_UPPER_LEFT);}
00115   void SetWipeToUpperRight()
00116     {this->SetWipe(VTK_WIPE_UPPER_RIGHT);}
00118 
00119 protected:
00120   vtkImageRectilinearWipe();
00121   ~vtkImageRectilinearWipe() {};
00122 
00123   void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00124                        int extent[6], int id);
00125   int Position[2];
00126   int Wipe;
00127 private:
00128   vtkImageRectilinearWipe(const vtkImageRectilinearWipe&);  // Not implemented.
00129   void operator=(const vtkImageRectilinearWipe&);  // Not implemented.
00130 };
00131 
00132 #endif