Version: 9.16.0
MED::TTGrilleInfo Struct Reference

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTGrilleInfo:

Public Member Functions

 TTGrilleInfo (const PMeshInfo &theMeshInfo, const PGrilleInfo &theInfo)
 
 TTGrilleInfo (const PMeshInfo &theMeshInfo, const EGrilleType &type, const TInt nnoeuds)
 
 TTGrilleInfo (const PMeshInfo &theMeshInfo, const EGrilleType &type)
 
 TTGrilleInfo (const PMeshInfo &theMeshInfo, const EGrilleType &type, const MED::TIntVector &nbNodeVec)
 
virtual std::string GetCoordName (TInt theId) const
 Get name of the coordinate dimension by its order number. More...
 
virtual void SetCoordName (TInt theId, const std::string &theValue)
 Set name of the coordinate dimension by its order number. More...
 
virtual std::string GetCoordUnit (TInt theId) const
 Get name of unit for the coordinate dimension by its order number. More...
 
virtual void SetCoordUnit (TInt theId, const std::string &theValue)
 Set name of unit for the coordinate dimension by its order number. More...
 
const PMeshInfoGetMeshInfo () const
 
const TNodeCoordGetNodeCoord () const
 Gives coordinates for mesh nodes (const version) More...
 
TNodeCoordGetNodeCoord ()
 
TNodeCoord GetCoord (TInt theId)
 Gives coordinates for mesh node by its number, array index from 0. More...
 
TIntVector GetConn (TInt theId, const bool isSub=false)
 Gives ids of nodes for mesh cell or sub-cell by its number, array index from 0. More...
 
const EGrilleTypeGetGrilleType () const
 Gets grille type (const version) More...
 
EGrilleType GetGrilleType ()
 Gets grille type. More...
 
void SetGrilleType (EGrilleType theGrilleType)
 Sets grille type. More...
 
const TIndexesGetMapOfIndexes () const
 Gets a map of Tables (const version) More...
 
TIndexesGetMapOfIndexes ()
 Gets a map of Tables. More...
 
const TFloatVectorGetIndexes (TInt theAxisNumber) const
 Gets a Table of indexes for certain axe(const version) More...
 
TFloatVectorGetIndexes (TInt theAxisNumber)
 Gets a Table of indexes for certain axe. More...
 
TInt GetNbIndexes (TInt theAxisNumber)
 Gets a number of indices per axe. More...
 
TInt GetNbNodes ()
 
TInt GetNbCells ()
 Return count of all points. More...
 
TInt GetNbSubCells ()
 Return count of all cells. More...
 
EGeometrieElement GetGeom ()
 Return count of all entities of <mesh dimension-1> More...
 
EGeometrieElement GetSubGeom ()
 Return geometry of cells (calculated from mesh dimension) More...
 
EEntiteMaillage GetEntity ()
 Return geometry of subcells (calculated from mesh dimension) More...
 
EEntiteMaillage GetSubEntity ()
 Return entity (eMAILLE) More...
 
const TIntVectorGetGrilleStructure () const
 Gets grille structure(const version) More...
 
TIntVector GetGrilleStructure ()
 Gets grille structure. More...
 
void SetGrilleStructure (TInt theAxis, TInt theNb)
 Sets the grille structure of theAxis axe to theNb. More...
 
TInt GetFamNum (TInt theId) const
 Get number of a MED FAMILY by order number of the mesh element. More...
 
void SetFamNum (TInt theId, TInt theVal)
 Set number of a MED FAMILY for the mesh element with the order number. More...
 
TInt GetFamSubNum (TInt theId) const
 Get number of a MED FAMILY by order number of sub element. More...
 
void SetFamSubNum (TInt theId, TInt theVal)
 Set number of a MED FAMILY for theId-th sub element. More...
 
TInt GetFamNumNode (TInt theId) const
 Get number of a MED FAMILY by order number of the mesh node. More...
 
void SetFamNumNode (TInt theId, TInt theVal)
 Set number of a MED FAMILY for the mesh node with the order number. More...
 
EModeSwitch GetModeSwitch () const
 

Data Fields

PMeshInfo myMeshInfo
 
TNodeCoord myCoord
 Contains all nodal coordinates, now used only for eGRILLE_STANDARD. More...
 
EGrilleType myGrilleType
 Defines grille type (eGRILLE_CARTESIENNE,eGRILLE_POLAIRE,eGRILLE_STANDARD) More...
 
TString myCoordNames
 Contains names for the coordinate dimensions. More...
 
TString myCoordUnits
 Contains units for the coordinate dimensions. More...
 
TIndexes myIndixes
 Map of index of axes and Table of indexes for certain axe, now used for eGRILLE_CARTESIENNE and eGRILLE_POLAIRE. More...
 
TIntVector myGrilleStructure
 Return sub entity. More...
 
TElemNum myFamNum
 Defines sequence MED Family indexes for corresponding mesh entities. More...
 
TElemNum myFamSubNum
 Defines sequence MED Family indexes for sub entities. More...
 
TElemNum myFamNumNode
 Defines sequence MED Family indexes for corresponding mesh nodes. More...
 
EModeSwitch myModeSwitch
 Keeps the interlace mode. More...
 

Constructor & Destructor Documentation

◆ TTGrilleInfo() [1/4]

◆ TTGrilleInfo() [2/4]

◆ TTGrilleInfo() [3/4]

◆ TTGrilleInfo() [4/4]

Member Function Documentation

◆ GetConn()

TIntVector MED::TGrilleInfo::GetConn ( TInt  theId,
const bool  isSub = false 
)
inherited

Gives ids of nodes for mesh cell or sub-cell by its number, array index from 0.

◆ GetCoord()

TNodeCoord MED::TGrilleInfo::GetCoord ( TInt  theId)
inherited

Gives coordinates for mesh node by its number, array index from 0.

References MED::eGRILLE_CARTESIENNE, MED::eGRILLE_STANDARD, EXCEPTION, and MED::GetNbNodes().

◆ GetCoordName()

virtual std::string MED::TTGrilleInfo::GetCoordName ( TInt  theId) const
virtual

Get name of the coordinate dimension by its order number.

Implements MED::TGrilleInfo.

References MED::GetPNOMLength(), MED::GetString(), and MED::TGrilleInfo::myCoordNames.

◆ GetCoordUnit()

virtual std::string MED::TTGrilleInfo::GetCoordUnit ( TInt  theId) const
virtual

Get name of unit for the coordinate dimension by its order number.

Implements MED::TGrilleInfo.

References MED::GetPNOMLength(), MED::GetString(), and MED::TGrilleInfo::myCoordUnits.

◆ GetEntity()

EEntiteMaillage MED::TGrilleInfo::GetEntity ( )
inherited

Return geometry of subcells (calculated from mesh dimension)

References MED::eMAILLE.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ GetFamNum()

TInt MED::TGrilleInfo::GetFamNum ( TInt  theId) const
inherited

Get number of a MED FAMILY by order number of the mesh element.

◆ GetFamNumNode()

TInt MED::TGrilleInfo::GetFamNumNode ( TInt  theId) const
inherited

Get number of a MED FAMILY by order number of the mesh node.

◆ GetFamSubNum()

TInt MED::TGrilleInfo::GetFamSubNum ( TInt  theId) const
inherited

Get number of a MED FAMILY by order number of sub element.

◆ GetGeom()

EGeometrieElement MED::TGrilleInfo::GetGeom ( )
inherited

Return count of all entities of <mesh dimension-1>

References MED::eHEXA8, MED::eNONE, MED::eQUAD4, and MED::eSEG2.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ GetGrilleStructure() [1/2]

TIntVector MED::TGrilleInfo::GetGrilleStructure ( )
inherited

Gets grille structure.

◆ GetGrilleStructure() [2/2]

const TIntVector & MED::TGrilleInfo::GetGrilleStructure ( ) const
inherited

Gets grille structure(const version)

◆ GetGrilleType() [1/2]

EGrilleType MED::TGrilleInfo::GetGrilleType ( )
inherited

Gets grille type.

◆ GetGrilleType() [2/2]

const EGrilleType & MED::TGrilleInfo::GetGrilleType ( ) const
inherited

Gets grille type (const version)

◆ GetIndexes() [1/2]

TFloatVector & MED::TGrilleInfo::GetIndexes ( TInt  theAxisNumber)
inherited

Gets a Table of indexes for certain axe.

References EXCEPTION.

◆ GetIndexes() [2/2]

const TFloatVector & MED::TGrilleInfo::GetIndexes ( TInt  theAxisNumber) const
inherited

Gets a Table of indexes for certain axe(const version)

References EXCEPTION.

Referenced by MED::TWrapper::GetGrilleInfo(), and MED::TWrapper::SetGrilleInfo().

◆ GetMapOfIndexes() [1/2]

TIndexes & MED::TGrilleInfo::GetMapOfIndexes ( )
inherited

Gets a map of Tables.

◆ GetMapOfIndexes() [2/2]

const TIndexes & MED::TGrilleInfo::GetMapOfIndexes ( ) const
inherited

Gets a map of Tables (const version)

◆ GetMeshInfo()

const PMeshInfo & MED::TGrilleInfo::GetMeshInfo ( ) const
inherited

◆ GetModeSwitch()

◆ GetNbCells()

TInt MED::TGrilleInfo::GetNbCells ( )
inherited

Return count of all points.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ GetNbIndexes()

TInt MED::TGrilleInfo::GetNbIndexes ( TInt  theAxisNumber)
inherited

Gets a number of indices per axe.

◆ GetNbNodes()

TInt MED::TGrilleInfo::GetNbNodes ( )
inherited

◆ GetNbSubCells()

TInt MED::TGrilleInfo::GetNbSubCells ( )
inherited

Return count of all cells.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ GetNodeCoord() [1/2]

TNodeCoord & MED::TGrilleInfo::GetNodeCoord ( )
inherited

◆ GetNodeCoord() [2/2]

const TNodeCoord & MED::TGrilleInfo::GetNodeCoord ( ) const
inherited

Gives coordinates for mesh nodes (const version)

◆ GetSubEntity()

EEntiteMaillage MED::TGrilleInfo::GetSubEntity ( )
inherited

Return entity (eMAILLE)

References MED::eARETE, and MED::eFACE.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ GetSubGeom()

EGeometrieElement MED::TGrilleInfo::GetSubGeom ( )
inherited

Return geometry of cells (calculated from mesh dimension)

References MED::eNONE, MED::eQUAD4, and MED::eSEG2.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ SetCoordName()

virtual void MED::TTGrilleInfo::SetCoordName ( TInt  theId,
const std::string &  theValue 
)
virtual

Set name of the coordinate dimension by its order number.

Implements MED::TGrilleInfo.

References MED::GetPNOMLength(), MED::TGrilleInfo::myCoordNames, and MED::SetString().

◆ SetCoordUnit()

virtual void MED::TTGrilleInfo::SetCoordUnit ( TInt  theId,
const std::string &  theValue 
)
virtual

Set name of unit for the coordinate dimension by its order number.

Implements MED::TGrilleInfo.

References MED::GetPNOMLength(), MED::TGrilleInfo::myCoordUnits, and MED::SetString().

◆ SetFamNum()

void MED::TGrilleInfo::SetFamNum ( TInt  theId,
TInt  theVal 
)
inherited

Set number of a MED FAMILY for the mesh element with the order number.

◆ SetFamNumNode()

void MED::TGrilleInfo::SetFamNumNode ( TInt  theId,
TInt  theVal 
)
inherited

Set number of a MED FAMILY for the mesh node with the order number.

◆ SetFamSubNum()

void MED::TGrilleInfo::SetFamSubNum ( TInt  theId,
TInt  theVal 
)
inherited

Set number of a MED FAMILY for theId-th sub element.

◆ SetGrilleStructure()

void MED::TGrilleInfo::SetGrilleStructure ( TInt  theAxis,
TInt  theNb 
)
inherited

Sets the grille structure of theAxis axe to theNb.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ SetGrilleType()

void MED::TGrilleInfo::SetGrilleType ( EGrilleType  theGrilleType)
inherited

Sets grille type.

Field Documentation

◆ myCoord

TNodeCoord MED::TGrilleInfo::myCoord
inherited

Contains all nodal coordinates, now used only for eGRILLE_STANDARD.

Referenced by MED::TWrapper::GetGrilleInfo(), MED::TWrapper::SetGrilleInfo(), and TTGrilleInfo().

◆ myCoordNames

TString MED::TGrilleInfo::myCoordNames
inherited

Contains names for the coordinate dimensions.

Referenced by GetCoordName(), MED::TWrapper::GetGrilleInfo(), SetCoordName(), MED::TWrapper::SetGrilleInfo(), and TTGrilleInfo().

◆ myCoordUnits

TString MED::TGrilleInfo::myCoordUnits
inherited

Contains units for the coordinate dimensions.

Referenced by GetCoordUnit(), MED::TWrapper::GetGrilleInfo(), SetCoordUnit(), MED::TWrapper::SetGrilleInfo(), and TTGrilleInfo().

◆ myFamNum

TElemNum MED::TGrilleInfo::myFamNum
inherited

Defines sequence MED Family indexes for corresponding mesh entities.

Referenced by MED::TWrapper::GetGrilleInfo(), and TTGrilleInfo().

◆ myFamNumNode

TElemNum MED::TGrilleInfo::myFamNumNode
inherited

Defines sequence MED Family indexes for corresponding mesh nodes.

Referenced by MED::TWrapper::GetGrilleInfo(), and TTGrilleInfo().

◆ myFamSubNum

TElemNum MED::TGrilleInfo::myFamSubNum
inherited

Defines sequence MED Family indexes for sub entities.

Referenced by MED::TWrapper::GetGrilleInfo().

◆ myGrilleStructure

TIntVector MED::TGrilleInfo::myGrilleStructure
inherited

Return sub entity.

Vector of grille structure (Example: {3,4,5}, 3 nodes in X axe, 4 nodes in Y axe, ...)

Referenced by MED::TWrapper::GetGrilleInfo(), MED::TWrapper::SetGrilleInfo(), and TTGrilleInfo().

◆ myGrilleType

EGrilleType MED::TGrilleInfo::myGrilleType
inherited

Defines grille type (eGRILLE_CARTESIENNE,eGRILLE_POLAIRE,eGRILLE_STANDARD)

Referenced by MED::TWrapper::GetGrilleInfo(), MED::TWrapper::SetGrilleInfo(), and TTGrilleInfo().

◆ myIndixes

TIndexes MED::TGrilleInfo::myIndixes
inherited

Map of index of axes and Table of indexes for certain axe, now used for eGRILLE_CARTESIENNE and eGRILLE_POLAIRE.

Referenced by TTGrilleInfo().

◆ myMeshInfo

PMeshInfo MED::TGrilleInfo::myMeshInfo
inherited

◆ myModeSwitch