35#ifndef vtkCellGridResponders_h
36#define vtkCellGridResponders_h
38#include "vtkCommonDataModelModule.h"
44#include <unordered_map>
46VTK_ABI_NAMESPACE_BEGIN
62 template <
typename CellType,
typename QueryType,
typename ResponderType>
67 this->Responders[queryTypeKey][cellTypeKey] = responder;
82 std::unordered_map<vtkStringToken, vtkSmartPointer<vtkCellGridResponderBase>>>
Perform an operation on cells in a vtkCellMetadata instance.
Respond to a query on one particular type of cell.
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
std::unordered_map< vtkStringToken, std::unordered_map< vtkStringToken, vtkSmartPointer< vtkCellGridResponderBase > > > Responders
bool Query(vtkCellMetadata *cellType, vtkCellGridQuery *query)
Invoke a responder for the given query and cell type.
void RegisterQueryResponder(ResponderType *responder)
Register responder for processing a cell's data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellGridResponders()=default
~vtkCellGridResponders() override=default
static vtkCellGridResponders * New()
a simple class to control print indentation
abstract base class for most VTK objects
Represent a string by its integer hash.