35#ifndef vtkUnstructuredGridToCellGrid_h
36#define vtkUnstructuredGridToCellGrid_h
41#include "vtkFiltersCellGridModule.h"
47#include <unordered_map>
48#include <unordered_set>
51VTK_ABI_NAMESPACE_BEGIN
68 int inputCellType,
vtkStringToken preferredOutputType,
int priority);
109 : NumberOfCells(numberOfCells)
110 , CellTypePriority(priority)
116 int CellTypePriority{ 0 };
127 unsigned int FlatIndex{ 0 };
Perform an operation on cells in a vtkCellMetadata instance.
Visualization data composed of cells of arbitrary type.
abstract superclass for arrays of numeric data
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Allocate and hold a VTK object.
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.
Composite dataset that groups datasets as a collection.
Represent a string by its integer hash.
An internal query object for transcribing cells from input to output.
bool Finalize() override
Override this if your query-result state requires finalization.
TranscribeQuery()=default
static TranscribeQuery * New()
vtkNew< vtkUnstructuredGridFieldAnnotations > Annotations
Container for field annotations capture from the input unstructured grid.
bool SumOutputCounts()
Sum counts of all input cell types that generate the same output cell type.
void AddCellAttributes(vtkDataSetAttributes *attributes)
For each point- or cell-data array from the Input, create an output cell-attribute.
~TranscribeQuery() override=default
std::map< int, Claim > CellTypeMap
A map from input cell type to counts and the output cell type (if any).
bool Initialize() override
Override this if your query-result state requires initialization.
std::unordered_map< vtkStringToken, vtkIdType > OutputAllocations
A map from output cell type-token to output count.
Create a cell-grid that approximates a collection of vtkUnstructuredGrids.
virtual void AddPreferredOutputType(int inputCellType, vtkStringToken preferredOutputType, int priority)
void AddAnnotatedAttributes(vtkPartitionedDataSetCollection *input)
Look for IOSS (or other) annotations that aggregate arrays and add cell-attributes for them (marking ...
vtkUnstructuredGridToCellGrid()
vtkNew< TranscribeQuery > Request
~vtkUnstructuredGridToCellGrid() override=default
virtual bool ProcessUnstructuredGrid(vtkUnstructuredGrid *input, vtkCellGrid *output)
Transcribe a single unstructured grid from the input collection.
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *ouInfo) override
Methods for subclasses to override to handle different pipeline requests.
static vtkUnstructuredGridToCellGrid * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dataset represents arbitrary combinations of all possible cell types
A key for indexing annotations.
Configuration hints for a partitioned dataset collection entry.
Gloms of multiple field names that represent vectors or tensors.
A claim on input vtkCell types registered by an output vtkCellMetadata subclass.
Claim & operator=(const Claim &)=default
Claim(const Claim &)=default
Claim(vtkIdType numberOfCells, int priority, vtkStringToken cellType)