35 #ifndef vtkCellGridResponders_h
36 #define vtkCellGridResponders_h
38 #include "vtkCommonDataModelModule.h"
44 #include <unordered_map>
46 VTK_ABI_NAMESPACE_BEGIN
62 template <
typename CellType,
typename QueryType,
typename ResponderType>
67 this->Responders[queryTypeKey][cellTypeKey] = responder;
82 std::unordered_map<vtkStringToken, vtkSmartPointer<vtkCellGridResponderBase>>>
Respond to a query on one particular type of cell.
Perform an operation on cells in a vtkCellMetadata instance.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RegisterQueryResponder(ResponderType *responder)
Register responder for processing a cell's data.
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
a simple class to control print indentation
Represent a string by its integer hash.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...