19 #ifndef vtkCellGridCellCenters_h
20 #define vtkCellGridCellCenters_h
23 #include "vtkFiltersCellGridModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
39 void PrintSelf(ostream& os,
vtkIndent indent)
override;
43 std::unordered_map<vtkStringToken, std::unordered_map<vtkStringToken, vtkIdType>>;
52 bool Initialize()
override;
64 void AddOutputCenters(
78 ~
Query()
override =
default;
87 std::unordered_map<vtkCellAttribute*, vtkCellAttribute*>
AttributeMap;
91 void operator=(
const Query&) =
delete;
112 VTK_ABI_NAMESPACE_END
113 #endif // vtkCellGridCellCenters_h
Perform an operation on cells in a vtkCellMetadata instance.
Output a vertex cell at the center of each input cell.
vtkCellGrid * GetInput() const
Get the request's input cell-grid.
static vtkCellGridAlgorithm * New()
~vtkCellGridCellCenters() override=default
const OutputAllocations & GetOutputAllocations() const
OutputAllocations OutputOffsets
Map output cell-typename to input cell-typename to count (offset after the AllocateOutputs pass has r...
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
OutputAllocations & GetOutputAllocations()
Return the data structure that AddOutputCenters() modifies in the PassType::CountOutputs pass...
Visualization data composed of cells of arbitrary type.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
A function defined over the physical domain of a vtkCellGrid.
std::unordered_map< vtkStringToken, std::unordered_map< vtkStringToken, vtkIdType >> OutputAllocations
A map used to allocate output vertex cells for various input cell types.
vtkCellGrid * GetOutput() const
Get the request's output cell-grid.
Represent a string by its integer hash.
A query corresponding to this algorithm.
Allocate and hold a VTK object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::unordered_map< vtkCellAttribute *, vtkCellAttribute * > AttributeMap
bool IsAnotherPassRequired() override
Force three passes through this query.