MOAB: Mesh Oriented datABase
(version 5.3.1)
|
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 |
Definition at line 93 of file LVQDTargetTest.cpp.
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] |
LVQDTargetTest::ConstantTarget::ConstantTarget | ( | double | C, |
bool | surf | ||
) | [inline] |
LVQDTargetTest::ConstantTarget::ConstantTarget | ( | MsqMatrix< 3, 3 > | val3D | ) | [inline] |
LVQDTargetTest::ConstantTarget::ConstantTarget | ( | MsqMatrix< 3, 2 > | val2D | ) | [inline] |
Definition at line 119 of file LVQDTargetTest.cpp.
: targetSurf( val2D ), have3D( false ), haveSurf( true ), have2D( false ) { }
LVQDTargetTest::ConstantTarget::ConstantTarget | ( | MsqMatrix< 2, 2 > | val2D | ) | [inline] |
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.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The 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.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The 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.
pd | The current PatchData |
element | The index an element within the patch data. |
sample | The sample point in the element. |
W_out | The 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; }
bool LVQDTargetTest::ConstantTarget::flagError [private] |
Definition at line 100 of file LVQDTargetTest.cpp.
bool LVQDTargetTest::ConstantTarget::have2D [private] |
Definition at line 99 of file LVQDTargetTest.cpp.
bool LVQDTargetTest::ConstantTarget::have3D [private] |
Definition at line 99 of file LVQDTargetTest.cpp.
bool LVQDTargetTest::ConstantTarget::haveSurf [private] |
Definition at line 99 of file LVQDTargetTest.cpp.
MsqMatrix< 2, 2 > LVQDTargetTest::ConstantTarget::target2D [private] |
Definition at line 98 of file LVQDTargetTest.cpp.
MsqMatrix< 3, 3 > LVQDTargetTest::ConstantTarget::target3D [private] |
Definition at line 96 of file LVQDTargetTest.cpp.
MsqMatrix< 3, 2 > LVQDTargetTest::ConstantTarget::targetSurf [private] |
Definition at line 97 of file LVQDTargetTest.cpp.