|
VMTK
|
Query the neighborhood surrounding the set point id in an data set item. More...
#include <vtkvmtkNeighborhood.h>
Public Types | |
| 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) |
| vtkvmtkNeighborhood * | NewInstance () const |
| virtual bool | GetIsBoundary () |
| vtkIdType | GetNumberOfPoints () |
| vtkIdType | GetPointId (vtkIdType i) |
| vtkIdType * | GetPointer (vtkIdType i) |
| virtual void | Build () override=0 |
| virtual void | DeepCopy (vtkvmtkItem *src) override |
| 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 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 |
| 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 | |
| vtkIdType | NPoints |
| vtkIdType * | PointIds |
| bool | IsBoundary |
| Protected Attributes inherited from vtkvmtkDataSetItem | |
| vtkDataSet * | DataSet |
| vtkIdType | DataSetPointId |
| int | ReallocateOnBuild |
Query the neighborhood surrounding the set point id in an data set item.
vtkvmtkNeighborhood is the abstract base class for a data-set item representing the set of point ids topologically adjacent to DataSetPointId (a "1-ring" or similar local neighborhood, depending on the concrete subclass – e.g. poly data cell-adjacency, or manifold-surface vertex rings). Build() (implemented by subclasses) fills PointIds with the NPoints neighboring point ids and sets IsBoundary if DataSetPointId lies on a mesh boundary. Instances are normally created and owned in bulk by a vtkvmtkNeighborhoods collection, one per point of a data set, and consumed by finite-difference/finite-element stencil classes (see vtkvmtkStencil) to compute derivative weights.
Definition at line 43 of file vtkvmtkNeighborhood.h.
Definition at line 47 of file vtkvmtkNeighborhood.h.
|
protected |
Definition at line 27 of file vtkvmtkNeighborhood.cxx.
|
protected |
Definition at line 34 of file vtkvmtkNeighborhood.cxx.
|
static |
|
virtual |
Reimplemented from vtkvmtkDataSetItem.
Reimplemented in vtkvmtkEmptyNeighborhood, vtkvmtkEmptyStencil, vtkvmtkPolyDataAreaWeightedUmbrellaStencil, vtkvmtkPolyDataFELaplaceBeltramiStencil, vtkvmtkPolyDataFVFELaplaceBeltramiStencil, vtkvmtkPolyDataGradientStencil, vtkvmtkPolyDataLaplaceBeltramiStencil, vtkvmtkPolyDataManifoldExtendedNeighborhood, vtkvmtkPolyDataManifoldNeighborhood, vtkvmtkPolyDataManifoldStencil, vtkvmtkPolyDataNeighborhood, vtkvmtkPolyDataUmbrellaStencil, vtkvmtkStencil, and vtkvmtkUnstructuredGridNeighborhood.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkDataSetItem.
Reimplemented in vtkvmtkEmptyNeighborhood, vtkvmtkEmptyStencil, vtkvmtkPolyDataAreaWeightedUmbrellaStencil, vtkvmtkPolyDataFELaplaceBeltramiStencil, vtkvmtkPolyDataFVFELaplaceBeltramiStencil, vtkvmtkPolyDataGradientStencil, vtkvmtkPolyDataLaplaceBeltramiStencil, vtkvmtkPolyDataManifoldExtendedNeighborhood, vtkvmtkPolyDataManifoldNeighborhood, vtkvmtkPolyDataManifoldStencil, vtkvmtkPolyDataNeighborhood, vtkvmtkPolyDataUmbrellaStencil, vtkvmtkStencil, and vtkvmtkUnstructuredGridNeighborhood.
| vtkvmtkNeighborhood * vtkvmtkNeighborhood::NewInstance | ( | ) | const |
|
virtual |
Get whether DataSetPointId lies on a boundary of the data set (meaning, for concrete subclasses, that it does not have a full/closed neighborhood). Valid only after Build() has been called.
|
inline |
Get the number of neighboring point ids stored in this neighborhood. Valid only after Build() has been called.
Definition at line 60 of file vtkvmtkNeighborhood.h.
|
inline |
Get the i-th neighboring point id (0 <= i < GetNumberOfPoints()).
Definition at line 65 of file vtkvmtkNeighborhood.h.
|
inline |
Get a pointer into the internal point id array starting at index i, e.g. for passing a contiguous run of ids to a VTK API expecting a raw vtkIdType array.
Definition at line 71 of file vtkvmtkNeighborhood.h.
|
overridepure virtual |
Build the neighborhood.
Implements vtkvmtkDataSetItem.
Implemented in vtkvmtkEmptyNeighborhood, vtkvmtkEmptyStencil, vtkvmtkPolyDataAreaWeightedUmbrellaStencil, vtkvmtkPolyDataGradientStencil, vtkvmtkPolyDataLaplaceBeltramiStencil, vtkvmtkPolyDataManifoldExtendedNeighborhood, vtkvmtkPolyDataManifoldNeighborhood, vtkvmtkPolyDataManifoldStencil, vtkvmtkPolyDataNeighborhood, vtkvmtkPolyDataUmbrellaStencil, vtkvmtkStencil, and vtkvmtkUnstructuredGridNeighborhood.
|
overridevirtual |
Standard DeepCopy method.
Reimplemented from vtkvmtkDataSetItem.
Reimplemented in vtkvmtkStencil.
Definition at line 59 of file vtkvmtkNeighborhood.cxx.
|
protected |
|
protected |
Definition at line 89 of file vtkvmtkNeighborhood.h.
|
protected |
Definition at line 90 of file vtkvmtkNeighborhood.h.
|
protected |
Definition at line 91 of file vtkvmtkNeighborhood.h.