|
VMTK
|
Serves as the base class for stencils applied to a manifold surface. More...
#include <vtkvmtkPolyDataManifoldStencil.h>
Public Types | |
| typedef vtkvmtkStencil | Superclass |
| Public Types inherited from vtkvmtkStencil | |
| typedef vtkvmtkNeighborhood | Superclass |
| Public Types inherited from vtkvmtkNeighborhood | |
| typedef vtkvmtkDataSetItem | Superclass |
| Public Types inherited from vtkvmtkDataSetItem | |
| typedef vtkvmtkItem | Superclass |
| Public Types inherited from vtkvmtkItem | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataManifoldStencil * | NewInstance () const |
| virtual double | GetArea () |
| virtual void | Build () override |
| virtual void | ComputeArea () |
| virtual void | ScaleWithArea ()=0 |
| void | DeepCopy (vtkvmtkPolyDataManifoldStencil *src) |
| virtual int | GetUseExtendedNeighborhood () |
| virtual void | SetUseExtendedNeighborhood (int) |
| virtual void | UseExtendedNeighborhoodOn () |
| virtual void | UseExtendedNeighborhoodOff () |
| Public Member Functions inherited from vtkvmtkStencil | |
| vtkvmtkStencil * | NewInstance () const |
| vtkIdType | GetNumberOfWeights () |
| void | ScaleWeights (double factor) |
| const double * | GetCenterWeightTuple () |
| virtual void | DeepCopy (vtkvmtkItem *src) override |
| virtual void | SetNumberOfComponents (vtkIdType) |
| virtual vtkIdType | GetNumberOfComponents () |
| double | GetWeight (vtkIdType i) |
| void | SetWeight (vtkIdType i, double weight) |
| double | GetWeight (vtkIdType i, vtkIdType component) |
| void | SetWeight (vtkIdType i, vtkIdType component, double weight) |
| double | GetCenterWeight () |
| void | SetCenterWeight (double weight) |
| double | GetCenterWeight (vtkIdType component) |
| void | SetCenterWeight (vtkIdType component, double weightComponent) |
| virtual void | SetWeightScaling (int) |
| virtual int | GetWeightScaling () |
| virtual void | WeightScalingOn () |
| virtual void | WeightScalingOff () |
| virtual void | SetNegateWeights (int) |
| virtual int | GetNegateWeights () |
| virtual void | NegateWeightsOn () |
| virtual void | NegateWeightsOff () |
| Public Member Functions inherited from vtkvmtkNeighborhood | |
| vtkvmtkNeighborhood * | NewInstance () const |
| virtual bool | GetIsBoundary () |
| vtkIdType | GetNumberOfPoints () |
| vtkIdType | GetPointId (vtkIdType i) |
| vtkIdType * | GetPointer (vtkIdType i) |
| Public Member Functions inherited from vtkvmtkDataSetItem | |
| vtkvmtkDataSetItem * | NewInstance () const |
| void | SetDataSet (vtkDataSet *dataSet) |
| vtkDataSet * | GetDataSet () |
| virtual void | SetDataSetPointId (vtkIdType) |
| virtual vtkIdType | GetDataSetPointId () |
| virtual void | SetReallocateOnBuild (int) |
| virtual int | GetReallocateOnBuild () |
| virtual void | ReallocateOnBuildOn () |
| virtual void | ReallocateOnBuildOff () |
| Public Member Functions inherited from vtkvmtkItem | |
| vtkvmtkItem * | NewInstance () const |
| virtual vtkIdType | GetItemType ()=0 |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataManifoldStencil * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkStencil | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkStencil * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkNeighborhood | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkNeighborhood * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkDataSetItem | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkDataSetItem * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkItem | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkItem * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataManifoldStencil () | |
| ~vtkvmtkPolyDataManifoldStencil () | |
| void | ScaleWithAreaFactor (double factor) |
| Protected Member Functions inherited from vtkvmtkStencil | |
| vtkvmtkStencil () | |
| ~vtkvmtkStencil () | |
| void | ResizePointList (vtkIdType ptId, int size) |
| void | ChangeWeightSign () |
| Protected Member Functions inherited from vtkvmtkNeighborhood | |
| vtkvmtkNeighborhood () | |
| ~vtkvmtkNeighborhood () | |
| void | ResizePointList (vtkIdType ptId, int size) |
| Protected Member Functions inherited from vtkvmtkDataSetItem | |
| vtkvmtkDataSetItem () | |
| ~vtkvmtkDataSetItem () | |
| Protected Member Functions inherited from vtkvmtkItem | |
| vtkvmtkItem () | |
| ~vtkvmtkItem () | |
Protected Attributes | |
| double | Area |
| int | UseExtendedNeighborhood |
| Protected Attributes inherited from vtkvmtkStencil | |
| vtkIdType | NumberOfComponents |
| double * | Weights |
| double * | CenterWeight |
| int | WeightScaling |
| int | NegateWeights |
| Protected Attributes inherited from vtkvmtkNeighborhood | |
| vtkIdType | NPoints |
| vtkIdType * | PointIds |
| bool | IsBoundary |
| Protected Attributes inherited from vtkvmtkDataSetItem | |
| vtkDataSet * | DataSet |
| vtkIdType | DataSetPointId |
| int | ReallocateOnBuild |
Serves as the base class for stencils applied to a manifold surface.
vtkvmtkPolyDataManifoldStencil is the common base class for the discrete differential-operator stencils in this module (umbrella/Laplacian, Laplace-Beltrami, gradient, ...) that operate on a point of a manifold triangulated surface (vtkPolyData). Build() constructs the underlying one-ring neighborhood (vtkvmtkPolyDataManifoldNeighborhood, or vtkvmtkPolyDataManifoldExtendedNeighborhood when UseExtendedNeighborhood is on) for DataSetPointId and allocates the Weights / CenterWeight arrays (see vtkvmtkStencil) that subclasses fill in with operator-specific values; ComputeArea computes the barycentric mixed area of the one-ring (stored in Area, retrievable with GetArea) used by subclasses (via the protected ScaleWithAreaFactor helper, exposed as the pure virtual ScaleWithArea) to normalize their weights.
Definition at line 45 of file vtkvmtkPolyDataManifoldStencil.h.
Definition at line 49 of file vtkvmtkPolyDataManifoldStencil.h.
|
protected |
Definition at line 34 of file vtkvmtkPolyDataManifoldStencil.cxx.
|
inlineprotected |
Definition at line 95 of file vtkvmtkPolyDataManifoldStencil.h.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataManifoldStencil * vtkvmtkPolyDataManifoldStencil::NewInstance | ( | ) | const |
|
virtual |
Get the barycentric mixed area of the point's one-ring neighborhood, as computed by the most recent call to ComputeArea() (normally invoked internally by Build()).
|
overridevirtual |
Build the stencil.
Implements vtkvmtkStencil.
Reimplemented in vtkvmtkPolyDataAreaWeightedUmbrellaStencil, vtkvmtkPolyDataGradientStencil, vtkvmtkPolyDataLaplaceBeltramiStencil, and vtkvmtkPolyDataUmbrellaStencil.
Definition at line 90 of file vtkvmtkPolyDataManifoldStencil.cxx.
|
virtual |
Compute the barycentric mixed area of the point's one-ring neighborhood (sum of the incident triangle areas) and store it in Area. Called internally by Build(); subclasses that need a different area normalization (e.g. a proper Voronoi mixed area) override this method.
Definition at line 41 of file vtkvmtkPolyDataManifoldStencil.cxx.
|
pure virtual |
Normalize the stencil's Weights/CenterWeight by the area computed by ComputeArea(), typically via the protected ScaleWithAreaFactor helper. Must be implemented by every concrete stencil subclass; called internally at the end of Build().
Implemented in vtkvmtkPolyDataAreaWeightedUmbrellaStencil, vtkvmtkPolyDataFELaplaceBeltramiStencil, vtkvmtkPolyDataFVFELaplaceBeltramiStencil, vtkvmtkPolyDataGradientStencil, and vtkvmtkPolyDataUmbrellaStencil.
| void vtkvmtkPolyDataManifoldStencil::DeepCopy | ( | vtkvmtkPolyDataManifoldStencil * | src | ) |
Deep copy the state (including Area) of src into this stencil, in addition to the base class state copied by vtkvmtkStencil::DeepCopy.
Definition at line 142 of file vtkvmtkPolyDataManifoldStencil.cxx.
|
virtual |
Set/get whether Build() uses the extended (second-ring, see vtkvmtkPolyDataManifoldExtendedNeighborhood) rather than plain one-ring neighborhood to construct the stencil. Default: on.
|
virtual |
Set/get whether Build() uses the extended (second-ring, see vtkvmtkPolyDataManifoldExtendedNeighborhood) rather than plain one-ring neighborhood to construct the stencil. Default: on.
|
virtual |
Set/get whether Build() uses the extended (second-ring, see vtkvmtkPolyDataManifoldExtendedNeighborhood) rather than plain one-ring neighborhood to construct the stencil. Default: on.
|
virtual |
Set/get whether Build() uses the extended (second-ring, see vtkvmtkPolyDataManifoldExtendedNeighborhood) rather than plain one-ring neighborhood to construct the stencil. Default: on.
|
protected |
Definition at line 73 of file vtkvmtkPolyDataManifoldStencil.cxx.
|
protected |
Definition at line 99 of file vtkvmtkPolyDataManifoldStencil.h.
|
protected |
Definition at line 101 of file vtkvmtkPolyDataManifoldStencil.h.