Salome HOME
ba3a626f277cbaf09184d6a579a879a52f826772
[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 const TopoDS_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()->impl<TopoDS_Shape>();
30 }
31
32 int PartSet_OperationSketchBase::getSelectionMode() const
33 {
34   return 0;
35 }