VTK
|
use a control polyhedron to deform an input vtkPointSet More...
#include <vtkDeformPointSet.h>
use a control polyhedron to deform an input vtkPointSet
vtkDeformPointSet is a filter that uses a control polyhdron to deform an input dataset of type vtkPointSet. The control polyhedron (or mesh) must be a closed, manifold surface.
The filter executes as follows. In initial pipeline execution, the control mesh and input vtkPointSet are assumed in undeformed position, and an initial set of interpolation weights are computed for each point in the vtkPointSet (one interpolation weight value for each point in the control mesh). The filter then stores these interpolation weights after filter execution. The next time the filter executes, assuming that the number of points/cells in the control mesh and vtkPointSet have not changed, the points in the vtkPointSet are recomputed based on the original weights. Hence if the control mesh has been deformed, it will in turn cause deformation in the vtkPointSet. This can be used to animate or edit the geometry of the vtkPointSet.
Definition at line 76 of file vtkDeformPointSet.h.
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
Definition at line 82 of file vtkDeformPointSet.h.
vtkDeformPointSet::vtkDeformPointSet | ( | ) | [protected] |
vtkDeformPointSet::~vtkDeformPointSet | ( | ) | [protected] |
static vtkDeformPointSet* vtkDeformPointSet::New | ( | ) | [static] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
static int vtkDeformPointSet::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
virtual int vtkDeformPointSet::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
static vtkDeformPointSet* vtkDeformPointSet::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
virtual vtkObjectBase* vtkDeformPointSet::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
vtkDeformPointSet* vtkDeformPointSet::NewInstance | ( | ) | const |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
void vtkDeformPointSet::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard methods for instantiable (i.e., concrete) class.
Reimplemented from vtkPointSetAlgorithm.
void vtkDeformPointSet::SetControlMeshData | ( | vtkPolyData * | controlMesh | ) |
Specify the control mesh to deform the input vtkPointSet. The control mesh must be a closed, non-self-intersecting, manifold mesh.
Specify the control mesh to deform the input vtkPointSet. The control mesh must be a closed, non-self-intersecting, manifold mesh.
void vtkDeformPointSet::SetControlMeshConnection | ( | vtkAlgorithmOutput * | algOutput | ) |
Specify the point locations used to probe input. Any geometry can be used. New style. Equivalent to SetInputConnection(1, algOutput).
virtual void vtkDeformPointSet::SetInitializeWeights | ( | int | ) | [virtual] |
Specify whether to regenerate interpolation weights or not. Initially the filter will reexecute no matter what this flag is set to (initial weights must be computed). Also, this flag is ignored if the number of input points/cells or the number of control mesh points/cells changes between executions. Thus flag is used to force reexecution and recomputation of weights.
virtual int vtkDeformPointSet::GetInitializeWeights | ( | ) | [virtual] |
Specify whether to regenerate interpolation weights or not. Initially the filter will reexecute no matter what this flag is set to (initial weights must be computed). Also, this flag is ignored if the number of input points/cells or the number of control mesh points/cells changes between executions. Thus flag is used to force reexecution and recomputation of weights.
virtual void vtkDeformPointSet::InitializeWeightsOn | ( | ) | [virtual] |
Specify whether to regenerate interpolation weights or not. Initially the filter will reexecute no matter what this flag is set to (initial weights must be computed). Also, this flag is ignored if the number of input points/cells or the number of control mesh points/cells changes between executions. Thus flag is used to force reexecution and recomputation of weights.
virtual void vtkDeformPointSet::InitializeWeightsOff | ( | ) | [virtual] |
Specify whether to regenerate interpolation weights or not. Initially the filter will reexecute no matter what this flag is set to (initial weights must be computed). Also, this flag is ignored if the number of input points/cells or the number of control mesh points/cells changes between executions. Thus flag is used to force reexecution and recomputation of weights.
virtual int vtkDeformPointSet::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPointSetAlgorithm.
int vtkDeformPointSet::InitializeWeights [protected] |
Definition at line 113 of file vtkDeformPointSet.h.
Definition at line 116 of file vtkDeformPointSet.h.
Definition at line 117 of file vtkDeformPointSet.h.
Definition at line 118 of file vtkDeformPointSet.h.
Definition at line 119 of file vtkDeformPointSet.h.
vtkSmartPointer<vtkDoubleArray> vtkDeformPointSet::Weights [protected] |
Definition at line 120 of file vtkDeformPointSet.h.