VTK  9.7.20261027
vtkWarpScalar.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
100
101#ifndef vtkWarpScalar_h
102#define vtkWarpScalar_h
103
104#include "vtkFiltersGeneralModule.h" // For export macro
105#include "vtkPointSetAlgorithm.h"
106
107VTK_ABI_NAMESPACE_BEGIN
108class vtkCellArray;
109class vtkDataArray;
110class vtkDataSet;
112class vtkIdTypeArray;
113class vtkPointSet;
115
116class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
117{
118public:
120
126 void PrintSelf(ostream& os, vtkIndent indent) override;
128
130
133 vtkSetMacro(ScaleFactor, double);
134 vtkGetMacro(ScaleFactor, double);
136
138
142 vtkSetMacro(UseNormal, vtkTypeBool);
143 vtkGetMacro(UseNormal, vtkTypeBool);
144 vtkBooleanMacro(UseNormal, vtkTypeBool);
146
148
152 vtkSetVector3Macro(Normal, double);
153 vtkGetVectorMacro(Normal, double, 3);
155
157
162 vtkSetMacro(XYPlane, vtkTypeBool);
163 vtkGetMacro(XYPlane, vtkTypeBool);
164 vtkBooleanMacro(XYPlane, vtkTypeBool);
166
168
173 vtkSetMacro(OutputPointsPrecision, int);
174 vtkGetMacro(OutputPointsPrecision, int);
176
178
186 vtkGetMacro(GenerateEnclosure, bool);
187 vtkSetMacro(GenerateEnclosure, bool);
188 vtkBooleanMacro(GenerateEnclosure, bool);
190
191 int FillInputPortInformation(int port, vtkInformation* info) override;
192
193protected:
195 ~vtkWarpScalar() override;
196
198 vtkInformationVector* outputVector) override;
200
204 unsigned int GetInputDimension(vtkDataSet* input);
208 void BuildSideWalls(vtkPointSet* output, int nInputPoints, vtkUnsignedCharArray* boundaryCells,
209 vtkIdTypeArray* boundaryFaceIndexes);
214
217 double Normal[3];
220 bool GenerateEnclosure = false;
221
222private:
223 vtkWarpScalar(const vtkWarpScalar&) = delete;
224 void operator=(const vtkWarpScalar&) = delete;
225};
226
227VTK_ABI_NAMESPACE_END
228#endif
object to represent cell connectivity
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete class for storing a set of points
Definition vtkPointSet.h:98
dynamic, self-adjusting array of unsigned char
vtkTypeBool UseNormal
~vtkWarpScalar() override
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
double Normal[3]
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
unsigned int GetInputDimension(vtkDataSet *input)
Check the topological dimension of the data set (only used when SideWallsActive).
vtkTypeBool XYPlane
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void AppendArrays(vtkDataSetAttributes *setData)
Append the values in the arrays of the array attribute collection to themselves.
void BuildSideWalls(vtkPointSet *output, int nInputPoints, vtkUnsignedCharArray *boundaryCells, vtkIdTypeArray *boundaryFaceIndexes)
When GenerateEnclosure is active, construct the cells between the base and warped surfaces.
static vtkWarpScalar * New()
Standard methods for instantiation, obtaining type information, and printing.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition vtkABI.h:64
#define vtkDataArray
#define vtkWarpScalar