3#ifndef vtkCellGridIsocontourPoints_h
4#define vtkCellGridIsocontourPoints_h
9#include "vtkFiltersCellGridModule.h"
15#include <unordered_map>
18VTK_ABI_NAMESPACE_BEGIN
177 std::vector<std::vector<vtk::basis::bezier::CriticalPoint>> isocontourPointsByCell);
218 std::unordered_map<vtkStringToken, std::vector<std::vector<vtk::basis::bezier::CriticalPoint>>>
231 void operator=(
const Query&) =
delete;
254 vtkBooleanMacro(InterpolateAttributes,
bool);
262 vtkBooleanMacro(ComputeGradients,
bool);
271 vtkBooleanMacro(Include1DCells,
bool);
274 vtkBooleanMacro(Include2DCells,
bool);
277 vtkBooleanMacro(Include3DCells,
bool);
A function defined over the physical domain of a vtkCellGrid.
A cell-grid query for locating points on a cell-attribute's isocontour.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetCellAttribute(vtkCellAttribute *)
bool IsAnotherPassRequired() override
Force three passes through this query, and a fourth if the attributes are to be evaluated.
vtkMTimeType GetMTime() override
Return the MTime also considering the cell-attribute.
PassType
The passes a responder is run through: first search every cell of its type (caching the results),...
void SetIsocontourPoints(vtkStringToken cellTypeName, std::vector< std::vector< vtk::basis::bezier::CriticalPoint > > isocontourPointsByCell)
Called by a responder during the CountOutputs pass to cache the isocontour points found for every cel...
void Allocate()
Size the output's points and point-data arrays, assign each cell type a contiguous slice of them (Get...
const std::vector< std::vector< vtk::basis::bezier::CriticalPoint > > & GetIsocontourPoints(vtkStringToken cellTypeName) const
Return the isocontour points SetIsocontourPoints() cached for cellTypeName, or an empty vector if tha...
std::unordered_map< vtkStringToken, std::vector< std::vector< vtk::basis::bezier::CriticalPoint > > > IsocontourPoints
vtkIdType GetCellOffset(vtkIdType cellTypeOffset, vtkIdType cellId) const
Return the output index Allocate() assigned to the isocontour points of cell cellId (local to its typ...
int ParticleRelaxationIterations
bool Initialize() override
Override this if your query-result state requires initialization.
vtkCellAttribute * CellAttribute
friend class vtkCellGridIsocontourPoints
bool InterpolateAttributes
vtkIdType GetCellTypeOffset(vtkStringToken cellTypeName) const
Return cellTypeName's own base index into GetCellOffset()'s dense numbering.
vtkSmartPointer< vtkIdTypeArray > CellOffsets
Per-cell (dense, every type, including cells with none) prefix sum of isocontour-point counts,...
vtkPolyData * GetOutput() const
Get the request's output point set.
std::unordered_map< vtkStringToken, vtkIdType > CellIndexBase
Each cell type's own base index into CellOffsets' dense, flattened (type, local cell ID) numbering.
bool IncludesDimension(int dimension) const
Return whether cells of dimension are to be searched.
void SetInterpolateAttributes(bool interpolate)
~vtkCellGridIsocontourPoints() override=default
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
This is called by the superclass.
void SetInclude3DCells(bool include)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
bool GetComputeGradients()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetComputeGradients(bool compute)
bool GetInterpolateAttributes()
static vtkCellGridIsocontourPoints * New()
int GetParticleRelaxationIterations()
void SetIsovalue(double isovalue)
Set/get the isovalue.
vtkMTimeType GetMTime() override
Return the MTime also considering the query.
void SetInclude1DCells(bool include)
void SetInclude2DCells(bool include)
void SetCellAttribute(vtkCellAttribute *attribute)
Set/get the cell-attribute whose isocontour should be located.
vtkCellGridIsocontourPoints()
void SetParticleRelaxationIterations(int iterations)
vtkCellGridQuery()=default
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Allocate and hold a VTK object.
concrete dataset represents vertices, lines, polygons, and triangle strips
Hold a reference to a vtkObjectBase instance.
Represent a string by its integer hash.
vtkTypeUInt32 vtkMTimeType