VTK  9.3.1
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
14 #ifndef vtkWarpTo_h
15 #define vtkWarpTo_h
16 
17 #include "vtkFiltersGeneralModule.h" // For export macro
18 #include "vtkPointSetAlgorithm.h"
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKFILTERSGENERAL_EXPORT vtkWarpTo : public vtkPointSetAlgorithm
22 {
23 public:
24  static vtkWarpTo* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
32  vtkSetMacro(ScaleFactor, double);
33  vtkGetMacro(ScaleFactor, double);
35 
37 
40  vtkGetVectorMacro(Position, double, 3);
41  vtkSetVector3Macro(Position, double);
43 
45 
49  vtkSetMacro(Absolute, vtkTypeBool);
50  vtkGetMacro(Absolute, vtkTypeBool);
51  vtkBooleanMacro(Absolute, vtkTypeBool);
53 
55 
56 protected:
57  vtkWarpTo();
58  ~vtkWarpTo() override = default;
59 
60  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
61  vtkInformationVector* outputVector) override;
63  double ScaleFactor;
64  double Position[3];
66 
67 private:
68  vtkWarpTo(const vtkWarpTo&) = delete;
69  void operator=(const vtkWarpTo&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
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.
vtkTypeBool Absolute
Definition: vtkWarpTo.h:65
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double ScaleFactor
Definition: vtkWarpTo.h:63
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce output of the same type as input.
deform geometry by warping towards a point
Definition: vtkWarpTo.h:21
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.