Back to index

salome-med  6.5.0
Public Member Functions
MED::TTGrilleInfo< eVersion > Struct Template Reference

#include <MED_TStructures.hxx>

List of all members.

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
virtual void SetCoordName (TInt theId, const std::string &theValue)
virtual std::string GetCoordUnit (TInt theId) const
virtual void SetCoordUnit (TInt theId, const std::string &theValue)

Detailed Description

template<EVersion eVersion>
struct MED::TTGrilleInfo< eVersion >

Definition at line 1049 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

template<EVersion eVersion>
MED::TTGrilleInfo< eVersion >::TTGrilleInfo ( const PMeshInfo theMeshInfo,
const PGrilleInfo theInfo 
) [inline]

Definition at line 1052 of file MED_TStructures.hxx.

    {
      myMeshInfo        = theMeshInfo;

      myCoord           = theInfo->GetNodeCoord();
      
      myGrilleType      = theInfo->GetGrilleType();

      myCoordNames      = theInfo->myCoordNames;

      myCoordUnits      = theInfo->myCoordUnits;

      myIndixes         = theInfo->GetMapOfIndexes();

      myGrilleStructure = theInfo->GetGrilleStructure();

      myGrilleType      = theInfo->GetGrilleType();

      myFamNumNode.resize(theInfo->GetNbNodes());
      myFamNumNode      = theInfo->myFamNumNode;

      myFamNum      = theInfo->myFamNum;
    }
template<EVersion eVersion>
MED::TTGrilleInfo< eVersion >::TTGrilleInfo ( const PMeshInfo theMeshInfo,
const EGrilleType type,
const TInt  nnoeuds 
) [inline]

Definition at line 1077 of file MED_TStructures.hxx.

    {
      myMeshInfo        = theMeshInfo;
      TInt aSpaceDim = theMeshInfo->GetSpaceDim();
      if(type == eGRILLE_STANDARD){
        myCoord.resize(aSpaceDim*nnoeuds);
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      } else { //if(type == eGRILLE_CARTESIENNE){
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
      }
      myGrilleStructure.resize(aSpaceDim);
      myFamNumNode.resize(nnoeuds);
    }
template<EVersion eVersion>
MED::TTGrilleInfo< eVersion >::TTGrilleInfo ( const PMeshInfo theMeshInfo,
const EGrilleType type 
) [inline]

Definition at line 1095 of file MED_TStructures.hxx.

    {
      myMeshInfo        = theMeshInfo;
      TInt aSpaceDim = theMeshInfo->GetSpaceDim();
      if(type == eGRILLE_STANDARD){
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      } else {// if(type == eGRILLE_CARTESIENNE){
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
      }
      myGrilleStructure.resize(aSpaceDim);
    }
template<EVersion eVersion>
MED::TTGrilleInfo< eVersion >::TTGrilleInfo ( const PMeshInfo theMeshInfo,
const EGrilleType type,
const MED::TIntVector nbNodeVec 
) [inline]

Definition at line 1110 of file MED_TStructures.hxx.

    {
      myMeshInfo        = theMeshInfo;

      TInt aSpaceDim = theMeshInfo->GetSpaceDim();
      if(type == eGRILLE_STANDARD){
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      } else {// if(type == eGRILLE_CARTESIENNE){
        myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
        myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+aSpaceDim);
      }

      if(type != eGRILLE_STANDARD)
        for(unsigned int aAxe=0;aAxe<nbNodeVec.size();aAxe++){
          myIndixes[aAxe].resize(nbNodeVec[aAxe]);
        }
      myGrilleStructure.resize(aSpaceDim);
    }

Member Function Documentation

template<EVersion eVersion>
virtual std::string MED::TTGrilleInfo< eVersion >::GetCoordName ( TInt  theId) const [inline, virtual]

Definition at line 1134 of file MED_TStructures.hxx.

    { 
      return GetString(theId,GetPNOMLength<eVersion>(),myCoordNames);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual std::string MED::TTGrilleInfo< eVersion >::GetCoordUnit ( TInt  theId) const [inline, virtual]

Definition at line 1148 of file MED_TStructures.hxx.

    { 
      return GetString(theId,GetPNOMLength<eVersion>(),myCoordUnits);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual void MED::TTGrilleInfo< eVersion >::SetCoordName ( TInt  theId,
const std::string &  theValue 
) [inline, virtual]

Definition at line 1141 of file MED_TStructures.hxx.

    {
      SetString(theId,GetPNOMLength<eVersion>(),myCoordNames,theValue);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual void MED::TTGrilleInfo< eVersion >::SetCoordUnit ( TInt  theId,
const std::string &  theValue 
) [inline, virtual]

Definition at line 1155 of file MED_TStructures.hxx.

    {
      SetString(theId,GetPNOMLength<eVersion>(),myCoordUnits,theValue);
    }

Here is the call graph for this function:


The documentation for this struct was generated from the following file: