boost::shared_ptr<SketchPlugin_Feature> aSketchFeature =
boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
aSketchFeature->move(aDeltaX, aDeltaY);
+ static Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY);
+ ModelAPI_EventCreator::get()->sendUpdated(feature(), anEvent);
}
sendFeatures();
std::list<int> PartSet_OperationSketchBase::getSelectionModes(ObjectPtr theFeature) const
{
std::list<int> aModes;
- FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
- if (aFeature) {
- if (PartSet_Tools::isConstraintFeature(aFeature->getKind())) {
- aModes.clear();
- aModes.push_back(AIS_DSM_Text);
- aModes.push_back(AIS_DSM_Line);
- return aModes;
- }
- }
+ //FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
+ //if (aFeature) {
+ // if (PartSet_Tools::isConstraintFeature(aFeature->getKind())) {
+ // aModes.clear();
+ // aModes.push_back(AIS_DSM_Text);
+ // aModes.push_back(AIS_DSM_Line);
+ // return aModes;
+ // }
+ //}
aModes.push_back(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)TopAbs_VERTEX));
aModes.push_back(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)TopAbs_EDGE));
+ aModes.push_back(AIS_DSM_Text);
+ aModes.push_back(AIS_DSM_Line);
return aModes;
}
FeaturePtr PartSet_OperationSketchBase::createFeature(const bool theFlushMessage)