VTK: Imaging/Hybrid/vtkImageRectilinearWipe.h Source File

| VTK 9.3.1

vtkImageRectilinearWipe.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
47 #ifndef vtkImageRectilinearWipe_h
48 #define vtkImageRectilinearWipe_h
49
50 #include "vtkImagingHybridModule.h" // For export macro
51 #include "vtkThreadedImageAlgorithm.h"
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 VTK_ABI_NAMESPACE_BEGIN
62 class VTKIMAGINGHYBRID_EXPORT vtkImageRectilinearWipe : public vtkThreadedImageAlgorithm
63 {
64 public:
65 static vtkImageRectilinearWipe* New();
66 vtkTypeMacro(vtkImageRectilinearWipe, vtkThreadedImageAlgorithm);
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
74 vtkSetVector2Macro(Position, int);
75 vtkGetVectorMacro(Position, int, 2);
77
79
83 vtkSetVector2Macro(Axis, int);
84 vtkGetVectorMacro(Axis, int, 2);
86
90 virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
91 virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
92
94
112 vtkSetClampMacro(Wipe, int, VTK_WIPE_QUAD, VTK_WIPE_UPPER_RIGHT);
113 vtkGetMacro(Wipe, int);
114 void SetWipeToQuad() { this->SetWipe(VTK_WIPE_QUAD); }
115 void SetWipeToHorizontal() { this->SetWipe(VTK_WIPE_HORIZONTAL); }
116 void SetWipeToVertical() { this->SetWipe(VTK_WIPE_VERTICAL); }
117 void SetWipeToLowerLeft() { this->SetWipe(VTK_WIPE_LOWER_LEFT); }
118 void SetWipeToLowerRight() { this->SetWipe(VTK_WIPE_LOWER_RIGHT); }
119 void SetWipeToUpperLeft() { this->SetWipe(VTK_WIPE_UPPER_LEFT); }
120 void SetWipeToUpperRight() { this->SetWipe(VTK_WIPE_UPPER_RIGHT); }
122
123 protected:
124 vtkImageRectilinearWipe();
125 ~vtkImageRectilinearWipe() override = default;
126
127 void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
128 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
129 int outExt[6], int threadId) override;
130
131 int Position[2];
132 int Wipe;
133 int Axis[2];
134
135 private:
136 vtkImageRectilinearWipe(const vtkImageRectilinearWipe&) = delete;
137 void operator=(const vtkImageRectilinearWipe&) = delete;
138 };
139
140 VTK_ABI_NAMESPACE_END
141 #endif
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkImageAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkImageRectilinearWipe
make a rectilinear combination of two images.
Definition: vtkImageRectilinearWipe.h:63
vtkImageRectilinearWipe::~vtkImageRectilinearWipe
~vtkImageRectilinearWipe() override=default
vtkImageRectilinearWipe::SetWipeToVertical
void SetWipeToVertical()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:116
vtkImageRectilinearWipe::ThreadedRequestData
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,...
vtkImageRectilinearWipe::SetWipeToUpperRight
void SetWipeToUpperRight()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:120
vtkImageRectilinearWipe::SetWipeToQuad
void SetWipeToQuad()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:114
vtkImageRectilinearWipe::SetInput1Data
virtual void SetInput1Data(vtkDataObject *in)
Set the two inputs to this filter.
Definition: vtkImageRectilinearWipe.h:90
vtkImageRectilinearWipe::SetWipeToLowerLeft
void SetWipeToLowerLeft()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:117
vtkImageRectilinearWipe::SetInput2Data
virtual void SetInput2Data(vtkDataObject *in)
Definition: vtkImageRectilinearWipe.h:91
vtkImageRectilinearWipe::SetWipeToHorizontal
void SetWipeToHorizontal()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:115
vtkImageRectilinearWipe::New
static vtkImageRectilinearWipe * New()
vtkImageRectilinearWipe::vtkImageRectilinearWipe
vtkImageRectilinearWipe()
vtkImageRectilinearWipe::SetWipeToLowerRight
void SetWipeToLowerRight()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:118
vtkImageRectilinearWipe::Wipe
int Wipe
Definition: vtkImageRectilinearWipe.h:132
vtkImageRectilinearWipe::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageRectilinearWipe::SetWipeToUpperLeft
void SetWipeToUpperLeft()
Specify the wipe mode.
Definition: vtkImageRectilinearWipe.h:119
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:34
vtkParticleTracerBaseNamespace::Position
struct Position_t Position
Definition: vtkParticleTracerBase.h:55
VTK_WIPE_VERTICAL
#define VTK_WIPE_VERTICAL
Definition: vtkImageRectilinearWipe.h:55
VTK_WIPE_HORIZONTAL
#define VTK_WIPE_HORIZONTAL
Definition: vtkImageRectilinearWipe.h:54
VTK_WIPE_UPPER_RIGHT
#define VTK_WIPE_UPPER_RIGHT
Definition: vtkImageRectilinearWipe.h:59
VTK_WIPE_LOWER_RIGHT
#define VTK_WIPE_LOWER_RIGHT
Definition: vtkImageRectilinearWipe.h:57
VTK_WIPE_QUAD
#define VTK_WIPE_QUAD
Definition: vtkImageRectilinearWipe.h:53
VTK_WIPE_LOWER_LEFT
#define VTK_WIPE_LOWER_LEFT
Definition: vtkImageRectilinearWipe.h:56
VTK_WIPE_UPPER_LEFT
#define VTK_WIPE_UPPER_LEFT
Definition: vtkImageRectilinearWipe.h:58
vtkThreadedImageAlgorithm.h