]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_OperationSketchBase.cpp
Salome HOME
864f77dda90f447729947fe20f8f97eb660ca097
[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 }
20
21 PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
22 {
23 }
24
25 boost::shared_ptr<GeomAPI_Shape> PartSet_OperationSketchBase::preview() const
26 {
27   boost::shared_ptr<SketchPlugin_Feature> aFeature = 
28     boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
29   return aFeature->preview();
30 }