VTK
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 {}
67 
68  int RequestDataObject(vtkInformation *request,
69  vtkInformationVector **inputVector,
70  vtkInformationVector *outputVector) override;
73  vtkInformationVector *) override;
74  double ScaleFactor;
75  double Position[3];
77 private:
78  vtkWarpTo(const vtkWarpTo&) = delete;
79  void operator=(const vtkWarpTo&) = delete;
80 };
81 
82 #endif
vtkWarpTo::~vtkWarpTo
~vtkWarpTo() override
Definition: vtkWarpTo.h:66
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkWarpTo::ScaleFactor
double ScaleFactor
Definition: vtkWarpTo.h:74
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPointSetAlgorithm.h
vtkWarpTo::Absolute
vtkTypeBool Absolute
Definition: vtkWarpTo.h:76
vtkX3D::port
Definition: vtkX3D.h:447
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:132
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:80
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::info
Definition: vtkX3D.h:376
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.