Back to index

salome-med  6.5.0
Public Types | Public Member Functions
MED::TTNodeInfo< eVersion > Struct Template Reference

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTNodeInfo< eVersion >:
Inheritance graph
[legend]
Collaboration diagram for MED::TTNodeInfo< eVersion >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TTElemInfo< eVersion > TElemInfoBase

Public Member Functions

 TTNodeInfo (const PMeshInfo &theMeshInfo, const PNodeInfo &theInfo)
 TTNodeInfo (const PMeshInfo &theMeshInfo, TInt theNbElem, EModeSwitch theMode, ERepere theSystem, EBooleen theIsElemNum, EBooleen theIsElemNames)
 TTNodeInfo (const PMeshInfo &theMeshInfo, const TFloatVector &theNodeCoords, EModeSwitch theMode, ERepere theSystem, const TStringVector &theCoordNames, const TStringVector &theCoordUnits, const TIntVector &theFamilyNums, const TIntVector &theElemNums, const TStringVector &theElemNames)
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)
virtual std::string GetElemName (TInt theId) const
virtual void SetElemName (TInt theId, const std::string &theValue)

Detailed Description

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

Definition at line 426 of file MED_TStructures.hxx.


Member Typedef Documentation

template<EVersion eVersion>
typedef TTElemInfo<eVersion> MED::TTNodeInfo< eVersion >::TElemInfoBase

Definition at line 430 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

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

Definition at line 432 of file MED_TStructures.hxx.

                                                                      :
      TNodeInfo(theInfo),
      TElemInfoBase(theMeshInfo, theInfo)
    {
      myModeSwitch = theInfo->GetModeSwitch();
      
      mySystem = theInfo->GetSystem();
      
      myCoord.reset(new TNodeCoord(*theInfo->myCoord));
      
      TInt aSpaceDim = theMeshInfo->GetSpaceDim();

      myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      for(TInt anId = 0; anId < aSpaceDim; anId++)
        SetCoordName(anId,theInfo->GetCoordName(anId));
      
      myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      for(TInt anId = 0; anId < aSpaceDim; anId++)
        SetCoordUnit(anId,theInfo->GetCoordUnit(anId));
    }

Here is the call graph for this function:

template<EVersion eVersion>
MED::TTNodeInfo< eVersion >::TTNodeInfo ( const PMeshInfo theMeshInfo,
TInt  theNbElem,
EModeSwitch  theMode,
ERepere  theSystem,
EBooleen  theIsElemNum,
EBooleen  theIsElemNames 
) [inline]

Definition at line 453 of file MED_TStructures.hxx.

                                       :
      TModeSwitchInfo(theMode),
      TElemInfoBase(theMeshInfo,
                    theNbElem,
                    theIsElemNum,
                    theIsElemNames)
    {
      mySystem = theSystem;

      myCoord.reset(new TNodeCoord(theNbElem * theMeshInfo->mySpaceDim));

      myCoordUnits.resize(theMeshInfo->mySpaceDim*GetPNOMLength<eVersion>()+1);

      myCoordNames.resize(theMeshInfo->mySpaceDim*GetPNOMLength<eVersion>()+1);
    }
template<EVersion eVersion>
MED::TTNodeInfo< eVersion >::TTNodeInfo ( const PMeshInfo theMeshInfo,
const TFloatVector theNodeCoords,
EModeSwitch  theMode,
ERepere  theSystem,
const TStringVector theCoordNames,
const TStringVector theCoordUnits,
const TIntVector theFamilyNums,
const TIntVector theElemNums,
const TStringVector theElemNames 
) [inline]

Definition at line 475 of file MED_TStructures.hxx.

                                                 :
      TModeSwitchInfo(theMode),
      TElemInfoBase(theMeshInfo,
                    (TInt)theNodeCoords.size()/theMeshInfo->GetDim(),
                    theFamilyNums,
                    theElemNums,
                    theElemNames)
    {
      mySystem = theSystem;

      myCoord.reset(new TNodeCoord(theNodeCoords));
      
      TInt aSpaceDim = theMeshInfo->GetSpaceDim();

      myCoordNames.resize(aSpaceDim*GetPNOMLength<eVersion>()+1);
      if(!theCoordNames.empty())
        for(TInt anId = 0; anId < aSpaceDim; anId++)
          SetCoordName(anId,theCoordNames[anId]);
      
      myCoordUnits.resize(aSpaceDim*GetPNOMLength<eVersion>() + 1);
      if(!theCoordUnits.empty())
        for(TInt anId = 0; anId < aSpaceDim; anId++)
          SetCoordUnit(anId, theCoordUnits[anId]);
    }

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 510 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::TTNodeInfo< eVersion >::GetCoordUnit ( TInt  theId) const [inline, virtual]

Definition at line 524 of file MED_TStructures.hxx.

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

Here is the call graph for this function:

template<EVersion eVersion>
virtual std::string MED::TTElemInfo< eVersion >::GetElemName ( TInt  theId) const [inline, virtual, inherited]

Definition at line 410 of file MED_TStructures.hxx.

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

Here is the call graph for this function:

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

Definition at line 517 of file MED_TStructures.hxx.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 531 of file MED_TStructures.hxx.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 417 of file MED_TStructures.hxx.

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

Here is the call graph for this function:

Here is the caller graph for this function:


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