VTK  9.0.20210223
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 =========================================================================*/
23 #ifndef vtkWarpTo_h
24 #define vtkWarpTo_h
25 
26 #include "vtkFiltersGeneralModule.h" // For export macro
27 #include "vtkPointSetAlgorithm.h"
28 
29 class VTKFILTERSGENERAL_EXPORT vtkWarpTo : public vtkPointSetAlgorithm
30 {
31 public:
32  static vtkWarpTo* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  vtkSetMacro(ScaleFactor, double);
41  vtkGetMacro(ScaleFactor, double);
43 
45 
48  vtkGetVectorMacro(Position, double, 3);
49  vtkSetVector3Macro(Position, double);
51 
53 
57  vtkSetMacro(Absolute, vtkTypeBool);
58  vtkGetMacro(Absolute, vtkTypeBool);
59  vtkBooleanMacro(Absolute, vtkTypeBool);
61 
63 
64 protected:
65  vtkWarpTo();
66  ~vtkWarpTo() override = default;
67 
68  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector) override;
71  double ScaleFactor;
72  double Position[3];
74 
75 private:
76  vtkWarpTo(const vtkWarpTo&) = delete;
77  void operator=(const vtkWarpTo&) = delete;
78 };
79 
80 #endif
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkWarpTo::ScaleFactor
double ScaleFactor
Definition: vtkWarpTo.h:71
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPointSetAlgorithm.h
vtkWarpTo::Absolute
vtkTypeBool Absolute
Definition: vtkWarpTo.h:73
vtkX3D::port
Definition: vtkX3D.h:453
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:131
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::info
Definition: vtkX3D.h:382
vtkParticleTracerBaseNamespace::Position
struct Position_t Position
Definition: vtkParticleTracerBase.h:63
vtkWarpTo
deform geometry by warping towards a point
Definition: vtkWarpTo.h:29
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPointSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.