AIS_StatusOfPick AIS_InteractiveContext::SelectDetected(const AIS_SelectionScheme theSelScheme)
{
- if (theSelScheme == AIS_SelectionScheme_Replace && !myLastPicked.IsNull())
+ // For all selection schemes, allowing to select an object,
+ // HandleMouseClick is available
+ if (theSelScheme != AIS_SelectionScheme_Remove && theSelScheme != AIS_SelectionScheme_Clear
+ && !myLastPicked.IsNull())
{
Graphic3d_Vec2i aMousePos(-1, -1);
gp_Pnt2d aMouseRealPos = MainSelector()->GetManager().GetMousePosition();
//! (Prs3d_TypeOfHighlight_Selected and Prs3d_TypeOfHighlight_LocalSelected)
//! @sa PrsMgr_PresentableObject::HilightAttributes() defining per-object highlight style of
//! selected owners (overrides defaults)
+ //! For all selection schemes, allowing to select an object,
+ //! HandleMouseClick is available
Standard_EXPORT AIS_StatusOfPick
SelectDetected(const AIS_SelectionScheme theSelScheme = AIS_SelectionScheme_Replace);
//! @param theModifiers key modifiers
//! @param theIsDoubleClick flag indicating double mouse click
//! @return TRUE if object handled click
+ //! For all selection schemes, allowing to select an object,
+ //! it's available
virtual Standard_Boolean HandleMouseClick(const Graphic3d_Vec2i& thePoint,
Aspect_VKeyMouse theButton,
Aspect_VKeyFlags theModifiers,