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

dox/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 =========================================================================*/
00050 #ifndef __vtkImageRectilinearWipe_h
00051 #define __vtkImageRectilinearWipe_h
00052 
00053 #include "vtkImageTwoInputFilter.h"
00054 
00055 #define VTK_WIPE_QUAD 0
00056 #define VTK_WIPE_HORIZONTAL 1
00057 #define VTK_WIPE_VERTICAL 2
00058 #define VTK_WIPE_LOWER_LEFT 3
00059 #define VTK_WIPE_LOWER_RIGHT 4
00060 #define VTK_WIPE_UPPER_LEFT 5
00061 #define VTK_WIPE_UPPER_RIGHT 6
00062 
00063 class VTK_IMAGING_EXPORT vtkImageRectilinearWipe : public vtkImageTwoInputFilter
00064 {
00065 public:
00066   static vtkImageRectilinearWipe *New();
00067   vtkTypeRevisionMacro(vtkImageRectilinearWipe,vtkImageTwoInputFilter);
00068   void PrintSelf(ostream& os, vtkIndent indent);
00069 
00071 
00072   vtkSetVector2Macro(Position,int);
00073   vtkGetVectorMacro(Position,int,2);
00075 
00077 
00091   vtkSetClampMacro(Wipe,int,
00092                    VTK_WIPE_QUAD,VTK_WIPE_UPPER_RIGHT);
00093   vtkGetMacro(Wipe,int);
00094   void SetWipeToQuad()
00095     {this->SetWipe(VTK_WIPE_QUAD);}
00096   void SetWipeToHorizontal()
00097     {this->SetWipe(VTK_WIPE_HORIZONTAL);}
00098   void SetWipeToVertical()
00099     {this->SetWipe(VTK_WIPE_VERTICAL);}
00100   void SetWipeToLowerLeft()
00101     {this->SetWipe(VTK_WIPE_LOWER_LEFT);}
00102   void SetWipeToLowerRight()
00103     {this->SetWipe(VTK_WIPE_LOWER_RIGHT);}
00104   void SetWipeToUpperLeft()
00105     {this->SetWipe(VTK_WIPE_UPPER_LEFT);}
00106   void SetWipeToUpperRight()
00107     {this->SetWipe(VTK_WIPE_UPPER_RIGHT);}
00109 
00110 protected:
00111   vtkImageRectilinearWipe();
00112   ~vtkImageRectilinearWipe() {};
00113 
00114   void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00115                        int extent[6], int id);
00116   int Position[2];
00117   int Wipe;
00118 private:
00119   vtkImageRectilinearWipe(const vtkImageRectilinearWipe&);  // Not implemented.
00120   void operator=(const vtkImageRectilinearWipe&);  // Not implemented.
00121 };
00122 
00123 #endif