PAL13460 (PAL EDF 301 force the mesh to go through a point)

make simple constructors protected to allow creating ancestors
   without SMESH_Gen
This commit is contained in:
eap 2007-02-21 16:58:23 +00:00
parent abbf577ef8
commit 17b708df4a
2 changed files with 20 additions and 19 deletions

View File

@ -81,22 +81,22 @@ static int MYDEBUG = 0;
*/ */
//============================================================================= //=============================================================================
SMESH_Mesh::SMESH_Mesh(int theLocalId, SMESH_Mesh::SMESH_Mesh(int theLocalId,
int theStudyId, int theStudyId,
SMESH_Gen* theGen, SMESH_Gen* theGen,
bool theIsEmbeddedMode, bool theIsEmbeddedMode,
SMESHDS_Document* theDocument): SMESHDS_Document* theDocument):
_groupId( 0 ) _groupId( 0 )
{ {
MESSAGE("SMESH_Mesh::SMESH_Mesh(int localId)"); MESSAGE("SMESH_Mesh::SMESH_Mesh(int localId)");
_id = theLocalId; _id = theLocalId;
_studyId = theStudyId; _studyId = theStudyId;
_gen = theGen; _gen = theGen;
_myDocument = theDocument; _myDocument = theDocument;
_idDoc = theDocument->NewMesh(theIsEmbeddedMode); _idDoc = theDocument->NewMesh(theIsEmbeddedMode);
_myMeshDS = theDocument->GetMesh(_idDoc); _myMeshDS = theDocument->GetMesh(_idDoc);
_myMeshDS->ShapeToMesh( PseudoShape() );
_isShapeToMesh = false; _isShapeToMesh = false;
_myMeshDS->ShapeToMesh( PseudoShape() );
} }
//============================================================================= //=============================================================================

View File

@ -72,18 +72,15 @@ class SMESH_subMesh;
class SMESH_HypoFilter; class SMESH_HypoFilter;
class TopoDS_Solid; class TopoDS_Solid;
//typedef NMTTools_IndexedDataMapOfShapeIndexedMapOfShape IndexedMapOfChain;
typedef SMESH_IndexedDataMapOfShapeIndexedMapOfShape IndexedMapOfChain; typedef SMESH_IndexedDataMapOfShapeIndexedMapOfShape IndexedMapOfChain;
class SMESH_Mesh class SMESH_Mesh
{ {
SMESH_Mesh();
SMESH_Mesh(const SMESH_Mesh&);
public: public:
SMESH_Mesh(int theLocalId, SMESH_Mesh(int theLocalId,
int theStudyId, int theStudyId,
SMESH_Gen* theGen, SMESH_Gen* theGen,
bool theIsEmbeddedMode, bool theIsEmbeddedMode,
SMESHDS_Document* theDocument); SMESHDS_Document* theDocument);
virtual ~SMESH_Mesh(); virtual ~SMESH_Mesh();
@ -273,7 +270,7 @@ private:
void CleanMeshOnPropagationChain(const TopoDS_Shape& theMainEdge); void CleanMeshOnPropagationChain(const TopoDS_Shape& theMainEdge);
// //
private: protected:
int _id; // id given by creator (unique within the creator instance) int _id; // id given by creator (unique within the creator instance)
int _studyId; int _studyId;
int _idDoc; // id given by SMESHDS_Document int _idDoc; // id given by SMESHDS_Document
@ -289,6 +286,10 @@ private:
TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors; TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors;
IndexedMapOfChain _mapPropagationChains; // Propagation hypothesis management IndexedMapOfChain _mapPropagationChains; // Propagation hypothesis management
protected:
SMESH_Mesh() {};
SMESH_Mesh(const SMESH_Mesh&) {};
}; };
#endif #endif