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

Public Member Functions

 TargetError (bool flag_error=true, bool orient=false)
bool get_3D_target (PatchData &, size_t, Sample, MsqMatrix< 3, 3 > &, MsqError &err)
 Get a target matrix.
bool get_2D_target (PatchData &, size_t, Sample, MsqMatrix< 2, 2 > &, MsqError &err)
 Get a target matrix.
bool get_surface_target (PatchData &, size_t, Sample, MsqMatrix< 3, 2 > &, 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

bool flagError
bool surfOrient

Detailed Description

Definition at line 157 of file LVQDTargetTest.cpp.


Constructor & Destructor Documentation

LVQDTargetTest::TargetError::TargetError ( bool  flag_error = true,
bool  orient = false 
) [inline]

Definition at line 163 of file LVQDTargetTest.cpp.

: flagError( flag_error ), surfOrient( orient ) {}

Member Function Documentation

bool LVQDTargetTest::TargetError::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 171 of file LVQDTargetTest.cpp.

References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.

        {
            if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH );
            return false;
        }
bool LVQDTargetTest::TargetError::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 165 of file LVQDTargetTest.cpp.

References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.

        {
            if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH );
            return false;
        }
bool LVQDTargetTest::TargetError::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 177 of file LVQDTargetTest.cpp.

References MBMesquite::MsqError::INVALID_MESH, and MSQ_SETERR.

        {
            if( flagError ) MSQ_SETERR( err )( MsqError::INVALID_MESH );
            return false;
        }
virtual bool LVQDTargetTest::TargetError::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 183 of file LVQDTargetTest.cpp.

        {
            return surfOrient;
        }

Member Data Documentation

Definition at line 159 of file LVQDTargetTest.cpp.

Definition at line 160 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