VTK  9.0.3
vtkImageRectilinearWipe.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageRectilinearWipe.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
47 #ifndef vtkImageRectilinearWipe_h
48 #define vtkImageRectilinearWipe_h
49 
50 #include "vtkImagingHybridModule.h" // For export macro
52 
53 #define VTK_WIPE_QUAD 0
54 #define VTK_WIPE_HORIZONTAL 1
55 #define VTK_WIPE_VERTICAL 2
56 #define VTK_WIPE_LOWER_LEFT 3
57 #define VTK_WIPE_LOWER_RIGHT 4
58 #define VTK_WIPE_UPPER_LEFT 5
59 #define VTK_WIPE_UPPER_RIGHT 6
60 
61 class VTKIMAGINGHYBRID_EXPORT vtkImageRectilinearWipe : public vtkThreadedImageAlgorithm
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
73  vtkSetVector2Macro(Position, int);
74  vtkGetVectorMacro(Position, int, 2);
76 
78 
82  vtkSetVector2Macro(Axis, int);
83  vtkGetVectorMacro(Axis, int, 2);
85 
89  virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
90  virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
91 
93 
111  vtkSetClampMacro(Wipe, int, VTK_WIPE_QUAD, VTK_WIPE_UPPER_RIGHT);
112  vtkGetMacro(Wipe, int);
113  void SetWipeToQuad() { this->SetWipe(VTK_WIPE_QUAD); }
114  void SetWipeToHorizontal() { this->SetWipe(VTK_WIPE_HORIZONTAL); }
115  void SetWipeToVertical() { this->SetWipe(VTK_WIPE_VERTICAL); }
116  void SetWipeToLowerLeft() { this->SetWipe(VTK_WIPE_LOWER_LEFT); }
117  void SetWipeToLowerRight() { this->SetWipe(VTK_WIPE_LOWER_RIGHT); }
118  void SetWipeToUpperLeft() { this->SetWipe(VTK_WIPE_UPPER_LEFT); }
119  void SetWipeToUpperRight() { this->SetWipe(VTK_WIPE_UPPER_RIGHT); }
121 
122 protected:
125 
127  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
128  int extent[6], int threadId) override;
129 
130  int Position[2];
131  int Wipe;
132  int Axis[2];
133 
134 private:
136  void operator=(const vtkImageRectilinearWipe&) = delete;
137 };
138 
139 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
void SetInputData(vtkDataObject *)
Assign a data object as input.
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
make a rectilinear combination of two images.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId) override
If the subclass does not define an Execute method, then the task will be broken up,...
virtual void SetInput1Data(vtkDataObject *in)
Set the two inputs to this filter.
virtual void SetInput2Data(vtkDataObject *in)
static vtkImageRectilinearWipe * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
@ extent
Definition: vtkX3D.h:351
#define VTK_WIPE_VERTICAL
#define VTK_WIPE_HORIZONTAL
#define VTK_WIPE_UPPER_RIGHT
#define VTK_WIPE_LOWER_RIGHT
#define VTK_WIPE_QUAD
#define VTK_WIPE_LOWER_LEFT
#define VTK_WIPE_UPPER_LEFT