MOAB: Mesh Oriented datABase  (version 5.4.1)
AddQualityMetricTest Class Reference
+ Inheritance diagram for AddQualityMetricTest:
+ Collaboration diagram for AddQualityMetricTest:

Public Member Functions

 AddQualityMetricTest ()
void setUp ()

Protected Member Functions

virtual bool evaluate (PatchData &, size_t, double &, MsqError &)

Private Member Functions

 CPPUNIT_TEST_SUITE (AddQualityMetricTest)
 CPPUNIT_TEST (test_supported_types)
 CPPUNIT_TEST (test_ideal_element_eval)
 CPPUNIT_TEST (test_ideal_element_grad)
 CPPUNIT_TEST (test_ideal_element_hess)
 CPPUNIT_TEST (test_non_ideal_eval)
 CPPUNIT_TEST (test_valid_hessian)
 CPPUNIT_TEST (test_inverted_elements)
 CPPUNIT_TEST (test_degenerate_elements)
 CPPUNIT_TEST (test_get_evaluations)
 CPPUNIT_TEST (test_get_element_indices)
 CPPUNIT_TEST (test_get_fixed_indices)
 CPPUNIT_TEST (test_eval_with_indices)
 CPPUNIT_TEST (test_eval_with_gradient)
 CPPUNIT_TEST (test_eval_with_hessian)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

MsqError mErr
IdealWeightInverseMeanRatio m1
IdealWeightInverseMeanRatio m2
AddQualityMetric m

Detailed Description

Definition at line 206 of file CompositeMetricTest.cpp.


Constructor & Destructor Documentation

Definition at line 236 of file CompositeMetricTest.cpp.

References mMetric.

                           : m2( mErr, 2.0 ), m( &m1, &m2, mErr )
    {
        mMetric = &m;
    }

Member Function Documentation

bool AddQualityMetricTest::evaluate ( PatchData pd,
size_t  h,
double &  val,
MsqError err 
) [protected, virtual]

Implements CompositeMetricTestBase.

Definition at line 246 of file CompositeMetricTest.cpp.

References MSQ_ERRFALSE.

{
    double v1, v2;
    bool rval = true, rval1;

    rval1 = m1.evaluate( pd, h, v1, err );
    MSQ_ERRFALSE( err );
    if( !rval1 ) rval = false;

    rval1 = m2.evaluate( pd, h, v2, err );
    MSQ_ERRFALSE( err );
    if( !rval1 ) rval = false;

    val = v1 + v2;
    return rval;
}
void AddQualityMetricTest::setUp ( ) [inline]

Definition at line 240 of file CompositeMetricTest.cpp.

References CPPUNIT_ASSERT.

    {
        CPPUNIT_ASSERT( !mErr );
    }

Member Data Documentation

Definition at line 227 of file CompositeMetricTest.cpp.

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