Version: 9.16.0
MED::TGaussCoord Class Reference

Define a helper class to handle Gauss Points coordinates. More...

#include <MED_GaussUtils.hxx>

Inheritance diagram for MED::TGaussCoord:

Public Member Functions

 TGaussCoord ()
 
void Init (TInt theNbElem, TInt theNbGauss, TInt theDim, EModeSwitch theMode=eFULL_INTERLACE)
 To init the class. More...
 
TInt GetNbElem () const
 
TInt GetNbGauss () const
 
TInt GetDim () const
 
unsigned char * GetValuePtr ()
 
TCCoordSliceArr GetCoordSliceArr (TInt theElemId) const
 Get slice of the coordinate that corresponds to defined cell (const version) More...
 
TCoordSliceArr GetCoordSliceArr (TInt theElemId)
 Get slice of the coordinate that corresponds to defined cell. More...
 

Private Member Functions

EModeSwitch GetModeSwitch () const
 

Private Attributes

TInt myNbElem
 
TInt myNbGauss
 
TInt myDim
 
TInt myGaussStep
 
TNodeCoord myGaussCoord
 
EModeSwitch myModeSwitch
 Keeps the interlace mode. More...
 

Detailed Description

Define a helper class to handle Gauss Points coordinates.

Constructor & Destructor Documentation

◆ TGaussCoord()

MED::TGaussCoord::TGaussCoord ( )

Member Function Documentation

◆ GetCoordSliceArr() [1/2]

TCoordSliceArr MED::TGaussCoord::GetCoordSliceArr ( TInt  theElemId)

Get slice of the coordinate that corresponds to defined cell.

References MED::eFULL_INTERLACE, MED::TModeSwitchInfo::GetModeSwitch(), myDim, myGaussCoord, myGaussStep, and myNbGauss.

◆ GetCoordSliceArr() [2/2]

TCCoordSliceArr MED::TGaussCoord::GetCoordSliceArr ( TInt  theElemId) const

Get slice of the coordinate that corresponds to defined cell (const version)

References MED::eFULL_INTERLACE, MED::TModeSwitchInfo::GetModeSwitch(), myDim, myGaussCoord, myGaussStep, and myNbGauss.

Referenced by MED::TShapeFun::Eval(), and MED::GetBaryCenter().

◆ GetDim()

TInt MED::TGaussCoord::GetDim ( ) const

References myDim.

◆ GetModeSwitch()

◆ GetNbElem()

TInt MED::TGaussCoord::GetNbElem ( ) const

References myNbElem.

◆ GetNbGauss()

TInt MED::TGaussCoord::GetNbGauss ( ) const

References myNbGauss.

◆ GetValuePtr()

unsigned char * MED::TGaussCoord::GetValuePtr ( )

References myGaussCoord.

◆ Init()

void MED::TGaussCoord::Init ( TInt  theNbElem,
TInt  theNbGauss,
TInt  theDim,
EModeSwitch  theMode = eFULL_INTERLACE 
)

Field Documentation

◆ myDim

TInt MED::TGaussCoord::myDim
private

Referenced by GetCoordSliceArr(), GetDim(), and Init().

◆ myGaussCoord

TNodeCoord MED::TGaussCoord::myGaussCoord
private

Referenced by GetCoordSliceArr(), GetValuePtr(), and Init().

◆ myGaussStep

TInt MED::TGaussCoord::myGaussStep
private

Referenced by GetCoordSliceArr(), and Init().

◆ myModeSwitch

◆ myNbElem

TInt MED::TGaussCoord::myNbElem
private

Referenced by GetNbElem(), and Init().

◆ myNbGauss

TInt MED::TGaussCoord::myNbGauss
private

Referenced by GetCoordSliceArr(), GetNbGauss(), and Init().