VTK  9.2.5
vtkWarpTo.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWarpTo.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 =========================================================================*/
65 #ifndef vtkWarpTo_h
66 #define vtkWarpTo_h
67 
68 #include "vtkFiltersGeneralModule.h" // For export macro
69 #include "vtkPointSetAlgorithm.h"
70 
71 class VTKFILTERSGENERAL_EXPORT vtkWarpTo : public vtkPointSetAlgorithm
72 {
73 public:
74  static vtkWarpTo* New();
76  void PrintSelf(ostream& os, vtkIndent indent) override;
77 
79 
82  vtkSetMacro(ScaleFactor, double);
83  vtkGetMacro(ScaleFactor, double);
85 
87 
90  vtkGetVectorMacro(Position, double, 3);
91  vtkSetVector3Macro(Position, double);
93 
95 
99  vtkSetMacro(Absolute, vtkTypeBool);
100  vtkGetMacro(Absolute, vtkTypeBool);
101  vtkBooleanMacro(Absolute, vtkTypeBool);
103 
105 
106 protected:
108  ~vtkWarpTo() override = default;
109 
111  vtkInformationVector* outputVector) override;
113  double ScaleFactor;
114  double Position[3];
116 
117 private:
118  vtkWarpTo(const vtkWarpTo&) = delete;
119  void operator=(const vtkWarpTo&) = delete;
120 };
121 
122 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:72
~vtkWarpTo() override=default
vtkTypeBool Absolute
Definition: vtkWarpTo.h:115
double ScaleFactor
Definition: vtkWarpTo.h:113
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:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69