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