VTK  9.6.20260215
vtkVoronoiClassifier3D Struct Reference

Implementation note about the compositor. More...

#include <vtkVoronoiCore3D.h>

Public Member Functions

 vtkVoronoiClassifier3D ()
 
 vtkVoronoiClassifier3D (const int *regions)
 
void Initialize (vtkVoronoiClassifier3D *c)
 
const vtkVoronoiSpokeAddAdjacencyInformation (vtkVoronoiHull &hull, vtkVoronoiWheelsType &wheels, vtkVoronoiSpokesType &spokes, int &numSpokes, int &maxPoints, int &maxFaces)
 
bool IsInsideRegion (vtkIdType ptId)
 
bool IsSameRegion (vtkIdType ptId, vtkIdType neiId)
 

Public Attributes

const int * Regions
 

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 TestVoronoiCore3D.cxx and the concrete VTK filters vtkVoronoi3D 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 hull face neighbors.) This functor is used in the vtkVoronoiCore3D 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 140 of file vtkVoronoiCore3D.h.

Constructor & Destructor Documentation

◆ vtkVoronoiClassifier3D() [1/2]

vtkVoronoiClassifier3D::vtkVoronoiClassifier3D ( )
inline

Definition at line 146 of file vtkVoronoiCore3D.h.

◆ vtkVoronoiClassifier3D() [2/2]

vtkVoronoiClassifier3D::vtkVoronoiClassifier3D ( const int * regions)
inline

Definition at line 150 of file vtkVoronoiCore3D.h.

Member Function Documentation

◆ Initialize()

void vtkVoronoiClassifier3D::Initialize ( vtkVoronoiClassifier3D * c)
inline

Definition at line 156 of file vtkVoronoiCore3D.h.

◆ AddAdjacencyInformation()

const vtkVoronoiSpoke * vtkVoronoiClassifier3D::AddAdjacencyInformation ( vtkVoronoiHull & hull,
vtkVoronoiWheelsType & wheels,
vtkVoronoiSpokesType & spokes,
int & numSpokes,
int & maxPoints,
int & maxFaces )

◆ IsInsideRegion()

bool vtkVoronoiClassifier3D::IsInsideRegion ( vtkIdType ptId)
inline

Definition at line 172 of file vtkVoronoiCore3D.h.

◆ IsSameRegion()

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

Definition at line 187 of file vtkVoronoiCore3D.h.

Member Data Documentation

◆ Regions

const int* vtkVoronoiClassifier3D::Regions

Definition at line 143 of file vtkVoronoiCore3D.h.


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