From e77818ce255793f73f8188dedd30741f18942643 Mon Sep 17 00:00:00 2001 From: szy Date: Fri, 31 Oct 2014 15:07:25 +0300 Subject: [PATCH] Interfaces to be used by Import feature. --- src/Model/Model_ResultBody.cpp | 15 +++++++++++++++ src/Model/Model_ResultBody.h | 9 +++++++++ src/ModelAPI/ModelAPI_ResultBody.h | 10 ++++++++++ 3 files changed, 34 insertions(+) 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: }; -- 2.39.2