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) VTK_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,int);
58  vtkGetMacro(Absolute,int);
59  vtkBooleanMacro(Absolute,int);
61 
62  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
63 
64 protected:
65  vtkWarpTo();
66  ~vtkWarpTo() VTK_OVERRIDE {}
67 
68  int RequestDataObject(vtkInformation *request,
69  vtkInformationVector **inputVector,
70  vtkInformationVector *outputVector) VTK_OVERRIDE;
73  vtkInformationVector *) VTK_OVERRIDE;
74  double ScaleFactor;
75  double Position[3];
76  int Absolute;
77 private:
78  vtkWarpTo(const vtkWarpTo&) VTK_DELETE_FUNCTION;
79  void operator=(const vtkWarpTo&) VTK_DELETE_FUNCTION;
80 };
81 
82 #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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double ScaleFactor
Definition: vtkWarpTo.h:74
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass for algorithms that produce output of the same type as input.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
deform geometry by warping towards a point
Definition: vtkWarpTo.h:29
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
int Absolute
Definition: vtkWarpTo.h:76
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
~vtkWarpTo() override
Definition: vtkWarpTo.h:66