1 // File: PartSet_OperationSketchLine.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #include <PartSet_OperationSketchLine.h>
7 #include <SketchPlugin_Feature.h>
15 PartSet_OperationSketchLine::PartSet_OperationSketchLine(const QString& theId,
17 boost::shared_ptr<ModelAPI_Feature> theFeature)
18 : PartSet_OperationSketchBase(theId, theParent), mySketch(theFeature)
22 PartSet_OperationSketchLine::~PartSet_OperationSketchLine()
26 bool PartSet_OperationSketchLine::isGranted() const
31 int PartSet_OperationSketchLine::getSelectionMode() const
36 void PartSet_OperationSketchLine::setSelectedShapes(const NCollection_List<TopoDS_Shape>& theList)
38 if (theList.IsEmpty())
42 void PartSet_OperationSketchLine::startOperation()
44 PartSet_OperationSketchBase::startOperation();
47 boost::shared_ptr<SketchPlugin_Feature> aFeature =
48 boost::dynamic_pointer_cast<SketchPlugin_Feature>(mySketch);
50 aFeature->addSub(feature());