26 #ifndef vtkCellGridToUnstructuredGrid_h
27 #define vtkCellGridToUnstructuredGrid_h
31 #include "vtkFiltersCellGridModule.h"
36 #include <unordered_map>
38 VTK_ABI_NAMESPACE_BEGIN
53 void PrintSelf(ostream& os,
vtkIndent indent)
override;
80 GenerateConnectivity =
85 bool Initialize()
override;
86 void StartPass()
override;
87 bool Finalize()
override;
120 return this->ConnectivityTransforms[cellType];
140 ~
Query()
override =
default;
161 void operator=(
const Query&) =
delete;
183 VTK_ABI_NAMESPACE_END
184 #endif // vtkCellGridToUnstructuredGrid_h
Perform an operation on cells in a vtkCellMetadata instance.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
PassType
Passes performed by the query.
A placeholder for space to be occupied in a vtkCellArray.
vtkCellGridToUnstructuredGrid()=default
static vtkUnstructuredGridAlgorithm * New()
std::unordered_map< vtkStringToken, OutputAllocation > OutputAllocations
A map used to allocate space for the unstructured-grid's vtkCellArray.
std::map< vtkIdType, int > ConnectivityCountType
This map is used to count the number of references to output points.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
std::vector< float > ConnectivityWeightType
The reciprocal of this->GetConnectivityCount().
std::unordered_map< vtkIdType, vtkIdType > ConnectivityTransformType
Return a map of per-cell-type point IDs to unstructured-grid point IDs.
~vtkCellGridToUnstructuredGrid() override=default
ConnectivityWeightType ConnectivityWeights
The reciprocal of every entry in ConnectivityCount.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Visualization data composed of cells of arbitrary type.
vtkIncrementalOctreePointLocator * GetLocator()
Return the point-locator.
vtkUnstructuredGrid * GetOutput() const
Get the request's output cell-grid.
a simple class to control print indentation
ConnectivityCountType & GetConnectivityCount()
Create an unstructured grid that approximates a cell-grid.
A function defined over the physical domain of a vtkCellGrid.
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
vtkCellGrid * GetInput() const
Get the request's input cell-grid.
ConnectivityWeightType & GetConnectivityWeights()
Represent a string by its integer hash.
vtkNew< vtkIncrementalOctreePointLocator > Locator
A locator used to insert cell-grid points into a vtkPoints instance.
Superclass for algorithms that produce only unstructured grid as output.
const OutputAllocations & GetOutputAllocations() const
std::unordered_map< vtkStringToken, ConnectivityTransformType > ConnectivityTransforms
Connectivity transforms per input cell type.
OutputAllocations OutputOffsets
Map output cell-typename to input cell-typename to count (offset after the AllocateOutputs pass has r...
ConnectivityCountType ConnectivityCount
Number of cells referencing a given output point.
ConnectivityTransformType & GetConnectivityTransform(vtkStringToken cellType)
OutputAllocations & GetOutputAllocations()
Return the data structure used in the CountOutputs pass.
std::unordered_map< vtkCellAttribute *, vtkDataArray * > AttributeMap
bool IsAnotherPassRequired() override
Force three passes through this query.
A query corresponding to this algorithm.
Incremental octree in support of both point location and point insertion.