14#ifndef vtkCellAttribute_h 
   15#define vtkCellAttribute_h 
   17#include "vtkCommonDataModelModule.h"  
   23#include <unordered_map> 
   25VTK_ABI_NAMESPACE_BEGIN
 
   34  using ArraysForCellType = std::unordered_map<vtkStringToken, vtkSmartPointer<vtkAbstractArray>>;
 
   35  using Arrays = std::unordered_map<vtkStringToken, ArraysForCellType>;
 
  113    int numberOfComponents);
 
  159    const std::map<vtkAbstractArray*, vtkAbstractArray*>& arrayRewrites = {});
 
  168  int NumberOfComponents = 1;
 
Abstract superclass for all arrays.
 
A function defined over the physical domain of a vtkCellGrid.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
virtual void ShallowCopy(vtkCellAttribute *other)
Copy data from an other attribute instance into this instance.
 
vtkStringToken AttributeType
 
virtual void DeepCopy(vtkCellAttribute *other, const std::map< vtkAbstractArray *, vtkAbstractArray * > &arrayRewrites={})
 
virtual vtkStringToken GetAttributeType() const
Return a (user-presentable) type for this attribute.
 
virtual int GetNumberOfComponents() const
Return the number of components this function provides at each point in space.
 
std::unordered_map< vtkStringToken, ArraysForCellType > Arrays
 
~vtkCellAttribute() override=default
 
vtkCellAttribute()=default
 
static vtkCellAttribute * New()
 
virtual vtkStringToken GetSpace() const
Return a token identifying the space containing all field values.
 
virtual vtkStringToken::Hash GetHash() const
Hash this attribute so it can be inserted into unordered containers.
 
virtual vtkStringToken GetName() const
Return the (user-presentable) name of this attribute.
 
virtual bool SetArraysForCellType(vtkStringToken cellType, const ArraysForCellType &arrays)
Set the arrays required to evaluate this attribute on cells of the given type.
 
virtual ArraysForCellType GetArraysForCellType(vtkStringToken cellType) const
Return the arrays required to evaluate this attribute on cells of the given type.
 
bool SetColormap(vtkScalarsToColors *colormap)
 
virtual bool Initialize(vtkStringToken name, vtkStringToken attributeType, vtkStringToken space, int numberOfComponents)
Initialize an attribute.
 
vtkScalarsToColors * GetColormap() const
 
vtkSmartPointer< vtkScalarsToColors > Colormap
 
std::unordered_map< vtkStringToken, vtkSmartPointer< vtkAbstractArray > > ArraysForCellType
 
Visualization data composed of cells of arbitrary type.
 
represent and manipulate attribute data in a dataset
 
a simple class to control print indentation
 
abstract base class for most VTK objects
 
Superclass for mapping scalar values to colors.
 
Hold a reference to a vtkObjectBase instance.
 
Represent a string by its integer hash.