#include <SketchPlugin_ConstraintMiddle.h>
#include <SketchPlugin_MultiRotation.h>
#include <SketchPlugin_MultiTranslation.h>
+#include <SketchPlugin_IntersectionPoint.h>
#include <SketcherPrs_Tools.h>
//#define DEBUG_CURSOR
-//#define DEBUG_INTERSECTION_POINT
-
/// Returns list of unique objects by sum of objects from List1 and List2
/*QList<ModuleBase_ViewerPrs> getSumList(const QList<ModuleBase_ViewerPrs>& theList1,
const QList<ModuleBase_ViewerPrs>& theList2)
aIds << SketchPlugin_Arc::ID().c_str();
aIds << SketchPlugin_Circle::ID().c_str();
aIds << SketchPlugin_ConstraintFillet::ID().c_str();
- aIds << SketchPlugin_Circle::ID().c_str();
+ aIds << SketchPlugin_IntersectionPoint::ID().c_str();
// TODO
// SketchRectangle is a python feature, so its ID is passed just as a string
aIds << "SketchRectangle";
if (myPlaneFilter.IsNull())
myPlaneFilter = new ModuleBase_ShapeInPlaneFilter();
-#ifndef DEBUG_INTERSECTION_POINT
myModule->workshop()->viewer()->addSelectionFilter(myPlaneFilter);
-#endif
bool aHasPlane = false;
std::shared_ptr<GeomAPI_Pln> aPln;
if (aFOperation->isEditOperation()) {
}
}
+void PartSet_SketcherMgr::activatePlaneFilter(const bool& toActivate)
+{
+ if (toActivate)
+ myModule->workshop()->viewer()->addSelectionFilter(myPlaneFilter);
+ else
+ myModule->workshop()->viewer()->removeSelectionFilter(myPlaneFilter);
+}
+
void PartSet_SketcherMgr::operationActivatedByPreselection()
{
ModuleBase_Operation* anOperation = getCurrentOperation();