]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_OperationSketchBase.cpp
Salome HOME
d1f4533a0f5cd8ec5445a5e7a86c1cd506801a82
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchBase.cpp
1 // File:        PartSet_OperationSketchBase.cpp
2 // Created:     20 Apr 2014
3 // Author:      Natalia ERMOLAEVA
4
5 #include <PartSet_OperationSketchBase.h>
6
7 #include <SketchPlugin_Feature.h>
8
9 #ifdef _DEBUG
10 #include <QDebug>
11 #endif
12
13 using namespace std;
14
15 PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId,
16                                                              QObject* theParent)
17 : ModuleBase_Operation(theId, theParent)
18 {
19   setEditMode(false);
20 }
21
22 PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
23 {
24 }
25
26 boost::shared_ptr<GeomAPI_Shape> PartSet_OperationSketchBase::preview(
27                                       boost::shared_ptr<ModelAPI_Feature> theFeature) const
28 {
29   boost::shared_ptr<SketchPlugin_Feature> aFeature = 
30                               boost::dynamic_pointer_cast<SketchPlugin_Feature>(theFeature);
31   return aFeature->preview();
32 }