MOAB: Mesh Oriented datABase  (version 5.3.0)
LVQDTargetTest::ConstantTarget Class Reference
+ Inheritance diagram for LVQDTargetTest::ConstantTarget:
+ Collaboration diagram for LVQDTargetTest::ConstantTarget:

Public Member Functions

 ConstantTarget (MsqMatrix< 3, 3 > val3D, MsqMatrix< 3, 2 > val2D)
 ConstantTarget (MsqMatrix< 3, 3 > val3D, MsqMatrix< 2, 2 > val2D)
 ConstantTarget (double C, bool surf)
 ConstantTarget (MsqMatrix< 3, 3 > val3D)
 ConstantTarget (MsqMatrix< 3, 2 > val2D)
 ConstantTarget (MsqMatrix< 2, 2 > val2D)
virtual bool get_3D_target (PatchData &, size_t, Sample, MsqMatrix< 3, 3 > &result, MsqError &err)
 Get a target matrix.
virtual bool get_surface_target (PatchData &, size_t, Sample, MsqMatrix< 3, 2 > &result, MsqError &err)
 Get a target matrix.
virtual bool get_2D_target (PatchData &, size_t, Sample, MsqMatrix< 2, 2 > &result, MsqError &err)
 Get a target matrix.
virtual bool have_surface_orient () const
 Use 3x2 W for surface elements if true, 2x2 W if false.

Private Attributes

MsqMatrix< 3, 3 > target3D
MsqMatrix< 3, 2 > targetSurf
MsqMatrix< 2, 2 > target2D
bool have3D
bool haveSurf
bool have2D
bool flagError

Detailed Description

Definition at line 93 of file LVQDTargetTest.cpp.


Constructor & Destructor Documentation

LVQDTargetTest::ConstantTarget::ConstantTarget ( MsqMatrix< 3, 3 >  val3D,
MsqMatrix< 3, 2 >  val2D 
) [inline]

Definition at line 103 of file LVQDTargetTest.cpp.

            : target3D( val3D ), targetSurf( val2D ), have3D( true ), haveSurf( true ), have2D( false )
        {
        }
LVQDTargetTest::ConstantTarget::ConstantTarget ( MsqMatrix< 3, 3 >  val3D,
MsqMatrix< 2, 2 >  val2D 
) [inline]

Definition at line 107 of file LVQDTargetTest.cpp.

            : target3D( val3D ), target2D( val2D ), have3D( true ), haveSurf( false ), have2D( true )
        {
        }
LVQDTargetTest::ConstantTarget::ConstantTarget ( double  C,
bool  surf 
) [inline]

Definition at line 111 of file LVQDTargetTest.cpp.

            : target3D( C ), targetSurf( C ), target2D( C ), have3D( true ), haveSurf( surf ), have2D( !surf )
        {
        }

Definition at line 115 of file LVQDTargetTest.cpp.

            : target3D( val3D ), target2D( 0.0 ), have3D( true ), haveSurf( false ), have2D( false )
        {
        }

Definition at line 119 of file LVQDTargetTest.cpp.

            : targetSurf( val2D ), have3D( false ), haveSurf( true ), have2D( false )
        {
        }

Definition at line 123 of file LVQDTargetTest.cpp.

            : target2D( val2D ), have3D( false ), haveSurf( false ), have2D( true )
        {
        }

Member Function Documentation

virtual bool LVQDTargetTest::ConstantTarget::get_2D_target ( PatchData pd,
size_t  element,
Sample  sample,
MsqMatrix< 2, 2 > &  W_out,
MsqError err 
) [inline, virtual]

Get a target matrix.

Parameters:
pdThe current PatchData
elementThe index an element within the patch data.
sampleThe sample point in the element.
W_outThe resulting target matrix.

Implements MBMesquite::TargetCalculator.

Definition at line 142 of file LVQDTargetTest.cpp.

References CPPUNIT_ASSERT.

        {
            CPPUNIT_ASSERT( have2D );
            result = target2D;
            return have2D;
        }
virtual bool LVQDTargetTest::ConstantTarget::get_3D_target ( PatchData pd,
size_t  element,
Sample  sample,
MsqMatrix< 3, 3 > &  W_out,
MsqError err 
) [inline, virtual]

Get a target matrix.

Parameters:
pdThe current PatchData
elementThe index an element within the patch data.
sampleThe sample point in the element.
W_outThe resulting target matrix.

Implements MBMesquite::TargetCalculator.

Definition at line 128 of file LVQDTargetTest.cpp.

References CPPUNIT_ASSERT.

        {
            CPPUNIT_ASSERT( have3D );
            result = target3D;
            return have3D;
        }
virtual bool LVQDTargetTest::ConstantTarget::get_surface_target ( PatchData pd,
size_t  element,
Sample  sample,
MsqMatrix< 3, 2 > &  W_out,
MsqError err 
) [inline, virtual]

Get a target matrix.

Parameters:
pdThe current PatchData
elementThe index an element within the patch data.
sampleThe sample point in the element.
W_outThe resulting target matrix.

Implements MBMesquite::TargetCalculator.

Definition at line 135 of file LVQDTargetTest.cpp.

References CPPUNIT_ASSERT.

        {
            CPPUNIT_ASSERT( haveSurf );
            result = targetSurf;
            return haveSurf;
        }
virtual bool LVQDTargetTest::ConstantTarget::have_surface_orient ( ) const [inline, virtual]

Use 3x2 W for surface elements if true, 2x2 W if false.

If true, then the targets for surface elements attempt some control of orientation and therefore get_surface_target must be used to get the targets. If false, then the target contains no orientation data and is therefore the same as the corresponding 2D target for surface elements. In this case, get_2D_target should be used.

Implements MBMesquite::TargetCalculator.

Definition at line 149 of file LVQDTargetTest.cpp.

        {
            return haveSurf;
        }

Member Data Documentation

Definition at line 100 of file LVQDTargetTest.cpp.

Definition at line 99 of file LVQDTargetTest.cpp.

Definition at line 99 of file LVQDTargetTest.cpp.

Definition at line 99 of file LVQDTargetTest.cpp.

Definition at line 98 of file LVQDTargetTest.cpp.

Definition at line 96 of file LVQDTargetTest.cpp.

Definition at line 97 of file LVQDTargetTest.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