14 #ifndef vtkCellAttribute_h
15 #define vtkCellAttribute_h
17 #include "vtkCommonDataModelModule.h"
23 #include <unordered_map>
25 VTK_ABI_NAMESPACE_BEGIN
34 using ArraysForCellType = std::unordered_map<vtkStringToken, vtkSmartPointer<vtkAbstractArray>>;
35 using Arrays = std::unordered_map<vtkStringToken, ArraysForCellType>;
113 int numberOfComponents);
126 virtual ArraysForCellType GetArraysForCellType(
vtkStringToken cellType)
const;
137 virtual bool SetArraysForCellType(
vtkStringToken cellType,
const ArraysForCellType& arrays);
159 const std::map<vtkAbstractArray*, vtkAbstractArray*>& arrayRewrites = {});
168 int NumberOfComponents = 1;
178 VTK_ABI_NAMESPACE_END
virtual vtkStringToken GetName() const
Return the (user-presentable) name of this attribute.
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.
std::unordered_map< vtkStringToken, vtkSmartPointer< vtkAbstractArray >> ArraysForCellType
vtkSmartPointer< vtkScalarsToColors > Colormap
Abstract superclass for all arrays.
virtual int GetNumberOfComponents() const
Return the number of components this function provides at each point in space.
virtual vtkStringToken GetAttributeType() const
Return a (user-presentable) type for this attribute.
virtual vtkStringToken GetSpace() const
Return a token identifying the space containing all field values.
Superclass for mapping scalar values to colors.
vtkStringToken AttributeType
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.
represent and manipulate attribute data in a dataset
Represent a string by its integer hash.
std::unordered_map< vtkStringToken, ArraysForCellType > Arrays
vtkScalarsToColors * GetColormap() const
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...