MOAB: Mesh Oriented datABase  (version 5.4.1)
ScaleWeight Class Reference

#include <TMPQualityMetricTest.hpp>

+ Inheritance diagram for ScaleWeight:
+ Collaboration diagram for ScaleWeight:

Public Member Functions

 ScaleWeight (double s)
double get_weight (PatchData &, size_t, Sample, MsqError &)
 Get target metric weight.

Public Attributes

double value

Detailed Description

Weight calculator used for testing. Returns constant weight.

Definition at line 106 of file TMPQualityMetricTest.hpp.

Constructor & Destructor Documentation

ScaleWeight::ScaleWeight ( double  s) [inline]

Definition at line 109 of file TMPQualityMetricTest.hpp.

: value( s ) {}

Member Function Documentation

double ScaleWeight::get_weight ( PatchData pd,
size_t  element,
Sample  sample,
MsqError err 
) [inline, virtual]

Get target metric weight.

pdThe current PatchData
elementThe index an element within the patch data.
sampleThe sample point in the element.

Implements MBMesquite::WeightCalculator.

Definition at line 110 of file TMPQualityMetricTest.hpp.

References value().

        return value;

Member Data Documentation

Definition at line 114 of file TMPQualityMetricTest.hpp.

List of all members.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines