21 #ifndef vtkCellAttributeCalculator_h
22 #define vtkCellAttributeCalculator_h
24 #include "vtkCommonDataModelModule.h"
28 #include <unordered_map>
30 VTK_ABI_NAMESPACE_BEGIN
43 template <
typename CalculatorType>
46 auto result = this->PrepareForGrid(cell, field);
47 return CalculatorType::SafeDownCast(result);
virtual vtkSmartPointer< vtkCellAttributeCalculator > PrepareForGrid(vtkCellMetadata *cell, vtkCellAttribute *field)
Subclasses should override this to create an instance of their class with member variables set to per...
Perform a per-cell calculation on a vtkCellAttribute.
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.
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< CalculatorType > Prepare(vtkCellMetadata *cell, vtkCellAttribute *field)
Return an instance of a calculator ready to work on cell and field.
Visualization data composed of cells of arbitrary type.
a simple class to control print indentation
A function defined over the physical domain of a vtkCellGrid.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...