103#ifndef vtkCellGridEvaluator_h
104#define vtkCellGridEvaluator_h
110#include "vtkTypeUInt32Array.h"
111#include "vtkTypeUInt64Array.h"
114#include <unordered_map>
116VTK_ABI_NAMESPACE_BEGIN
186 vtkTypeUInt64Array* cellIndices,
vtkDataArray* pointParameters);
255 std::unordered_map<vtkStringToken, AllocationsByCellType>
Allocations;
A function defined over the physical domain of a vtkCellGrid.
bool Finalize() override
Invoked during evaluation after all cell-grid responders are run.
vtkIdType NumberOfOutputPoints
The total number of output points (across all cell types).
~vtkCellGridEvaluator() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InterpolateCellParameters(vtkTypeUInt32Array *cellTypes, vtkTypeUInt64Array *cellOffsets, vtkTypeUInt64Array *cellIndices, vtkDataArray *pointParameters)
Configure the query to run only the interpolator.
void AllocateClassificationOutput()
vtkTypeUInt32Array * ClassifierCellTypes
vtkCellAttribute * CellAttribute
std::unordered_map< vtkStringToken, AllocationsByCellType > Allocations
Internal state used during classification to compute the size of the output arrays.
vtkNew< vtkStaticPointLocator > Locator
void InterpolatePoints(vtkDataArray *points)
Configure the query to run the classifier followed by the interpolator.
static vtkCellGridEvaluator * New()
vtkTypeUInt64Array * ClassifierCellIndices
vtkDataArray * InputPoints
Phases
Indicate which phases of the query to perform.
void AllocatePositionOutput()
void StartPass() override
Invoked at the start of each pass.
vtkGetEnumMacro(PhasesToPerform, vtkCellGridEvaluator::Phases)
Return what work the query has been configured to do.
void AllocateInterpolationOutput()
Phases PhasesToPerform
Which of the phases are the arrays above configured to perform?
bool IsAnotherPassRequired() override
Invoked at the end of each pass.
vtkTypeUInt64Array * ClassifierCellOffsets
AllocationsByCellType & GetAllocationsForCellType(vtkStringToken cellType)
Return a reference to a cellType's allocated input points for responders to fill out.
bool Initialize() override
Invoked during evaluation before any cell-grid responders are run.
void ClassifyPoints(vtkDataArray *points)
Configure the query to run the classifier but not the interpolator.
vtkTypeUInt64Array * ClassifierPointIDs
vtkDataArray * InterpolatedValues
vtkDataArray * ClassifierPointParameters
vtkCellGridQuery()=default
Visualization data composed of cells of arbitrary type.
a simple class to control print indentation
Allocate and hold a VTK object.
concrete class for storing a set of points
quickly locate points in 3-space
Represent a string by its integer hash.
Hold per-type input point assignment and an offset for output arrays.
vtkIdType GetNumberOfOutputPoints() const
std::map< vtkIdType, std::set< vtkIdType > > InputPoints