From: szy Date: Fri, 31 Oct 2014 12:07:25 +0000 (+0300) Subject: Interfaces to be used by Import feature. X-Git-Tag: V_0.5~48^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e77818ce255793f73f8188dedd30741f18942643;p=modules%2Fshaper.git Interfaces to be used by Import feature. --- diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index 9b3d2cac8..f4a37d353 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -237,4 +237,19 @@ void Model_ResultBody::loadAndOrientGeneratedShapes ( builder(theTag)->Generated(aRoot,aNewShape); } } +} + +void Model_ResultBody::loadFirstLevel(boost::shared_ptr theShapeIn,int& theTag) +{ + +} + +void Model_ResultBody::loadDisconnectedEdges(boost::shared_ptr theShapeIn,int& theTag) +{ + +} + +void Model_ResultBody::loadDisconnectedVertexes(boost::shared_ptr theShapeIn,int& theTag) +{ + } \ No newline at end of file diff --git a/src/Model/Model_ResultBody.h b/src/Model/Model_ResultBody.h index a12ccb87d..6526b9d55 100644 --- a/src/Model/Model_ResultBody.h +++ b/src/Model/Model_ResultBody.h @@ -82,6 +82,15 @@ public: const int theKindOfShape, const int theTag, GeomAPI_DataMapOfShapeShape& theSubShapes); + + /// load shapes of the first level (to be used during shape import) + MODEL_EXPORT virtual void loadFirstLevel(boost::shared_ptr theShape, int& theTag); + + /// load disconnected edges + MODEL_EXPORT virtual void loadDisconnectedEdges(boost::shared_ptr theShape, int& theTag); + + /// load disconnected vetexes + MODEL_EXPORT virtual void loadDisconnectedVertexes(boost::shared_ptr theShape, int& theTag); /// Removes the stored builders MODEL_EXPORT virtual ~Model_ResultBody(); diff --git a/src/ModelAPI/ModelAPI_ResultBody.h b/src/ModelAPI/ModelAPI_ResultBody.h index 4991cf279..cce169833 100644 --- a/src/ModelAPI/ModelAPI_ResultBody.h +++ b/src/ModelAPI/ModelAPI_ResultBody.h @@ -90,6 +90,16 @@ public: const int theKindOfShape, const int theTag, GeomAPI_DataMapOfShapeShape& theSubShapes) = 0; + + /// load shapes of the first level (to be used during shape import) + virtual void loadFirstLevel(boost::shared_ptr theShape, int& theTag) = 0; + + /// load disconnected edges + virtual void loadDisconnectedEdges(boost::shared_ptr theShape, int& theTag) = 0; + + /// load disconnected vetexes + virtual void loadDisconnectedVertexes(boost::shared_ptr theShape, int& theTag) = 0; + protected: };