VTK  9.1.0
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=========================================================================*/
56#ifndef vtkImageRectilinearWipe_h
57#define vtkImageRectilinearWipe_h
58
59#include "vtkImagingHybridModule.h" // For export macro
61
62#define VTK_WIPE_QUAD 0
63#define VTK_WIPE_HORIZONTAL 1
64#define VTK_WIPE_VERTICAL 2
65#define VTK_WIPE_LOWER_LEFT 3
66#define VTK_WIPE_LOWER_RIGHT 4
67#define VTK_WIPE_UPPER_LEFT 5
68#define VTK_WIPE_UPPER_RIGHT 6
69
70class VTKIMAGINGHYBRID_EXPORT vtkImageRectilinearWipe : public vtkThreadedImageAlgorithm
71{
72public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
82 vtkSetVector2Macro(Position, int);
83 vtkGetVectorMacro(Position, int, 2);
85
87
91 vtkSetVector2Macro(Axis, int);
92 vtkGetVectorMacro(Axis, int, 2);
94
98 virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
99 virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
100
102
120 vtkSetClampMacro(Wipe, int, VTK_WIPE_QUAD, VTK_WIPE_UPPER_RIGHT);
121 vtkGetMacro(Wipe, int);
122 void SetWipeToQuad() { this->SetWipe(VTK_WIPE_QUAD); }
123 void SetWipeToHorizontal() { this->SetWipe(VTK_WIPE_HORIZONTAL); }
124 void SetWipeToVertical() { this->SetWipe(VTK_WIPE_VERTICAL); }
125 void SetWipeToLowerLeft() { this->SetWipe(VTK_WIPE_LOWER_LEFT); }
126 void SetWipeToLowerRight() { this->SetWipe(VTK_WIPE_LOWER_RIGHT); }
127 void SetWipeToUpperLeft() { this->SetWipe(VTK_WIPE_UPPER_LEFT); }
128 void SetWipeToUpperRight() { this->SetWipe(VTK_WIPE_UPPER_RIGHT); }
130
131protected:
133 ~vtkImageRectilinearWipe() override = default;
134
136 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
137 int outExt[6], int threadId) override;
138
139 int Position[2];
140 int Wipe;
141 int Axis[2];
142
143private:
145 void operator=(const vtkImageRectilinearWipe&) = delete;
146};
147
148#endif
general representation of visualization data
Definition: vtkDataObject.h:69
void SetInputData(vtkDataObject *)
Assign a data object as input.
topologically and geometrically regular array of data
Definition: vtkImageData.h:57
make a rectilinear combination of two images.
~vtkImageRectilinearWipe() override=default
void SetWipeToVertical()
Specify the wipe mode.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) override
If the subclass does not define an Execute method, then the task will be broken up,...
void SetWipeToUpperRight()
Specify the wipe mode.
void SetWipeToQuad()
Specify the wipe mode.
virtual void SetInput1Data(vtkDataObject *in)
Set the two inputs to this filter.
void SetWipeToLowerLeft()
Specify the wipe mode.
static vtkImageRectilinearWipe * New()
virtual void SetInput2Data(vtkDataObject *in)
void SetWipeToHorizontal()
Specify the wipe mode.
void SetWipeToLowerRight()
Specify the wipe mode.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWipeToUpperLeft()
Specify the wipe mode.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
#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