11#ifndef vtkHyperTreeGridGenerateFieldStrategy_h
12#define vtkHyperTreeGridGenerateFieldStrategy_h
14#include "vtkFiltersHyperTreeModule.h"
18#include <unordered_map>
20VTK_ABI_NAMESPACE_BEGIN
38 this->Superclass::PrintSelf(os, indent);
39 os << indent <<
"Array name: " << this->ArrayName <<
"\n";
40 os << indent <<
"Array type: "
53 virtual bool Initialize(std::unordered_map<std::string, Field>) {
return true; }
66 std::unordered_map<std::string, Field>)
89 this->ArrayType = arrayType;
99 void SetArrayName(std::string arrayName) { this->ArrayName = arrayName; }
represent and manipulate cell attribute data
abstract superclass for arrays of numeric data
AttributeTypes
Possible attribute types.
Abstract class for field definition used by vtkHyperTreeGridGenerateFields.
vtkHyperTreeGridGenerateFieldStrategy()=default
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *)
Reimplement to compute the data for the current cell.
vtkDataObject::AttributeTypes GetArrayType()
Get/Set type of the data array.
vtkAbstractTypeMacro(vtkHyperTreeGridGenerateFieldStrategy, vtkObject)
std::string GetArrayName()
Get/Set the name of the array containing the data.
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *, vtkCellData *, std::unordered_map< std::string, Field >)
Reimplement to compute the data for the current cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkDataArray * GetAndFinalizeArray()=0
Reimplement to build the output array from internally stored values.
virtual void Initialize(vtkHyperTreeGrid *vtkMaybeUnused(inputHTG))
Reimplement to initialize internal structures based on the given input HTG.
void SetArrayType(vtkDataObject::AttributeTypes arrayType)
Get/Set type of the data array.
void SetArrayName(std::string arrayName)
Get/Set the name of the array containing the data.
virtual bool Initialize(std::unordered_map< std::string, Field >)
Reimplement to initialize internal structures based on the given input HTG.
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< vtkHyperTreeGridGenerateFieldStrategy > strategy