11 #ifndef vtkHyperTreeGridGenerateFieldStrategy_h
12 #define vtkHyperTreeGridGenerateFieldStrategy_h
14 #include "vtkFiltersHyperTreeModule.h"
18 #include <unordered_map>
20 VTK_ABI_NAMESPACE_BEGIN
38 this->Superclass::PrintSelf(os, indent);
39 os << indent <<
"Array name: " << this->ArrayName <<
"\n";
40 os << indent <<
"Array type: "
41 << (this->ArrayType == vtkDataObject::AttributeTypes::CELL ?
"CELL_DATA" :
"FIELD_DATA")
53 virtual bool Initialize(std::unordered_map<std::string, Field>) {
return true; }
66 std::unordered_map<std::string, Field>)
87 assert(arrayType == vtkDataObject::AttributeTypes::CELL ||
89 this->ArrayType = arrayType;
111 VTK_ABI_NAMESPACE_END
112 #endif // vtkHyperTreeGridGenerateFieldStrategy_h
vtkSmartPointer< vtkHyperTreeGridGenerateFieldStrategy > strategy
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 SetArrayType(vtkDataObject::AttributeTypes arrayType)
Get/Set type of the data array.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
represent and manipulate cell attribute data
Objects for traversal a HyperTreeGrid.
virtual bool Initialize(std::unordered_map< std::string, Field >)
Reimplement to initialize internal structures based on the given input HTG.
std::string GetArrayName()
Get/Set the name of the array containing the data.
a simple class to control print indentation
abstract superclass for arrays of numeric data
Abstract class for field definition used by vtkHyperTreeGridGenerateFields.
void SetArrayName(std::string arrayName)
Get/Set the name of the array containing the data.
virtual void Initialize([[maybe_unused]] vtkHyperTreeGrid *inputHTG)
Reimplement to initialize internal structures based on the given input HTG.
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *)
Reimplement to compute the data for the current cell.
vtkDataObject::AttributeTypes GetArrayType()
Get/Set type of the data array.
AttributeTypes
Possible attribute types.
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *, vtkCellData *, std::unordered_map< std::string, Field >)
Reimplement to compute the data for the current cell.