mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-01 17:36:21 +03:00
Visualization, Selection - allow HandleMouseClick for schemes, allowing to select an object #416
This commit is contained in:
parent
db58517016
commit
c4911b9652
@ -2742,7 +2742,10 @@ AIS_StatusOfPick AIS_InteractiveContext::SelectPoint(const Graphic3d_Vec2i& t
|
||||
|
||||
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();
|
||||
|
@ -565,6 +565,8 @@ public: //! @name Selection management
|
||||
//! (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);
|
||||
|
||||
|
@ -75,6 +75,8 @@ public:
|
||||
//! @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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user