VTK  9.4.20241103
vtkCellAttributeInformation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
27#ifndef vtkCellAttributeInformation_h
28#define vtkCellAttributeInformation_h
29
31#include "vtkFiltersCellGridModule.h" // For export macro.
32#include "vtkVector.h" // For API.
33
34#include <array>
35#include <string>
36
37VTK_ABI_NAMESPACE_BEGIN
38
39class VTKFILTERSCELLGRID_EXPORT vtkCellAttributeInformation : public vtkCellAttributeCalculator
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
48 virtual int GetBasisOrder() const = 0;
49
51 virtual int GetNumberOfBasisFunctions() const = 0;
52
58 virtual int GetBasisValueSize() const = 0;
59
69 virtual int GetDegreeOfFreedomSize() const = 0;
70
77 virtual bool GetSharedDegreesOfFreedom() const = 0;
78
84 virtual std::string GetBasisName() const = 0;
85
86protected:
88 ~vtkCellAttributeInformation() override = default;
89
90private:
92 void operator=(const vtkCellAttributeInformation&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif // vtkCellAttributeInformation_h
Perform a per-cell calculation on a vtkCellAttribute.
Provide information about a cell attribute's basis functions on one cell type.
~vtkCellAttributeInformation() override=default
virtual int GetNumberOfBasisFunctions() const =0
Return the number of basis functions for the cell type in question.
virtual int GetBasisOrder() const =0
Return the polynomial order of the interpolant.
virtual std::string GetBasisName() const =0
Return a name for a basis function specific to both the cell-metadata and the cell-attribute type.
virtual int GetBasisValueSize() const =0
Return the number of components generated for each basis function.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int GetDegreeOfFreedomSize() const =0
Return the number of times each basis function should be applied to obtain an attribute value.
virtual bool GetSharedDegreesOfFreedom() const =0
Return whether degrees of freedom are shared by multiple cells or not.
a simple class to control print indentation
Definition vtkIndent.h:108