Version: 9.16.0
MED_Structures.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23#ifndef MED_Structures_HeaderFile
24#define MED_Structures_HeaderFile
25
26#include "MED_WrapperDef.hxx"
27#include "MED_Common.hxx"
28#include "MED_Utilities.hxx"
29#include "MED_SliceArray.hxx"
30
31#include <boost/tuple/tuple.hpp>
32
33#ifdef WIN32
34#pragma warning(disable:4251)
35#endif
36
37namespace MED
38{
39 //---------------------------------------------------------------
43
44 //---------------------------------------------------------------
47 std::string
48 GetString(TInt theId,
49 TInt theStep,
50 const TString& theString);
51
52 //---------------------------------------------------------------
55 void
56 SetString(TInt theId,
57 TInt theStep,
58 TString& theString,
59 const std::string& theValue);
60
61 //---------------------------------------------------------------
64 void
65 SetString(TInt theId,
66 TInt theStep,
67 TString& theString,
68 const TString& theValue);
69
70 //---------------------------------------------------------------
73 {
74 virtual ~TBase() {}
75 };
76
77 //---------------------------------------------------------------
80 {
82 virtual std::string GetName() const = 0;
83 virtual void SetName(const std::string& theValue) = 0;
84 virtual void SetName(const TString& theValue) = 0;
85 };
86
87 //---------------------------------------------------------------
89
94 {
97 myModeSwitch(eFULL_INTERLACE)
98 {}
99
102 myModeSwitch(theModeSwitch)
103 {}
104
106 EModeSwitch GetModeSwitch() const { return myModeSwitch; }
107 };
108
109 //---------------------------------------------------------------
112 {
114 TInt GetDim() const { return myDim; }
115
117 TInt GetSpaceDim() const { return mySpaceDim; }
118
120 EMaillage GetType() const { return myType; }
121
123 virtual std::string GetDesc() const = 0;
124 virtual void SetDesc(const std::string& theValue) = 0;
125 };
126
127 //---------------------------------------------------------------
131
132 //---------------------------------------------------------------
135 {
138 const PMeshInfo& GetMeshInfo() const { return myMeshInfo; }
139
141 TInt GetId() const { return myId; }
142 void SetId(TInt theId) { myId = theId; }
143
146 TInt GetNbGroup() const { return myNbGroup; }
147
151 virtual std::string GetGroupName(TInt theId) const = 0;
153 virtual void SetGroupName(TInt theId, const std::string& theValue) = 0;
154
157 TInt GetNbAttr() const { return myNbAttr; }
158
162 TInt GetAttrId(TInt theId) const;
164 void SetAttrId(TInt theId, TInt theVal);
165
169 TInt GetAttrVal(TInt theId) const;
171 void SetAttrVal(TInt theId, TInt theVal);
172
176 virtual std::string GetAttrDesc(TInt theId) const = 0;
178 virtual void SetAttrDesc(TInt theId, const std::string& theValue) = 0;
179 };
180
181 //---------------------------------------------------------------
184
185 //---------------------------------------------------------------
188 {
191 const PMeshInfo& GetMeshInfo() const { return myMeshInfo; }
192
193 TInt myNbElem; //<! Number of corresponding mesh entities
194 TInt GetNbElem() const { return myNbElem; }
195
199 TInt GetFamNum(TInt theId) const;
201 void SetFamNum(TInt theId, TInt theVal);
202
206 EBooleen IsElemNum() const { return myIsElemNum; }
207
211 EBooleen IsFamNum() const { return myIsFamNum; }
212
216 TInt GetElemNum(TInt theId) const;
218 void SetElemNum(TInt theId, TInt theVal);
219
223 EBooleen IsElemNames() const { return myIsElemNames; }
224
228 virtual std::string GetElemName(TInt theId) const = 0;
230 virtual void SetElemName(TInt theId, const std::string& theValue) = 0;
231 };
232
233 //---------------------------------------------------------------
240
241 //---------------------------------------------------------------
244 virtual TElemInfo,
245 virtual TModeSwitchInfo
246 {
248
250 TCCoordSlice GetCoordSlice(TInt theId) const;
252 TCoordSlice GetCoordSlice(TInt theId);
253
256 ERepere GetSystem() const { return mySystem; }
258 void SetSystem(ERepere theSystem) { mySystem = theSystem; }
259
262 virtual std::string GetCoordName(TInt theId) const = 0;
264 virtual void SetCoordName(TInt theId, const std::string& theValue) = 0;
265
268 virtual std::string GetCoordUnit(TInt theId) const = 0;
270 virtual void SetCoordUnit(TInt theId, const std::string& theValue) = 0;
271 };
272
273 //---------------------------------------------------------------
276
277 //---------------------------------------------------------------
280 virtual TElemInfo,
281 virtual TModeSwitchInfo
282 {
285 EEntiteMaillage GetEntity() const { return myEntity; }
286
289 EGeometrieElement GetGeom() const { return myGeom; }
290
293 EConnectivite GetConnMode() const { return myConnMode; }
294
295 virtual TInt GetConnDim() const = 0;
296
298
300 TCConnSlice GetConnSlice(TInt theElemId) const;
302 TConnSlice GetConnSlice(TInt theElemId);
303 };
304
305 //---------------------------------------------------------------
308 virtual TElemInfo
309 {
311 EEntiteMaillage myEntity; // MED_FACE|MED_MAILLE
313 EEntiteMaillage GetEntity() const { return myEntity; }
314
319
321 EConnectivite myConnMode; // eNOD|eDESC(eDESC not used)
323 EConnectivite GetConnMode() const { return myConnMode; }
324
327
329 TInt GetNbConn(TInt theElemId) const;
330
332 TCConnSlice GetConnSlice(TInt theElemId) const;
334 TConnSlice GetConnSlice(TInt theElemId);
335 };
336
337 //---------------------------------------------------------------
339
345 virtual TCellInfo
346 {
348 };
349
350 //---------------------------------------------------------------
353
354 //---------------------------------------------------------------
357 virtual TElemInfo
358 {
360 EEntiteMaillage myEntity; // MED_FACE|MED_MAILLE
362 EEntiteMaillage GetEntity() const { return myEntity; }
363
368
370 EConnectivite myConnMode; // eNOD|eDESC(eDESC not used)
372 EConnectivite GetConnMode() const { return myConnMode; }
373
377
379 TInt GetNbFaces(TInt theElemId) const;
381 TInt GetNbNodes(TInt theElemId) const;
382
384 TCConnSliceArr GetConnSliceArr(TInt theElemId) const;
386 TConnSliceArr GetConnSliceArr(TInt theElemId);
387 };
388
389 //---------------------------------------------------------------
392 virtual TNameInfo
393 {
396 const PMeshInfo& GetMeshInfo() const { return myMeshInfo; }
397
400 ETypeChamp GetType() const { return myType; }
401
404 TInt GetNbComp() const { return myNbComp; }
405
408 EBooleen GetIsLocal() const { return myIsLocal; }
409
412 TInt GetNbRef() const { return myNbRef; }
413
416 virtual std::string GetCompName(TInt theId) const = 0;
418 virtual void SetCompName(TInt theId, const std::string& theValue) = 0;
419
422 virtual std::string GetUnitName(TInt theId) const = 0;
424 virtual void SetUnitName(TInt theId, const std::string& theValue) = 0;
425 };
426
427 //---------------------------------------------------------------
430 TInt
432
433 //---------------------------------------------------------------
436 TInt
438
439 //---------------------------------------------------------------
441
442 //---------------------------------------------------------------
445 virtual TNameInfo,
446 virtual TModeSwitchInfo
447 {
448 typedef boost::tuple<EGeometrieElement,std::string> TKey;
449 typedef boost::tuple<TKey,TInt> TInfo;
451 {
452 bool
453 operator()(const TKey& theLeft, const TKey& theRight) const;
454
455 bool
456 operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const;
457 };
458
462 EGeometrieElement GetGeom() const { return myGeom; }
463
466
468 TCCoordSlice GetRefCoordSlice(TInt theId) const;
470 TCoordSlice GetRefCoordSlice(TInt theId);
471
474
476 TCCoordSlice GetGaussCoordSlice(TInt theId) const;
478 TCoordSlice GetGaussCoordSlice(TInt theId);
479
482
484 TInt GetNbRef() const { return GetNbRefCoord(GetGeom()); }
485
487 TInt GetDim() const { return GetDimGaussCoord(GetGeom()); }
488
490 TInt GetNbGauss() const { return (TInt)(myGaussCoord.size() / GetDim()); }
491 };
492
493 //---------------------------------------------------------------
494 typedef std::map<EGeometrieElement,PGaussInfo> TGeom2Gauss;
495 typedef std::map<EGeometrieElement,TInt> TGeom2NbGauss;
496
497 //---------------------------------------------------------------
500 virtual TBase
501 {
504 const PFieldInfo& GetFieldInfo() const { return myFieldInfo; }
505
509 EEntiteMaillage GetEntity() const { return myEntity; }
510
514 const TGeom2Size& GetGeom2Size() const { return myGeom2Size; }
515
517 TInt GetNbGauss(EGeometrieElement theGeom) const;
518
520 TInt GetNumDt() const { return myNumDt; }
521
523 TInt GetNumOrd() const { return myNumOrd; }
524
526 TFloat GetDt() const { return myDt; }
527
531 const TGeom2Gauss& GetGeom2Gauss() const { return myGeom2Gauss; }
532
535 virtual std::string GetUnitDt() const = 0;
537 virtual void SetUnitDt(const std::string& theValue) = 0;
538 };
539
540 //---------------------------------------------------------------
543 virtual TNameInfo
544 {
545 typedef std::string TKey;
546 typedef boost::tuple<TKey,TInt> TInfo;
547
550 EModeProfil GetMode() const { return myMode; }
552 void SetMode(EModeProfil theMode) { myMode = theMode; }
553
556 TInt GetElemNum(TInt theId) const;
558 void SetElemNum(TInt theId, TInt theVal);
559
561 bool IsPresent() const { return GetName() != ""; }
562
564 TInt GetSize() const { return (TInt)myElemNum->size(); }
565 };
566
567 //---------------------------------------------------------------
570 virtual TModeSwitchInfo
571 {
576
578
580 void
581 Allocate(TInt theNbElem,
582 TInt theNbGauss,
583 TInt theNbComp,
584 EModeSwitch theMode = eFULL_INTERLACE);
585
587 size_t
588 GetSize() const;
589
591 size_t
592 GetNbVal() const;
593
595 size_t
596 GetNbGauss() const;
597
599 size_t
600 GetStep() const;
601
603 virtual
604 unsigned char*
606 };
607
608 //---------------------------------------------------------------
610 template<class TValueType>
612 virtual TMeshValueBase
613 {
614 typedef TValueType TValue;
615 typedef typename TValueType::value_type TElement;
616
619
622
624
626 void
627 Allocate(TInt theNbElem,
628 TInt theNbGauss,
629 TInt theNbComp,
631 {
632 TMeshValueBase::Allocate(theNbElem, theNbGauss, theNbComp, theMode);
633 myValue.resize(theNbElem * this->GetStep());
634 }
635
637 virtual
638 unsigned char*
640 {
641 return (unsigned char*)&myValue[0];
642 }
643
645 virtual
646 TElement*
648 {
649 return &myValue[0];
650 }
651
653 virtual
654 const TElement*
656 {
657 return &myValue[0];
658 }
659
663 {
664 TCValueSliceArr aValueSliceArr(myNbGauss);
666 TInt anId = theElemId * myStep;
667 for(TInt aGaussId = 0; aGaussId < myNbGauss; aGaussId++){
668 aValueSliceArr[aGaussId] =
669 TCValueSlice(myValue, std::slice(anId, myNbComp, 1));
670 anId += myNbComp;
671 }
672 }
673 else{
674 for(TInt aGaussId = 0; aGaussId < myNbGauss; aGaussId++){
675 aValueSliceArr[aGaussId] =
676 TCValueSlice(myValue, std::slice(theElemId, myNbComp, myStep));
677 }
678 }
679 return aValueSliceArr;
680 }
681
685 {
686 TValueSliceArr aValueSliceArr(myNbGauss);
688 TInt anId = theElemId*myStep;
689 for(TInt aGaussId = 0; aGaussId < myNbGauss; aGaussId++){
690 aValueSliceArr[aGaussId] =
691 TValueSlice(myValue, std::slice(anId, myNbComp, 1));
692 anId += myNbComp;
693 }
694 }
695 else{
696 for(TInt aGaussId = 0; aGaussId < myNbGauss; aGaussId++){
697 aValueSliceArr[aGaussId] =
698 TValueSlice(myValue, std::slice(theElemId, myNbComp, myStep));
699 }
700 }
701 return aValueSliceArr;
702 }
703
706 GetCompValueSliceArr(TInt theElemId) const
707 {
708 TCValueSliceArr aValueSliceArr(myNbComp);
710 TInt anId = theElemId*myStep;
711 for(TInt aCompId = 0; aCompId < myNbComp; aCompId++){
712 aValueSliceArr[aCompId] =
713 TCValueSlice(myValue, std::slice(anId, myNbGauss, myNbComp));
714 anId += 1;
715 }
716 }
717 else{
718 for(TInt aCompId = 0; aCompId < myNbComp; aCompId++){
719 aValueSliceArr[aCompId] =
720 TCValueSlice(myValue, std::slice(theElemId, myNbGauss, myStep));
721 }
722 }
723 return aValueSliceArr;
724 }
725
729 {
731 TValueSliceArr aValueSliceArr(myNbComp);
732 TInt anId = theElemId*myStep;
733 for(TInt aCompId = 0; aCompId < myNbComp; aCompId++){
734 aValueSliceArr[aCompId] =
735 TValueSlice(myValue, std::slice(anId, myNbGauss, myNbComp));
736 anId += 1;
737 }
738 return aValueSliceArr;
739 }
740 else{
741 TValueSliceArr aValueSliceArr(myNbGauss);
742 for(TInt aGaussId = 0; aGaussId < myNbGauss; aGaussId++){
743 aValueSliceArr[aGaussId] =
744 TValueSlice(myValue,std::slice(theElemId, myNbComp, myStep));
745 }
746 return aValueSliceArr;
747 }
748 }
749 };
750
751 //---------------------------------------------------------------
754
755 //---------------------------------------------------------------
756 // Backward compatibility declarations
760
763
765 typedef std::map<EGeometrieElement,TMeshValue> TGeom2Value;
766
767 //---------------------------------------------------------------
768 typedef std::map<EGeometrieElement,PProfileInfo> TGeom2Profile;
769 typedef std::set<EGeometrieElement> TGeom;
770
771 //---------------------------------------------------------------
774 virtual TModeSwitchInfo
775 {
779 const PTimeStampInfo& GetTimeStampInfo() const { return myTimeStampInfo; }
780
783 const TGeomSet& GetGeomSet() const { return myGeomSet; }
784
788 const TGeom2Profile& GetGeom2Profile() const { return myGeom2Profile; }
789
791 virtual
793 GetTypeChamp() const = 0;
794
796 virtual
797 void
799 TInt theNbElem,
800 TInt theNbGauss,
801 TInt theNbComp,
802 EModeSwitch theMode = eFULL_INTERLACE) = 0;
803
804 virtual
805 size_t
806 GetValueSize(EGeometrieElement theGeom) const = 0;
807
808 virtual
809 size_t
810 GetNbVal(EGeometrieElement theGeom) const = 0;
811
812 virtual
813 size_t
814 GetNbGauss(EGeometrieElement theGeom) const = 0;
815
816 virtual
817 unsigned char*
819 };
820
821 //---------------------------------------------------------------
823 template<class TMeshValueType>
825 virtual TTimeStampValueBase
826 {
827 typedef TMeshValueType TTMeshValue;
829 typedef typename TMeshValueType::TElement TElement;
830 typedef std::map<EGeometrieElement, PTMeshValue> TTGeom2Value;
831
832 ETypeChamp myTypeChamp; //<! Keeps type of the champ
833
835 virtual
838 {
839 return myTypeChamp;
840 }
841
844
845 const TTGeom2Value&
847 {
848 return myGeom2Value;
849 }
850
852 const PTMeshValue&
854 {
855 typename TTGeom2Value::const_iterator anIter = myGeom2Value.find(theGeom);
856 if(anIter == myGeom2Value.end())
857 EXCEPTION(std::runtime_error,"TTimeStampValue::GetMeshValuePtr - myGeom2Value.find(theGeom) fails");
858 return anIter->second;
859 }
860
864 {
865 myGeomSet.insert(theGeom);
866 if(myGeom2Value.find(theGeom) == myGeom2Value.end()){
867 myGeom2Value[theGeom] = PTMeshValue(new TTMeshValue());
868 return myGeom2Value[theGeom];
869 }
870 return myGeom2Value[theGeom];
871 }
872
874 const TTMeshValue&
876 {
877 return *(this->GetMeshValuePtr(theGeom));
878 }
879
883 {
884 return *(this->GetMeshValuePtr(theGeom));
885 }
886 };
887
888 //---------------------------------------------------------------
891
893 CastToFloatTimeStampValue(const PTimeStampValueBase& theTimeStampValue);
894
897
899 CastToIntTimeStampValue(const PTimeStampValueBase& theTimeStampValue);
900
901 //---------------------------------------------------------------
902 template<class TMeshValueTypeFrom, class TMeshValueTypeTo>
903 void
905 SharedPtr<TTimeStampValue<TMeshValueTypeTo> > theTimeStampValueTo)
906 {
907 typedef TTimeStampValue<TMeshValueTypeFrom> TimeStampValueTypeFrom;
908 typedef TTimeStampValue<TMeshValueTypeTo> TimeStampValueTypeTo;
909 typedef typename TMeshValueTypeTo::TElement TElementTo;
910
911 typename TimeStampValueTypeFrom::TTGeom2Value& aGeom2Value = theTimeStampValueFrom->myGeom2Value;
912 typename TimeStampValueTypeFrom::TTGeom2Value::const_iterator anIter = aGeom2Value.begin();
913 for(; anIter != aGeom2Value.end(); anIter++){
914 const EGeometrieElement& aGeom = anIter->first;
915 const typename TimeStampValueTypeFrom::TTMeshValue& aMeshValue = *anIter->second;
916 typename TimeStampValueTypeTo::TTMeshValue& aMeshValue2 = theTimeStampValueTo->GetMeshValue(aGeom);
917 aMeshValue2.Allocate(aMeshValue.myNbElem,
918 aMeshValue.myNbGauss,
919 aMeshValue.myNbComp,
920 aMeshValue.myModeSwitch);
921 const typename TimeStampValueTypeFrom::TTMeshValue::TValue& aValue = aMeshValue.myValue;
922 typename TimeStampValueTypeTo::TTMeshValue::TValue& aValue2 = aMeshValue2.myValue;
923 TInt aSize = aValue.size();
924 for(TInt anId = 0; anId < aSize; anId++)
925 aValue2[anId] = TElementTo(aValue[anId]);
926 }
927 }
928
929 //---------------------------------------------------------------
930 template<class TMeshValueType>
931 void
933 SharedPtr<TTimeStampValue<TMeshValueType> > theTimeStampValueTo)
934 {
935 typedef TTimeStampValue<TMeshValueType> TimeStampValueType;
936 typename TimeStampValueType::TTGeom2Value& aGeom2Value = theTimeStampValueFrom->myGeom2Value;
937 typename TimeStampValueType::TTGeom2Value::const_iterator anIter = aGeom2Value.begin();
938 for(; anIter != aGeom2Value.end(); anIter++){
939 const EGeometrieElement& aGeom = anIter->first;
940 const typename TimeStampValueType::TTMeshValue& aMeshValue = *anIter->second;
941 typename TimeStampValueType::TTMeshValue& aMeshValue2 = theTimeStampValueTo->GetMeshValue(aGeom);
942 aMeshValue2 = aMeshValue;
943 }
944 }
945
946 //---------------------------------------------------------------
947 inline
948 void
950 const PTimeStampValueBase& theValueTo)
951 {
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);
957 }else{
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);
962 }
963 }
964
965 //---------------------------------------------------------------
966 // Backward compatibility declarations
969
970 //---------------------------------------------------------------
971 typedef std::map<TInt,TFloatVector> TIndexes;
972 typedef std::map<TInt,TString> TNames;
973
974 //---------------------------------------------------------------
977 virtual TModeSwitchInfo
978 {
980 const PMeshInfo& GetMeshInfo() const { return myMeshInfo; }
981
984 const TNodeCoord& GetNodeCoord() const;
985 TNodeCoord& GetNodeCoord();
987 TNodeCoord GetCoord(TInt theId);
989 TIntVector GetConn(TInt theId, const bool isSub=false);
990
993 const EGrilleType& GetGrilleType() const;
995 EGrilleType GetGrilleType();
997 void SetGrilleType(EGrilleType theGrilleType);
998
1001 virtual std::string GetCoordName(TInt theId) const = 0 ;
1003 virtual void SetCoordName(TInt theId, const std::string& theValue) = 0;
1004
1007 virtual std::string GetCoordUnit(TInt theId) const = 0;
1009 virtual void SetCoordUnit(TInt theId, const std::string& theValue) = 0;
1010
1014 const TIndexes& GetMapOfIndexes() const ;
1016 TIndexes& GetMapOfIndexes();
1018 const TFloatVector& GetIndexes(TInt theAxisNumber) const;
1020 TFloatVector& GetIndexes(TInt theAxisNumber);
1022 TInt GetNbIndexes(TInt theAxisNumber);
1023
1024 TInt GetNbNodes();
1025 TInt GetNbCells();
1026 TInt GetNbSubCells();
1028 EGeometrieElement GetSubGeom();
1029 EEntiteMaillage GetEntity();
1030 EEntiteMaillage GetSubEntity();
1031
1037 const TIntVector& GetGrilleStructure() const;
1039 TIntVector GetGrilleStructure();
1041 void SetGrilleStructure(TInt theAxis,TInt theNb);
1042
1048 TInt GetFamNum(TInt theId) const;
1050 void SetFamNum(TInt theId, TInt theVal);
1051
1057 TInt GetFamSubNum(TInt theId) const;
1059 void SetFamSubNum(TInt theId, TInt theVal);
1060
1066 TInt GetFamNumNode(TInt theId) const;
1068 void SetFamNumNode(TInt theId, TInt theVal);
1069 };
1070}
1071
1072#endif // MED_Structures_HeaderFile
#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