VTK  9.2.6
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 =========================================================================*/
41 #ifndef vtkWarpScalar_h
42 #define vtkWarpScalar_h
43 
44 #include "vtkFiltersGeneralModule.h" // For export macro
45 #include "vtkPointSetAlgorithm.h"
46 
47 class vtkDataArray;
48 
49 class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
50 {
51 public:
53 
57  static vtkWarpScalar* New();
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkSetMacro(ScaleFactor, double);
67  vtkGetMacro(ScaleFactor, double);
69 
71 
75  vtkSetMacro(UseNormal, vtkTypeBool);
76  vtkGetMacro(UseNormal, vtkTypeBool);
77  vtkBooleanMacro(UseNormal, vtkTypeBool);
79 
81 
85  vtkSetVector3Macro(Normal, double);
86  vtkGetVectorMacro(Normal, double, 3);
88 
90 
95  vtkSetMacro(XYPlane, vtkTypeBool);
96  vtkGetMacro(XYPlane, vtkTypeBool);
97  vtkBooleanMacro(XYPlane, vtkTypeBool);
99 
101 
106  vtkSetMacro(OutputPointsPrecision, int);
107  vtkGetMacro(OutputPointsPrecision, int);
109 
110  int FillInputPortInformation(int port, vtkInformation* info) override;
111 
112 protected:
113  vtkWarpScalar();
114  ~vtkWarpScalar() override;
115 
116  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
117  vtkInformationVector* outputVector) override;
119 
120  double ScaleFactor;
122  double Normal[3];
125 
126 private:
127  vtkWarpScalar(const vtkWarpScalar&) = delete;
128  void operator=(const vtkWarpScalar&) = delete;
129 };
130 
131 #endif
int OutputPointsPrecision
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool XYPlane
vtkTypeBool UseNormal
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
Superclass for algorithms that produce output of the same type as input.
double ScaleFactor
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
deform geometry with scalar data
Definition: vtkWarpScalar.h:49