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

Imaging/vtkImageRectilinearWipe.h

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