35 #ifndef vtkQuadratureSchemeDefinition_h
36 #define vtkQuadratureSchemeDefinition_h
38 #include "vtkCommonDataModelModule.h"
85 int cellType,
int numberOfNodes,
int numberOfQuadraturePoints,
double* shapeFunctionWeights);
89 void Initialize(
int cellType,
int numberOfNodes,
int numberOfQuadraturePoints,
90 double* shapeFunctionWeights,
double* quadratureWeights);
121 int idx = quadraturePointId * this->NumberOfNodes;
122 return this->ShapeFunctionWeights + idx;
139 void ReleaseResources();
144 int SecureResources();
149 void SetShapeFunctionWeights(
const double* W);
154 void SetQuadratureWeights(
const double* W);
165 int NumberOfQuadraturePoints;
166 double* ShapeFunctionWeights;
167 double* QuadratureWeights;
a simple class to control print indentation
abstract base class for most VTK objects
An Elemental data type that holds a definition of a numerical quadrature scheme.
int SaveState(vtkXMLDataElement *e)
Put the object into an XML representation.
void Initialize(int cellType, int numberOfNodes, int numberOfQuadraturePoints, double *shapeFunctionWeights)
Initialize the object allocating resources as needed.
const double * GetShapeFunctionWeights(int quadraturePointId) const
Get the array of shape function weights associated with a single quadrature point.
static vtkInformationStringKey * QUADRATURE_OFFSET_ARRAY_NAME()
void Clear()
Release all allocated resources and set the object to an uninitialized state.
~vtkQuadratureSchemeDefinition() override
friend istream & operator>>(istream &s, vtkQuadratureSchemeDefinition &d)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetQuadratureKey() const
Access to an alternative key.
int GetNumberOfQuadraturePoints() const
Get the number of quadrature points associated with the scheme.
static vtkQuadratureSchemeDefinition * New()
New object in an unsuable state.
void Initialize(int cellType, int numberOfNodes, int numberOfQuadraturePoints, double *shapeFunctionWeights, double *quadratureWeights)
Initialize the object allocating resources as needed.
const double * GetShapeFunctionWeights() const
Get the array of shape function weights.
int DeepCopy(const vtkQuadratureSchemeDefinition *other)
Deep copy.
friend ostream & operator<<(ostream &s, const vtkQuadratureSchemeDefinition &d)
vtkQuadratureSchemeDefinition()
const double * GetQuadratureWeights() const
Access to the quadrature weights.
int RestoreState(vtkXMLDataElement *e)
Restore the object from an XML representation.
int GetCellType() const
Access the VTK cell type id.
static vtkInformationQuadratureSchemeDefinitionVectorKey * DICTIONARY()
int GetNumberOfNodes() const
Get the number of nodes associated with the interpolation.
Represents an XML element and those nested inside.