]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_Feature.h
Salome HOME
Added interfaces to OCC data and algos: features must not depend on OCC
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Feature.h
index 4b91631c9ed43e799a43ae00cf83959c8ffa2f5a..a440dbdfdd2a353e6f6c74530c5a990a277344da 100644 (file)
@@ -8,7 +8,7 @@
 #include "SketchPlugin.h"
 #include <ModelAPI_Feature.h>
 
-#include "TopoDS_Shape.hxx"
+#include <GeomAPI_Shape.h>
 
 /**\class SketchPlugin_Feature
  * \ingroup DataModel
 class SketchPlugin_Feature: public ModelAPI_Feature
 {
 public:
- SKETCHPLUGIN_EXPORT virtual const TopoDS_Shape& preview() = 0;
+ SKETCHPLUGIN_EXPORT virtual const std::shared_ptr<GeomAPI_Shape>& preview() = 0;
 
 protected:
-  void setPreview(const TopoDS_Shape& theShape); ///< the preview shape
+  void setPreview(const std::shared_ptr<GeomAPI_Shape>& theShape); ///< the preview shape
 
 private:
-  TopoDS_Shape myPreview; ///< the preview shape
+  std::shared_ptr<GeomAPI_Shape> myPreview; ///< the preview shape
 };
 
 #endif