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

Public Member Functions

 MultiplyQualityMetricTest ()
void setUp ()

Protected Member Functions

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

Private Member Functions

 CPPUNIT_TEST_SUITE (MultiplyQualityMetricTest)
 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
MultiplyQualityMetric m

Detailed Description

Definition at line 267 of file CompositeMetricTest.cpp.


Constructor & Destructor Documentation

Definition at line 296 of file CompositeMetricTest.cpp.

References mMetric.

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

Member Function Documentation

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

Implements CompositeMetricTestBase.

Definition at line 306 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;
}

Definition at line 300 of file CompositeMetricTest.cpp.

References CPPUNIT_ASSERT.

    {
        CPPUNIT_ASSERT( !mErr );
    }

Member Data Documentation

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