34 #ifndef vtkQuadratureSchemeDefinition_h
35 #define vtkQuadratureSchemeDefinition_h
37 #include "vtkCommonDataModelModule.h"
38 #include "vtkObject.h"
40 class vtkInformationQuadratureSchemeDefinitionVectorKey;
41 class vtkInformationStringKey;
42 class vtkXMLDataElement;
49 void PrintSelf(ostream& os, vtkIndent indent);
50 static vtkInformationQuadratureSchemeDefinitionVectorKey* DICTIONARY();
51 static vtkInformationStringKey* QUADRATURE_OFFSET_ARRAY_NAME();
62 int SaveState(vtkXMLDataElement *e);
64 int RestoreState(vtkXMLDataElement *e);
72 void Initialize(
int cellType,
74 int numberOfQuadraturePoints,
75 double *shapeFunctionWeights);
79 void Initialize(
int cellType,
81 int numberOfQuadraturePoints,
82 double *shapeFunctionWeights,
83 double *quadratureWeights);
103 int idx=quadraturePointId*this->NumberOfNodes;
104 return this->ShapeFunctionWeights+idx;
116 void ReleaseResources();
118 int SecureResources();
121 void SetShapeFunctionWeights(
const double *W);
124 void SetQuadratureWeights(
const double *W);
135 int NumberOfQuadraturePoints;
136 double *ShapeFunctionWeights;
137 double *QuadratureWeights;
int GetQuadratureKey() const
int GetNumberOfQuadraturePoints() const
const double * GetShapeFunctionWeights() const
int GetNumberOfNodes() const
VTKCOMMONDATAMODEL_EXPORT ostream & operator<<(ostream &out, vtkEdgeBase e)
const double * GetQuadratureWeights() const
const double * GetShapeFunctionWeights(int quadraturePointId) const