VTK
vtkDeformPointSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDeformPointSet.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 vtkDeformPointSet_h
66 #define vtkDeformPointSet_h
67 
68 #include "vtkFiltersGeneralModule.h" // For export macro
69 #include "vtkPointSetAlgorithm.h"
70 
71 #include "vtkSmartPointer.h" // For protected ivars
72 
73 class vtkDoubleArray;
74 class vtkPolyData;
75 
76 
77 class VTKFILTERSGENERAL_EXPORT vtkDeformPointSet : public vtkPointSetAlgorithm
78 {
79 public:
81 
86  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
88 
90 
94  void SetControlMeshData(vtkPolyData *controlMesh);
97 
103 
105 
113  vtkSetMacro(InitializeWeights, int);
114  vtkGetMacro(InitializeWeights, int);
115  vtkBooleanMacro(InitializeWeights, int);
117 
118 protected:
120  ~vtkDeformPointSet() VTK_OVERRIDE;
121 
122  int InitializeWeights;
123 
124  // Keep track of information between execution passes
125  vtkIdType InitialNumberOfControlMeshPoints;
126  vtkIdType InitialNumberOfControlMeshCells;
127  vtkIdType InitialNumberOfPointSetPoints;
128  vtkIdType InitialNumberOfPointSetCells;
130 
131  int RequestData(vtkInformation *, vtkInformationVector **,
132  vtkInformationVector *) VTK_OVERRIDE;
133 
134 private:
135  vtkDeformPointSet(const vtkDeformPointSet&) VTK_DELETE_FUNCTION;
136  void operator=(const vtkDeformPointSet&) VTK_DELETE_FUNCTION;
137 
138 };
139 
140 #endif
Proxy object to connect input/output ports.
use a control polyhedron to deform an input vtkPointSet
static vtkDeformPointSet * New()
Standard methods for instantiable (i.e., concrete) class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkDeformPointSet() override
vtkPolyData * GetControlMeshData()
void SetControlMeshData(vtkPolyData *controlMesh)
Specify the control mesh to deform the input vtkPointSet.
void SetControlMeshConnection(vtkAlgorithmOutput *algOutput)
Specify the point locations used to probe input.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
Hold a reference to a vtkObjectBase instance.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287