{
}
-bool PartSet_OperationSketch::isPerformedImmediately() const
+int PartSet_OperationSketch::getSelectionMode(boost::shared_ptr<ModelAPI_Feature> theFeature) const
{
- return false;
-}
-
-int PartSet_OperationSketch::getSelectionMode() const
-{
- return TopAbs_FACE;
+ int aMode = TopAbs_FACE;
+ if (isEditMode())
+ aMode = TopAbs_VERTEX;
+ return aMode;
}
void PartSet_OperationSketch::setSelectedShapes(const NCollection_List<TopoDS_Shape>& theList)
if (theList.IsEmpty())
return;
+ if (isEditMode())
+ return;
+
// get selected shape
const TopoDS_Shape& aShape = theList.First();
boost::shared_ptr<GeomAPI_Shape> aGShape(new GeomAPI_Shape);
aDirY->setValue(aC, anA, aB);
boost::shared_ptr<GeomAPI_Dir> aDir = aPlane->direction();
- emit viewerProjectionChange(aDir->x(), aDir->y(), aDir->z());
+ emit planeSelected(aDir->x(), aDir->y(), aDir->z());
- commit();
+ //commit();
+ //SketchPlugin_Sketch::setActive(myFeature);
}