VTK  9.3.20240415
vtkWarpTo.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
53 #ifndef vtkWarpTo_h
54 #define vtkWarpTo_h
55 
56 #include "vtkFiltersGeneralModule.h" // For export macro
57 #include "vtkPointSetAlgorithm.h"
58 
59 VTK_ABI_NAMESPACE_BEGIN
60 class VTKFILTERSGENERAL_EXPORT vtkWarpTo : public vtkPointSetAlgorithm
61 {
62 public:
63  static vtkWarpTo* New();
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
68 
71  vtkSetMacro(ScaleFactor, double);
72  vtkGetMacro(ScaleFactor, double);
74 
76 
79  vtkGetVectorMacro(Position, double, 3);
80  vtkSetVector3Macro(Position, double);
82 
84 
88  vtkSetMacro(Absolute, vtkTypeBool);
89  vtkGetMacro(Absolute, vtkTypeBool);
90  vtkBooleanMacro(Absolute, vtkTypeBool);
92 
94 
95 protected:
97  ~vtkWarpTo() override = default;
98 
100  vtkInformationVector* outputVector) override;
102  double ScaleFactor;
103  double Position[3];
105 
106 private:
107  vtkWarpTo(const vtkWarpTo&) = delete;
108  void operator=(const vtkWarpTo&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
deform geometry by warping towards a point
Definition: vtkWarpTo.h:61
~vtkWarpTo() override=default
vtkTypeBool Absolute
Definition: vtkWarpTo.h:104
double ScaleFactor
Definition: vtkWarpTo.h:102
static vtkWarpTo * New()
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 RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64