VTK  9.0.20210301
vtkWarpScalar.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWarpScalar.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 =========================================================================*/
38 #ifndef vtkWarpScalar_h
39 #define vtkWarpScalar_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
42 #include "vtkPointSetAlgorithm.h"
43 
44 class vtkDataArray;
45 
46 class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
47 {
48 public:
50 
54  static vtkWarpScalar* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkSetMacro(ScaleFactor, double);
64  vtkGetMacro(ScaleFactor, double);
66 
68 
72  vtkSetMacro(UseNormal, vtkTypeBool);
73  vtkGetMacro(UseNormal, vtkTypeBool);
74  vtkBooleanMacro(UseNormal, vtkTypeBool);
76 
78 
82  vtkSetVector3Macro(Normal, double);
83  vtkGetVectorMacro(Normal, double, 3);
85 
87 
92  vtkSetMacro(XYPlane, vtkTypeBool);
93  vtkGetMacro(XYPlane, vtkTypeBool);
94  vtkBooleanMacro(XYPlane, vtkTypeBool);
96 
98 
103  vtkSetMacro(OutputPointsPrecision, int);
104  vtkGetMacro(OutputPointsPrecision, int);
106 
108 
109 protected:
111  ~vtkWarpScalar() override;
112 
114  vtkInformationVector* outputVector) override;
116 
117  double ScaleFactor;
119  double Normal[3];
122 
123 private:
124  vtkWarpScalar(const vtkWarpScalar&) = delete;
125  void operator=(const vtkWarpScalar&) = delete;
126 };
127 
128 #endif
vtkWarpScalar::~vtkWarpScalar
~vtkWarpScalar() override
vtkWarpScalar::UseNormal
vtkTypeBool UseNormal
Definition: vtkWarpScalar.h:118
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:44
vtkWarpScalar::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkWarpScalar::New
static vtkWarpScalar * New()
Standard methods for instantiation, obtaining type information, and printing.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:51
vtkWarpScalar
deform geometry with scalar data
Definition: vtkWarpScalar.h:47
vtkPointSetAlgorithm.h
vtkWarpScalar::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
vtkWarpScalar::XYPlane
vtkTypeBool XYPlane
Definition: vtkWarpScalar.h:120
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkWarpScalar::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkWarpScalar::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkWarpScalar::vtkWarpScalar
vtkWarpScalar()
vtkWarpScalar::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkWarpScalar.h:121
vtkWarpScalar::ScaleFactor
double ScaleFactor
Definition: vtkWarpScalar.h:117
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69