SMESH_MeshEditor.hxx \
SMESH_Block.hxx \
SMESH_Pattern.hxx \
- SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx
+ SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx \
+ SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx \
+ SMESH_SequenceOfElemPtr.hxx
EXPORT_PYSCRIPTS =
--- /dev/null
+// File: SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx
+// Created: 26.09.05 17:41:10
+// Author: Sergey KUUL
+// Copyright: Airbus Industries 2004
+
+
+#ifndef SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
+#define SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
+
+#include <SMESH_SequenceOfElemPtr.hxx>
+
+#include <NCollection_DefineDataMap.hxx>
+
+inline Standard_Integer HashCode(SMDS_MeshElementPtr theElem,
+ const Standard_Integer theUpper)
+{
+ SMDS_MeshElement * anElem = (SMDS_MeshElement *) theElem;
+ return HashCode(anElem,theUpper);
+}
+
+inline Standard_Boolean IsEqual(SMDS_MeshElementPtr theOne,
+ SMDS_MeshElementPtr theTwo)
+{
+ return theOne == theTwo;
+}
+
+DEFINE_BASECOLLECTION (SMESH_BaseCollectionSequenceOfElemPtr, SMESH_SequenceOfElemPtr)
+DEFINE_DATAMAP (SMESH_DataMapOfElemPtrSequenceOfElemPtr,
+ SMESH_BaseCollectionSequenceOfElemPtr,
+ SMDS_MeshElementPtr, SMESH_SequenceOfElemPtr)
+#endif
sweepElement( aMesh, elem, newNodesItVec, newElemsMap[elem] );
// fill history
- TColStd_ListOfInteger ListNewID;
+ //TColStd_ListOfInteger ListNewID;
+ SMESH_SequenceOfElemPtr SeqNewME;
list<const SMDS_MeshElement*> tmpList = newElemsMap[elem];
for(list<const SMDS_MeshElement*>::iterator ite = tmpList.begin();
ite!=tmpList.end(); ite++) {
- ListNewID.Append((*ite)->GetID());
+ //ListNewID.Append((*ite)->GetID());
+ SeqNewME.Append(*ite);
}
- myExtrusionHistory.Bind(elem->GetID(),ListNewID);
+ //myExtrusionHistory.Bind(elem->GetID(),ListNewID);
+ myExtrusionHistory.Bind(elem,SeqNewME);
// end fill history
}
#include <list>
#include <map>
-#include <TColStd_DataMapOfIntegerListOfInteger.hxx>
+//#include <TColStd_DataMapOfIntegerListOfInteger.hxx>
+#include <SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx>
class SMDS_MeshElement;
class SMDS_MeshFace;
SMESHDS_Mesh * GetMeshDS() { return myMesh->GetMeshDS(); }
- const TColStd_DataMapOfIntegerListOfInteger& GetExtrusionHistory() const
+ const SMESH_DataMapOfElemPtrSequenceOfElemPtr& GetExtrusionHistory() const
{ return myExtrusionHistory; }
private:
SMESH_Mesh * myMesh;
- TColStd_DataMapOfIntegerListOfInteger myExtrusionHistory;
+ SMESH_DataMapOfElemPtrSequenceOfElemPtr myExtrusionHistory;
};
--- /dev/null
+// File: SMESH_SequenceOfElemPtr.hxx
+// Created: 26.09.05 17:41:10
+// Author: Sergey KUUL
+// Copyright: Airbus Industries 2004
+
+
+#ifndef SMESH_SequenceOfElemPtr_HeaderFile
+#define SMESH_SequenceOfElemPtr_HeaderFile
+
+#include <NCollection_DefineSequence.hxx>
+
+//#include <Handle_SMDS_MeshElement.hxx>
+#include <SMDS_MeshElement.hxx>
+
+typedef const SMDS_MeshElement* SMDS_MeshElementPtr;
+
+DEFINE_BASECOLLECTION (SMESH_BaseCollectionElemPtr, SMDS_MeshElementPtr)
+DEFINE_SEQUENCE (SMESH_SequenceOfElemPtr, SMESH_BaseCollectionElemPtr, SMDS_MeshElementPtr)
+
+#endif