00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00049
#ifndef __vtkImageRectilinearWipe_h
00050
#define __vtkImageRectilinearWipe_h
00051
00052
#include "vtkImageTwoInputFilter.h"
00053
00054 #define VTK_WIPE_QUAD 0
00055 #define VTK_WIPE_HORIZONTAL 1
00056 #define VTK_WIPE_VERTICAL 2
00057 #define VTK_WIPE_LOWER_LEFT 3
00058 #define VTK_WIPE_LOWER_RIGHT 4
00059 #define VTK_WIPE_UPPER_LEFT 5
00060 #define VTK_WIPE_UPPER_RIGHT 6
00061
00062 class VTK_IMAGING_EXPORT vtkImageRectilinearWipe :
public vtkImageTwoInputFilter
00063 {
00064
public:
00065
static vtkImageRectilinearWipe *
New();
00066 vtkTypeRevisionMacro(vtkImageRectilinearWipe,
vtkImageTwoInputFilter);
00067
void PrintSelf(ostream& os,
vtkIndent indent);
00068
00070
00071 vtkSetVector2Macro(Position,
int);
00072 vtkGetVectorMacro(Position,
int,2);
00074
00076
00090 vtkSetClampMacro(Wipe,
int,
00091 VTK_WIPE_QUAD,VTK_WIPE_UPPER_RIGHT);
00092 vtkGetMacro(Wipe,
int);
00093 void SetWipeToQuad()
00094 {this->SetWipe(
VTK_WIPE_QUAD);}
00095 void SetWipeToHorizontal()
00096 {this->SetWipe(
VTK_WIPE_HORIZONTAL);}
00097 void SetWipeToVertical()
00098 {this->SetWipe(
VTK_WIPE_VERTICAL);}
00099 void SetWipeToLowerLeft()
00100 {this->SetWipe(
VTK_WIPE_LOWER_LEFT);}
00101 void SetWipeToLowerRight()
00102 {this->SetWipe(
VTK_WIPE_LOWER_RIGHT);}
00103 void SetWipeToUpperLeft()
00104 {this->SetWipe(
VTK_WIPE_UPPER_LEFT);}
00105 void SetWipeToUpperRight()
00106 {this->SetWipe(
VTK_WIPE_UPPER_RIGHT);}
00108
00109
protected:
00110 vtkImageRectilinearWipe();
00111 ~vtkImageRectilinearWipe() {};
00112
00113
void ThreadedExecute(
vtkImageData **inDatas,
vtkImageData *outData,
00114
int extent[6],
int id);
00115 int Position[2];
00116 int Wipe;
00117
private:
00118 vtkImageRectilinearWipe(
const vtkImageRectilinearWipe&);
00119
void operator=(
const vtkImageRectilinearWipe&);
00120 };
00121
00122
#endif