Salome HOME
a9f861fbbbac67b1f02167350d01b8358de1cc64
[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_PropPanelOperation(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() const
27 {
28   boost::shared_ptr<SketchPlugin_Feature> aFeature = 
29     boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
30   return aFeature->preview();
31 }