#include <SketchPlugin_ConstraintFillet.h>
#include <SketchPlugin_ConstraintMirror.h>
#include <SketchPlugin_ConstraintAngle.h>
+#include <SketchPlugin_ConstraintCollinear.h>
+#include <SketchPlugin_ConstraintMiddle.h>
#include <SketchPlugin_MultiRotation.h>
#include <SketchPlugin_MultiTranslation.h>
+#include <SketchPlugin_IntersectionPoint.h>
#include <SketcherPrs_Tools.h>
aIds << SketchPlugin_Arc::ID().c_str();
aIds << SketchPlugin_Circle::ID().c_str();
aIds << SketchPlugin_ConstraintFillet::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";
aIds.append(constraintsIdList());
}
return aIds;
aIds << SketchPlugin_ConstraintAngle::ID().c_str();
aIds << SketchPlugin_MultiRotation::ID().c_str();
aIds << SketchPlugin_MultiTranslation::ID().c_str();
+ aIds << SketchPlugin_ConstraintCollinear::ID().c_str();
+ aIds << SketchPlugin_ConstraintMiddle::ID().c_str();
}
return aIds;
}
myPlaneFilter = new ModuleBase_ShapeInPlaneFilter();
myModule->workshop()->viewer()->addSelectionFilter(myPlaneFilter);
-
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();