VTK  9.7.20261103
vtkVoronoiClassifier2D Struct Reference

#include <vtkVoronoiCore2D.h>

Detailed Description

Implementation note about the compositor.

Depending on which templated functors are being used, the compositor must provide some methods and classes for successful usage. This includes defining the composition information to extract (vtkCompositeInfo); the vector of compositing information across all point generators (vtkCompositeInformation); and methods to initialize (Initialize()) and finalize (Finalize()) the compositor. Also naming conventions are typically used when gathering thread local data–for example Points and TopoCoords are local data members that represent Voronoi tile/hull points, and topological coordinates. To learn more (by way of examples), view the VTK tests TestVoronoiCore2D.cxx and TestVoronoiCore3D.cxx, and the concrete VTK filters vtkVoronoiFlower2D, vtkVoronoiFlower3D, and vtkGeneralizedSurfaceNets3D. This is the default functor that classifies the spokes and associated point regions as they are processed. (Spokes are edges that represent the connection between Voronoi tile edge neighbors.) This functor is used in the vtkVoronoiCore2D classes as the default TClassification template parameter. It can be specialized (via templating) for more complex spoke/face classification. All classifiers must provide the methods AddAdjacencyInformation(), IsInsideRegion(), IsSameRegion(), and Initialize() as defined below. Note that the vtkSpokeClassification (found in vtkVoronoiCore.h) specifies the possible classification values.

Definition at line 145 of file vtkVoronoiCore2D.h.

Public Member Functions

 vtkVoronoiClassifier2D ()
 vtkVoronoiClassifier2D (const int *regions)
void Initialize (vtkVoronoiClassifier2D *c)
const vtkVoronoiSpoke * AddAdjacencyInformation (vtkVoronoiTile &tile, vtkVoronoiWheelsType &wheels, vtkVoronoiSpokesType &spokes, int &numSpokes, int &maxPoints)
bool IsInsideRegion (vtkIdType ptId)
bool IsSameRegion (vtkIdType ptId, vtkIdType neiId)

Public Attributes

const int * Regions

Constructor & Destructor Documentation

◆ vtkVoronoiClassifier2D() [1/2]

vtkVoronoiClassifier2D::vtkVoronoiClassifier2D ( )
inline

Definition at line 151 of file vtkVoronoiCore2D.h.

◆ vtkVoronoiClassifier2D() [2/2]

vtkVoronoiClassifier2D::vtkVoronoiClassifier2D ( const int * regions)
inline

Definition at line 155 of file vtkVoronoiCore2D.h.

Member Function Documentation

◆ Initialize()

void vtkVoronoiClassifier2D::Initialize ( vtkVoronoiClassifier2D * c)
inline

Definition at line 161 of file vtkVoronoiCore2D.h.

◆ AddAdjacencyInformation()

const vtkVoronoiSpoke * vtkVoronoiClassifier2D::AddAdjacencyInformation ( vtkVoronoiTile & tile,
vtkVoronoiWheelsType & wheels,
vtkVoronoiSpokesType & spokes,
int & numSpokes,
int & maxPoints )

◆ IsInsideRegion()

bool vtkVoronoiClassifier2D::IsInsideRegion ( vtkIdType ptId)
inline

Definition at line 177 of file vtkVoronoiCore2D.h.

◆ IsSameRegion()

bool vtkVoronoiClassifier2D::IsSameRegion ( vtkIdType ptId,
vtkIdType neiId )
inline

Definition at line 192 of file vtkVoronoiCore2D.h.

Member Data Documentation

◆ Regions

const int* vtkVoronoiClassifier2D::Regions

Definition at line 148 of file vtkVoronoiCore2D.h.


The documentation for this struct was generated from the following file: