23#ifndef MED_Structures_HeaderFile
24#define MED_Structures_HeaderFile
31#include <boost/tuple/tuple.hpp>
34#pragma warning(disable:4251)
59 const std::string& theValue);
83 virtual void SetName(
const std::string& theValue) = 0;
102 myModeSwitch(theModeSwitch)
124 virtual void SetDesc(
const std::string& theValue) = 0;
164 void SetAttrId(
TInt theId,
TInt theVal);
171 void SetAttrVal(
TInt theId,
TInt theVal);
201 void SetFamNum(
TInt theId,
TInt theVal);
218 void SetElemNum(
TInt theId,
TInt theVal);
379 TInt GetNbFaces(
TInt theElemId)
const;
448 typedef boost::tuple<EGeometrieElement,std::string>
TKey;
449 typedef boost::tuple<TKey,TInt>
TInfo;
453 operator()(
const TKey& theLeft,
const TKey& theRight)
const;
537 virtual void SetUnitDt(
const std::string& theValue) = 0;
546 typedef boost::tuple<TKey,TInt>
TInfo;
558 void SetElemNum(
TInt theId,
TInt theVal);
581 Allocate(
TInt theNbElem,
610 template<
class TValueType>
641 return (
unsigned char*)&myValue[0];
668 aValueSliceArr[aGaussId] =
675 aValueSliceArr[aGaussId] =
679 return aValueSliceArr;
690 aValueSliceArr[aGaussId] =
697 aValueSliceArr[aGaussId] =
701 return aValueSliceArr;
712 aValueSliceArr[aCompId] =
719 aValueSliceArr[aCompId] =
723 return aValueSliceArr;
734 aValueSliceArr[aCompId] =
738 return aValueSliceArr;
743 aValueSliceArr[aGaussId] =
746 return aValueSliceArr;
769 typedef std::set<EGeometrieElement>
TGeom;
823 template<
class TMeshValueType>
829 typedef typename TMeshValueType::TElement
TElement;
855 typename TTGeom2Value::const_iterator anIter =
myGeom2Value.find(theGeom);
857 EXCEPTION(std::runtime_error,
"TTimeStampValue::GetMeshValuePtr - myGeom2Value.find(theGeom) fails");
858 return anIter->second;
902 template<
class TMeshValueTypeFrom,
class TMeshValueTypeTo>
909 typedef typename TMeshValueTypeTo::TElement TElementTo;
911 typename TimeStampValueTypeFrom::TTGeom2Value& aGeom2Value = theTimeStampValueFrom->
myGeom2Value;
912 typename TimeStampValueTypeFrom::TTGeom2Value::const_iterator anIter = aGeom2Value.begin();
913 for(; anIter != aGeom2Value.end(); anIter++){
915 const typename TimeStampValueTypeFrom::TTMeshValue& aMeshValue = *anIter->second;
916 typename TimeStampValueTypeTo::TTMeshValue& aMeshValue2 = theTimeStampValueTo->GetMeshValue(aGeom);
917 aMeshValue2.Allocate(aMeshValue.myNbElem,
918 aMeshValue.myNbGauss,
920 aMeshValue.myModeSwitch);
923 TInt aSize = aValue.size();
924 for(
TInt anId = 0; anId < aSize; anId++)
925 aValue2[anId] = TElementTo(aValue[anId]);
930 template<
class TMeshValueType>
936 typename TimeStampValueType::TTGeom2Value& aGeom2Value = theTimeStampValueFrom->
myGeom2Value;
937 typename TimeStampValueType::TTGeom2Value::const_iterator anIter = aGeom2Value.begin();
938 for(; anIter != aGeom2Value.end(); anIter++){
940 const typename TimeStampValueType::TTMeshValue& aMeshValue = *anIter->second;
941 typename TimeStampValueType::TTMeshValue& aMeshValue2 = theTimeStampValueTo->GetMeshValue(aGeom);
942 aMeshValue2 = aMeshValue;
952 if(theValueFrom->GetTypeChamp() == theValueTo->GetTypeChamp()){
953 if(theValueFrom->GetTypeChamp() ==
eFLOAT64)
954 CopyTimeStampValue<TFloatMeshValue>(theValueFrom, theValueTo);
955 else if(theValueFrom->GetTypeChamp() ==
eINT)
956 CopyTimeStampValue<TIntMeshValue>(theValueFrom, theValueTo);
958 if(theValueFrom->GetTypeChamp() ==
eFLOAT64 && theValueTo->GetTypeChamp() ==
eINT)
959 CopyTimeStampValue<TFloatMeshValue, TIntMeshValue>(theValueFrom, theValueTo);
960 else if(theValueFrom->GetTypeChamp() ==
eINT && theValueTo->GetTypeChamp() ==
eFLOAT64)
961 CopyTimeStampValue<TIntMeshValue, TFloatMeshValue>(theValueFrom, theValueTo);
1014 const TIndexes& GetMapOfIndexes()
const ;
1022 TInt GetNbIndexes(
TInt theAxisNumber);
1026 TInt GetNbSubCells();
1037 const TIntVector& GetGrilleStructure()
const;
1041 void SetGrilleStructure(
TInt theAxis,
TInt theNb);
1050 void SetFamNum(
TInt theId,
TInt theVal);
1057 TInt GetFamSubNum(
TInt theId)
const;
1059 void SetFamSubNum(
TInt theId,
TInt theVal);
1066 TInt GetFamNumNode(
TInt theId)
const;
1068 void SetFamNumNode(
TInt theId,
TInt theVal);
#define MEDWRAPPER_EXPORT
Definition: MED_WrapperDef.hxx:33
#define EXCEPTION(TYPE, MSG)
Definition: UNV_Utilities.hxx:160
This class intends to provide a uniform way to handle multidimensional data (const version)
Definition: MED_SliceArray.hxx:47
This class extends TCSlice functionality for non-constant case.
Definition: MED_SliceArray.hxx:138
Definition: MED_Algorithm.cxx:28
TVector< TCValueSlice > TCValueSliceArr
Definition: MED_Structures.hxx:761
SharedPtr< TString > PString
Definition: MED_Structures.hxx:42
std::map< TInt, TString > TNames
Definition: MED_Structures.hxx:972
TFloat GetCoord(const TCCoordSlice &theCoordSlice)
Definition: MED_CoordUtils.cxx:32
TIntVector TElemNum
Definition: MED_Structures.hxx:182
EEntiteMaillage
Definition: MED_Common.hxx:72
TTimeStampValue< TIntMeshValue > TIntTimeStampValue
Definition: MED_Structures.hxx:895
std::map< EGeometrieElement, TInt > TGeom2NbGauss
Definition: MED_Structures.hxx:495
void SetString(TInt theId, TInt theStep, TString &theString, const std::string &theValue)
Set a substring in the sequence of the strings.
Definition: MED_Structures.cxx:41
TFloatTimeStampValue TTimeStampVal
Definition: MED_Structures.hxx:967
TTMeshValue< TFloatVector > TFloatMeshValue
Definition: MED_Structures.hxx:752
ERepere
Definition: MED_Common.hxx:60
TSlice< TFloat > TFloatVecSlice
Definition: MED_Structures.hxx:234
SharedPtr< TIntTimeStampValue > PIntTimeStampValue
Definition: MED_Structures.hxx:896
TIntVecSlice TConnSlice
Definition: MED_Structures.hxx:274
TTimeStampValue< TFloatMeshValue > TFloatTimeStampValue
Definition: MED_Structures.hxx:889
TIntVector TFamAttr
Definition: MED_Structures.hxx:130
TFloatMeshValue TMeshValue
Definition: MED_Structures.hxx:764
TFloatVector TValue
Definition: MED_Structures.hxx:757
std::string GetString(TInt theId, TInt theStep, const TString &theString)
Extract a substring from the sequence of the strings.
Definition: MED_Structures.cxx:31
TInt GetDimGaussCoord(EGeometrieElement theGeom)
Get dimension of the Gauss coordinates for the defined type of mesh cell.
Definition: MED_Structures.cxx:64
TFloatVector TNodeCoord
Definition: MED_Structures.hxx:236
double TFloat
Definition: MED_Common.hxx:44
TCSlice< TFloat > TCFloatVecSlice
Definition: MED_Structures.hxx:235
void CopyTimeStampValueBase(const PTimeStampValueBase &theValueFrom, const PTimeStampValueBase &theValueTo)
Definition: MED_Structures.hxx:949
EModeProfil
Definition: MED_Common.hxx:74
EGeometrieElement
Definition: MED_Common.hxx:64
@ ePOLYGONE
Definition: MED_Common.hxx:68
@ ePOLYEDRE
Definition: MED_Common.hxx:68
SharedPtr< TFloatTimeStampValue > PFloatTimeStampValue
Definition: MED_Structures.hxx:890
TTMeshValue< TIntVector > TIntMeshValue
Definition: MED_Structures.hxx:753
std::set< EGeometrieElement > TGeomSet
Definition: MED_Common.hxx:89
TVector< TCConnSlice > TCConnSliceArr
Definition: MED_Structures.hxx:351
std::set< EGeometrieElement > TGeom
Definition: MED_Structures.hxx:769
TCSlice< TInt > TCIntVecSlice
Definition: MED_Structures.hxx:129
EConnectivite
Definition: MED_Common.hxx:62
EMaillage
Definition: MED_Common.hxx:58
EBooleen
Definition: MED_Common.hxx:43
SharedPtr< TNodeCoord > PNodeCoord
Definition: MED_Structures.hxx:237
TCSlice< TFloat > TCValueSlice
Definition: MED_Structures.hxx:759
TFloatVector TWeight
Definition: MED_Structures.hxx:440
TInt GetNbConn(EGeometrieElement typmai, EEntiteMaillage, TInt)
Definition: MED_Common.cxx:67
TInt GetNbNodes(EGeometrieElement typmai)
Definition: MED_Common.cxx:75
std::map< EGeometrieElement, PGaussInfo > TGeom2Gauss
Definition: MED_Structures.hxx:494
TCIntVecSlice TCConnSlice
Definition: MED_Structures.hxx:275
void CopyTimeStampValue(SharedPtr< TTimeStampValue< TMeshValueTypeFrom > > theTimeStampValueFrom, SharedPtr< TTimeStampValue< TMeshValueTypeTo > > theTimeStampValueTo)
Definition: MED_Structures.hxx:904
TSlice< TFloat > TValueSlice
Definition: MED_Structures.hxx:758
med_int TInt
Definition: MED_Common.hxx:50
TFloatVecSlice TCoordSlice
Definition: MED_Structures.hxx:238
TVector< char > TString
Defines a type for managing sequence of strings.
Definition: MED_Structures.hxx:41
TCFloatVecSlice TCCoordSlice
Definition: MED_Structures.hxx:239
EGrilleType
Definition: MED_Common.hxx:76
ETypeChamp
Definition: MED_Common.hxx:56
@ eINT
Definition: MED_Common.hxx:56
@ eFLOAT64
Definition: MED_Common.hxx:56
TInt GetNbRefCoord(EGeometrieElement theGeom)
Get number of referenced nodes for the defined type of mesh cell.
Definition: MED_Structures.cxx:70
TVector< TValueSlice > TValueSliceArr
Definition: MED_Structures.hxx:762
std::map< TInt, TFloatVector > TIndexes
Definition: MED_Structures.hxx:971
EModeSwitch
Definition: MED_Common.hxx:54
@ eFULL_INTERLACE
Definition: MED_Common.hxx:54
PFloatTimeStampValue PTimeStampVal
Definition: MED_Structures.hxx:968
TVector< TConnSlice > TConnSliceArr
Definition: MED_Structures.hxx:352
std::map< EGeometrieElement, TInt > TGeom2Size
Definition: MED_Common.hxx:86
PIntTimeStampValue CastToIntTimeStampValue(const PTimeStampValueBase &theTimeStampValue)
Definition: MED_Structures.cxx:83
TSlice< TInt > TIntVecSlice
Definition: MED_Structures.hxx:128
SharedPtr< TElemNum > PElemNum
Definition: MED_Structures.hxx:183
PFloatTimeStampValue CastToFloatTimeStampValue(const PTimeStampValueBase &theTimeStampValue)
Definition: MED_Structures.cxx:77
std::map< EGeometrieElement, PProfileInfo > TGeom2Profile
Definition: MED_Structures.hxx:768
std::map< EGeometrieElement, TMeshValue > TGeom2Value
Definition: MED_Structures.hxx:765
QString GetName(const Handle(SALOME_InteractiveObject)&theIO)
Definition: SMESHGUI_Utils.cxx:252
GEOM::GEOM_Object_var GetGeom(_PTR(SObject) theSO)
Definition: SMESHGUI_GEOMGenUtils.cxx:86
Define a class representing MED_BALL structure element.
Definition: MED_Structures.hxx:346
TFloatVector myDiameters
Definition: MED_Structures.hxx:347
Define a parent class for all MEDWrapper classes.
Definition: MED_Structures.hxx:73
virtual ~TBase()
Definition: MED_Structures.hxx:74
Define a base class which represents MED Cells entity.
Definition: MED_Structures.hxx:282
EConnectivite myConnMode
Defines connectivity mode.
Definition: MED_Structures.hxx:291
EGeometrieElement GetGeom() const
Find out what MED geometrical type the cells belong to.
Definition: MED_Structures.hxx:289
EGeometrieElement myGeom
Defines the MED Geometric type of the instance.
Definition: MED_Structures.hxx:287
virtual TInt GetConnDim() const =0
Gives step in the connectivity sequence.
EConnectivite GetConnMode() const
Find out in what connectivity the cells are written.
Definition: MED_Structures.hxx:293
EEntiteMaillage myEntity
Defines the MED Entity where the mesh cells belongs to.
Definition: MED_Structures.hxx:283
EEntiteMaillage GetEntity() const
Find out what MED ENTITY the cells belong to.
Definition: MED_Structures.hxx:285
PElemNum myConn
Defines sequence which describe connectivity for each of mesh cell.
Definition: MED_Structures.hxx:297
Define a parent class for all MED entities that describes mesh entities such as nodes and cells.
Definition: MED_Structures.hxx:188
PElemNum myFamNum
Get number of mesh elements.
Definition: MED_Structures.hxx:197
EBooleen IsElemNames() const
Let know if the mesh elements have names.
Definition: MED_Structures.hxx:223
virtual std::string GetElemName(TInt theId) const =0
Get name of the mesh element by its order number.
EBooleen IsElemNum() const
Let know if the mesh elements are indexed.
Definition: MED_Structures.hxx:206
PMeshInfo myMeshInfo
A reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:189
PString myElemNames
Contains sequence of the names for the mesh elements.
Definition: MED_Structures.hxx:226
EBooleen myIsElemNum
Defines if the mesh elements are indexed.
Definition: MED_Structures.hxx:204
PElemNum myElemNum
Contains sequence of the indexes for the mesh elements.
Definition: MED_Structures.hxx:214
EBooleen myIsElemNames
Defines if the mesh elements are named.
Definition: MED_Structures.hxx:221
virtual void SetElemName(TInt theId, const std::string &theValue)=0
Set name of the mesh element by its order number.
TInt GetNbElem() const
Definition: MED_Structures.hxx:194
EBooleen myIsFamNum
Defines if the mesh elements family are indexed.
Definition: MED_Structures.hxx:209
const PMeshInfo & GetMeshInfo() const
Get a reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:191
TInt myNbElem
Definition: MED_Structures.hxx:193
EBooleen IsFamNum() const
Let know if the mesh elements family are indexed.
Definition: MED_Structures.hxx:211
Define a base class which represents MED Family entity.
Definition: MED_Structures.hxx:135
TFamAttr myAttrId
Defines sequence of the indexes of the MED Family attributes.
Definition: MED_Structures.hxx:160
virtual std::string GetGroupName(TInt theId) const =0
Gets name of a bound MED GROUP by its number.
TInt myNbGroup
Define number of the MED FAMILY.
Definition: MED_Structures.hxx:144
TInt myNbAttr
Defines number of the MED Family attributes.
Definition: MED_Structures.hxx:155
void SetId(TInt theId)
Definition: MED_Structures.hxx:142
TString myGroupNames
Contains sequence of the names for the MED Groups connected to.
Definition: MED_Structures.hxx:149
virtual void SetAttrDesc(TInt theId, const std::string &theValue)=0
Set value of the MED FAMILY attribute by its number.
TInt GetId() const
Gets number of the MED FAMILY.
Definition: MED_Structures.hxx:141
TInt GetNbAttr() const
Gets number of attached attributes for the MED FAMILY.
Definition: MED_Structures.hxx:157
TInt GetNbGroup() const
Gets number of MED GROUPS the MED FAMILY is bound to.
Definition: MED_Structures.hxx:146
TInt myId
An unique index of the MED FAMILY.
Definition: MED_Structures.hxx:140
TString myAttrDesc
Defines sequence of the names of the MED Family attributes.
Definition: MED_Structures.hxx:174
virtual std::string GetAttrDesc(TInt theId) const =0
Get value of the MED FAMILY attribute by its number.
virtual void SetGroupName(TInt theId, const std::string &theValue)=0
Sets name of the defined MED GROUP by its number.
PMeshInfo myMeshInfo
A reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:136
const PMeshInfo & GetMeshInfo() const
Get a reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:138
TFamAttr myAttrVal
Defines sequence of the values of the MED Family attributes.
Definition: MED_Structures.hxx:167
Define a base class which represents MED Field entity.
Definition: MED_Structures.hxx:393
virtual std::string GetCompName(TInt theId) const =0
Get name of the component by its order number.
virtual void SetCompName(TInt theId, const std::string &theValue)=0
Set name for the component by its order number.
ETypeChamp GetType() const
Find out what type of MED FIELD is used.
Definition: MED_Structures.hxx:400
virtual std::string GetUnitName(TInt theId) const =0
Get unit of the component by its order number.
PMeshInfo myMeshInfo
A reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:394
ETypeChamp myType
Defines type of MED Field.
Definition: MED_Structures.hxx:398
TString myUnitNames
Contains units for each of MED Field components.
Definition: MED_Structures.hxx:420
TInt GetNbComp() const
Get number of components for MED FIELD.
Definition: MED_Structures.hxx:404
TString myCompNames
Contains names for each of MED Field components.
Definition: MED_Structures.hxx:414
const PMeshInfo & GetMeshInfo() const
Get a reference to corresponding MED Mesh.
Definition: MED_Structures.hxx:396
TInt myNbRef
Defines number of references of the field.
Definition: MED_Structures.hxx:410
TInt GetNbRef() const
Find out number of references for the MED FIELD.
Definition: MED_Structures.hxx:412
EBooleen myIsLocal
Defines if the MED Field is local.
Definition: MED_Structures.hxx:406
virtual void SetUnitName(TInt theId, const std::string &theValue)=0
Set unit for the component by its order number.
TInt myNbComp
Defines number of components stored in the field.
Definition: MED_Structures.hxx:402
EBooleen GetIsLocal() const
Find out if MED FIELD is local or not.
Definition: MED_Structures.hxx:408
Definition: MED_Structures.hxx:451
The class represents MED Gauss entity.
Definition: MED_Structures.hxx:447
TNodeCoord myGaussCoord
Contains coordinates for the Gauss points.
Definition: MED_Structures.hxx:473
TNodeCoord myRefCoord
Contains coordinates for the referenced nodes.
Definition: MED_Structures.hxx:465
boost::tuple< TKey, TInt > TInfo
Definition: MED_Structures.hxx:449
TInt GetNbGauss() const
Gives number of the Gauss Points.
Definition: MED_Structures.hxx:490
EGeometrieElement GetGeom() const
Find out what MED geometrical type the MED GAUSS entity belong to.
Definition: MED_Structures.hxx:462
TWeight myWeight
Contains weights for the Gauss points.
Definition: MED_Structures.hxx:481
TInt GetNbRef() const
Gives number of the referenced nodes.
Definition: MED_Structures.hxx:484
EGeometrieElement myGeom
Defines, which geometrical type the MED Gauss entity belongs to.
Definition: MED_Structures.hxx:460
TInt GetDim() const
Gives dimension of the referenced nodes.
Definition: MED_Structures.hxx:487
boost::tuple< EGeometrieElement, std::string > TKey
Definition: MED_Structures.hxx:448
Define a base class which represents MED Grille (structured mesh)
Definition: MED_Structures.hxx:978
EGrilleType myGrilleType
Defines grille type (eGRILLE_CARTESIENNE,eGRILLE_POLAIRE,eGRILLE_STANDARD)
Definition: MED_Structures.hxx:991
virtual std::string GetCoordUnit(TInt theId) const =0
Get name of unit for the coordinate dimension by its order number.
TString myCoordNames
Contains names for the coordinate dimensions.
Definition: MED_Structures.hxx:999
TNodeCoord myCoord
Contains all nodal coordinates, now used only for eGRILLE_STANDARD.
Definition: MED_Structures.hxx:982
PMeshInfo myMeshInfo
Definition: MED_Structures.hxx:979
virtual void SetCoordUnit(TInt theId, const std::string &theValue)=0
Set name of unit for the coordinate dimension by its order number.
TElemNum myFamSubNum
Defines sequence MED Family indexes for sub entities.
Definition: MED_Structures.hxx:1055
TElemNum myFamNum
Defines sequence MED Family indexes for corresponding mesh entities.
Definition: MED_Structures.hxx:1046
virtual std::string GetCoordName(TInt theId) const =0
Get name of the coordinate dimension by its order number.
TString myCoordUnits
Contains units for the coordinate dimensions.
Definition: MED_Structures.hxx:1005
TElemNum myFamNumNode
Defines sequence MED Family indexes for corresponding mesh nodes.
Definition: MED_Structures.hxx:1064
const PMeshInfo & GetMeshInfo() const
Definition: MED_Structures.hxx:980
virtual void SetCoordName(TInt theId, const std::string &theValue)=0
Set name of the coordinate dimension by its order number.
TIndexes myIndixes
Map of index of axes and Table of indexes for certain axe, now used for eGRILLE_CARTESIENNE and eGRIL...
Definition: MED_Structures.hxx:1012
TIntVector myGrilleStructure
Return sub entity.
Definition: MED_Structures.hxx:1035
Define a base class which represents MED Mesh entity.
Definition: MED_Structures.hxx:112
virtual std::string GetDesc() const =0
Get description for the mesh.
TInt mySpaceDim
Definition: MED_Structures.hxx:116
EMaillage myType
Type of the mesh.
Definition: MED_Structures.hxx:119
TInt GetSpaceDim() const
Definition: MED_Structures.hxx:117
TInt GetDim() const
Gets dimension of the mesh.
Definition: MED_Structures.hxx:114
virtual void SetDesc(const std::string &theValue)=0
Sets description for the mesh.
EMaillage GetType() const
Gets type of the mesh.
Definition: MED_Structures.hxx:120
TString myDesc
Description of the mesh.
Definition: MED_Structures.hxx:122
TInt myDim
Dimension of the mesh (0, 1, 2 or 3)
Definition: MED_Structures.hxx:113
The class is a helper one. It provide safe and flexible way to get access to values for a MED TimeSta...
Definition: MED_Structures.hxx:571
void Allocate(TInt theNbElem, TInt theNbGauss, TInt theNbComp, EModeSwitch theMode=eFULL_INTERLACE)
Initialize the class.
Definition: MED_Structures.cxx:280
size_t GetStep() const
Returns step inside of the data array.
Definition: MED_Structures.cxx:317
TInt myNbComp
Definition: MED_Structures.hxx:573
virtual unsigned char * GetValuePtr()=0
Returns bare pointer on the internal value representation.
TInt myNbElem
Definition: MED_Structures.hxx:572
TInt myNbGauss
Definition: MED_Structures.hxx:574
TInt myStep
Definition: MED_Structures.hxx:575
Define a parent class for all MED entities that contains a sequence of numbers.
Definition: MED_Structures.hxx:94
TModeSwitchInfo()
To construct instance of the class by default.
Definition: MED_Structures.hxx:96
TModeSwitchInfo(EModeSwitch theModeSwitch)
To construct instance of the class.
Definition: MED_Structures.hxx:101
EModeSwitch GetModeSwitch() const
Definition: MED_Structures.hxx:106
EModeSwitch myModeSwitch
Keeps the interlace mode.
Definition: MED_Structures.hxx:105
Define a parent class for all named MED entities.
Definition: MED_Structures.hxx:80
virtual void SetName(const std::string &theValue)=0
Set a new name.
TString myName
Keeps its name.
Definition: MED_Structures.hxx:81
virtual std::string GetName() const =0
Gets its name.
virtual void SetName(const TString &theValue)=0
Set a new name.
Define a base class which represents MED Nodes entity.
Definition: MED_Structures.hxx:246
virtual void SetCoordUnit(TInt theId, const std::string &theValue)=0
Set name of unit for the coordinate dimension by its order number.
virtual std::string GetCoordName(TInt theId) const =0
Get name of the coordinate dimension by its order number.
TString myCoordUnits
Contains units for the coordinate dimensions.
Definition: MED_Structures.hxx:266
PNodeCoord myCoord
Contains all nodal coordinates.
Definition: MED_Structures.hxx:247
ERepere mySystem
Defines, which coordinate system is used.
Definition: MED_Structures.hxx:254
void SetSystem(ERepere theSystem)
Set coordinate system to be used for the node describing.
Definition: MED_Structures.hxx:258
TString myCoordNames
Contains names for the coordinate dimensions.
Definition: MED_Structures.hxx:260
ERepere GetSystem() const
Get which coordinate system is used for the node describing.
Definition: MED_Structures.hxx:256
virtual void SetCoordName(TInt theId, const std::string &theValue)=0
Set name of the coordinate dimension by its order number.
virtual std::string GetCoordUnit(TInt theId) const =0
Get name of unit for the coordinate dimension by its order number.
Define a base class which represents MED Polyedre entity.
Definition: MED_Structures.hxx:358
EGeometrieElement GetGeom() const
Find out what MED geometrical type the MED Polyedres belong to.
Definition: MED_Structures.hxx:367
EEntiteMaillage myEntity
Defines the MED Entity where the polyedres belongs to.
Definition: MED_Structures.hxx:360
EConnectivite myConnMode
Defines connectivity mode.
Definition: MED_Structures.hxx:370
EEntiteMaillage GetEntity() const
Find out what MED ENTITY the MED Polyedres belong to.
Definition: MED_Structures.hxx:362
PElemNum myIndex
Table de indexes.
Definition: MED_Structures.hxx:376
PElemNum myFaces
Table de faces indexes.
Definition: MED_Structures.hxx:375
EConnectivite GetConnMode() const
Find out in what connectivity the cells are written.
Definition: MED_Structures.hxx:372
EGeometrieElement myGeom
Defines the MED Geometric type of the instance.
Definition: MED_Structures.hxx:365
PElemNum myConn
Table de connectivities.
Definition: MED_Structures.hxx:374
Define a base class which represents MED Polygon entity.
Definition: MED_Structures.hxx:309
EGeometrieElement GetGeom() const
Find out what MED geometrical type the MED Polygons belong to.
Definition: MED_Structures.hxx:318
EEntiteMaillage GetEntity() const
Find out what MED ENTITY the MED Polygons belong to.
Definition: MED_Structures.hxx:313
PElemNum myIndex
Table de indexes.
Definition: MED_Structures.hxx:326
PElemNum myConn
Table de connectivities.
Definition: MED_Structures.hxx:325
EEntiteMaillage myEntity
Defines the MED Entity where the polygons belongs to.
Definition: MED_Structures.hxx:311
EGeometrieElement myGeom
Defines the MED Geometric type of the instance.
Definition: MED_Structures.hxx:316
EConnectivite myConnMode
Defines connectivity mode.
Definition: MED_Structures.hxx:321
EConnectivite GetConnMode() const
Find out in what connectivity the cells are written.
Definition: MED_Structures.hxx:323
The class represents MED Profile entity.
Definition: MED_Structures.hxx:544
std::string TKey
Definition: MED_Structures.hxx:545
TInt GetSize() const
Find out size of the MED Profile.
Definition: MED_Structures.hxx:564
boost::tuple< TKey, TInt > TInfo
Definition: MED_Structures.hxx:546
bool IsPresent() const
Find out if the MED Profile defined.
Definition: MED_Structures.hxx:561
PElemNum myElemNum
Keeps sequence of cell by its number which belong to the profile.
Definition: MED_Structures.hxx:554
void SetMode(EModeProfil theMode)
Set mode for the MED Profile.
Definition: MED_Structures.hxx:552
EModeProfil myMode
Keeps mode for the MED Profile.
Definition: MED_Structures.hxx:548
EModeProfil GetMode() const
Find out what mode of MED Profile is used.
Definition: MED_Structures.hxx:550
The class is a helper one. It provide safe and flexible way to get access to values for a MED TimeSta...
Definition: MED_Structures.hxx:613
TCSlice< TElement > TCValueSlice
Definition: MED_Structures.hxx:618
TValue myValue
Definition: MED_Structures.hxx:623
TValueSliceArr GetCompValueSliceArr(TInt theElemId)
Iteration through components by corresponding Gauss Points.
Definition: MED_Structures.hxx:728
TCValueSliceArr GetCompValueSliceArr(TInt theElemId) const
Iteration through components by corresponding Gauss Points.
Definition: MED_Structures.hxx:706
virtual const TElement * GetPointer() const
Returns bare pointer on the internal value representation.
Definition: MED_Structures.hxx:655
TValueSliceArr GetGaussValueSliceArr(TInt theElemId)
Iteration through Gauss Points by their components.
Definition: MED_Structures.hxx:684
virtual TElement * GetPointer()
Returns bare pointer on the internal value representation.
Definition: MED_Structures.hxx:647
TVector< TCValueSlice > TCValueSliceArr
Definition: MED_Structures.hxx:620
TCValueSliceArr GetGaussValueSliceArr(TInt theElemId) const
Iteration through Gauss Points by their components.
Definition: MED_Structures.hxx:662
virtual unsigned char * GetValuePtr()
Returns bare pointer on the internal value representation.
Definition: MED_Structures.hxx:639
TValueType::value_type TElement
Definition: MED_Structures.hxx:615
TSlice< TElement > TValueSlice
Definition: MED_Structures.hxx:617
TVector< TValueSlice > TValueSliceArr
Definition: MED_Structures.hxx:621
void Allocate(TInt theNbElem, TInt theNbGauss, TInt theNbComp, EModeSwitch theMode=eFULL_INTERLACE)
Initialize the class.
Definition: MED_Structures.hxx:627
TValueType TValue
Definition: MED_Structures.hxx:614
Define a base class which represents MED TimeStamp.
Definition: MED_Structures.hxx:501
TString myUnitDt
Defines unit for the time for the MED TimeStamp.
Definition: MED_Structures.hxx:533
TInt GetNumOrd() const
Defines number for the MED TimeStamp.
Definition: MED_Structures.hxx:523
TFloat GetDt() const
Defines time for the MED TimeStamp.
Definition: MED_Structures.hxx:526
EEntiteMaillage myEntity
Defines the MED Entity where the MED TimeStamp belongs to.
Definition: MED_Structures.hxx:507
const TGeom2Gauss & GetGeom2Gauss() const
Gets a map of MED Gauss entityes per geometric type.
Definition: MED_Structures.hxx:531
virtual void SetUnitDt(const std::string &theValue)=0
Set unit of time for the MED TimeStamp.
const PFieldInfo & GetFieldInfo() const
Get a reference to corresponding MED Field.
Definition: MED_Structures.hxx:504
TGeom2Gauss myGeom2Gauss
Keeps map of MED Gauss entityes per geometric type.
Definition: MED_Structures.hxx:529
TFloat myDt
Keeps time for the MED TimeStamp.
Definition: MED_Structures.hxx:525
TInt myNumDt
Keeps number in time for the MED TimeStamp.
Definition: MED_Structures.hxx:519
TGeom2NbGauss myGeom2NbGauss
Keeps number of the Gauss Points for the MED TimeStamp.
Definition: MED_Structures.hxx:516
virtual std::string GetUnitDt() const =0
Get unit of time for the MED TimeStamp.
PFieldInfo myFieldInfo
A reference to corresponding MED Field.
Definition: MED_Structures.hxx:502
TGeom2Size myGeom2Size
Keeps map of number of cells per geometric type where the MED TimeStamp belongs to.
Definition: MED_Structures.hxx:512
EEntiteMaillage GetEntity() const
Find out to what MED Entity the MED TimeStamp belong to.
Definition: MED_Structures.hxx:509
TInt GetNumDt() const
Defines number in time for the MED TimeStamp.
Definition: MED_Structures.hxx:520
TInt myNumOrd
Keeps number for the MED TimeStamp.
Definition: MED_Structures.hxx:522
const TGeom2Size & GetGeom2Size() const
Get map of number of cells per geometric type where the MED TimeStamp belongs to.
Definition: MED_Structures.hxx:514
The class is a base class for MED TimeStamp values holder.
Definition: MED_Structures.hxx:775
virtual unsigned char * GetValuePtr(EGeometrieElement theGeom)=0
virtual ETypeChamp GetTypeChamp() const =0
Gets type of the champ.
const TGeomSet & GetGeomSet() const
Definition: MED_Structures.hxx:783
TGeom2Profile myGeom2Profile
Keeps map of MED Profiles per geometric type.
Definition: MED_Structures.hxx:786
const TGeom2Profile & GetGeom2Profile() const
Gets a map of MED Profiles per geometric type.
Definition: MED_Structures.hxx:788
virtual size_t GetNbVal(EGeometrieElement theGeom) const =0
virtual void AllocateValue(EGeometrieElement theGeom, TInt theNbElem, TInt theNbGauss, TInt theNbComp, EModeSwitch theMode=eFULL_INTERLACE)=0
Allocates values for the given geometry.
PTimeStampInfo myTimeStampInfo
A reference to corresponding MED TimeStamp.
Definition: MED_Structures.hxx:777
virtual size_t GetNbGauss(EGeometrieElement theGeom) const =0
virtual size_t GetValueSize(EGeometrieElement theGeom) const =0
const PTimeStampInfo & GetTimeStampInfo() const
Definition: MED_Structures.hxx:779
TGeomSet myGeomSet
Keeps set of MED EGeometrieElement which contains values for the timestamp.
Definition: MED_Structures.hxx:782
The class implements a container for MED TimeStamp values.
Definition: MED_Structures.hxx:826
const TTGeom2Value & GetGeom2Value() const
Definition: MED_Structures.hxx:846
const PTMeshValue & GetMeshValuePtr(EGeometrieElement theGeom) const
Gets MED TimeStamp values for the given geometric type (const version)
Definition: MED_Structures.hxx:853
const TTMeshValue & GetMeshValue(EGeometrieElement theGeom) const
Gets MED TimeStamp values for the given geometric type (const version)
Definition: MED_Structures.hxx:875
SharedPtr< TMeshValueType > PTMeshValue
Definition: MED_Structures.hxx:828
TTGeom2Value myGeom2Value
Keeps map of MED TimeStamp values per geometric type (const version)
Definition: MED_Structures.hxx:843
ETypeChamp myTypeChamp
Definition: MED_Structures.hxx:832
TMeshValueType::TElement TElement
Definition: MED_Structures.hxx:829
TMeshValueType TTMeshValue
Definition: MED_Structures.hxx:827
std::map< EGeometrieElement, PTMeshValue > TTGeom2Value
Definition: MED_Structures.hxx:830
virtual ETypeChamp GetTypeChamp() const
Gets type of the champ.
Definition: MED_Structures.hxx:837
TTMeshValue & GetMeshValue(EGeometrieElement theGeom)
Gets MED TimeStamp values for the given geometric type.
Definition: MED_Structures.hxx:882
PTMeshValue & GetMeshValuePtr(EGeometrieElement theGeom)
Gets MED TimeStamp values for the given geometric type.
Definition: MED_Structures.hxx:863