1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0029724: Visualization - add AIS_InteractiveContext::ClearDetected() undoing MoveTo() dynamic highlighting

Introduced new method AIS_InteractiveContext::ClearDetected() allowing
to reset the list of detected objects and clear dynamically highlighted
entity under mouse cursor after previous AIS_InteractiveContext::MoveTo().

vmoveto command has been extended with new argument -reset.
This commit is contained in:
kgv
2018-04-25 11:38:11 +03:00
committed by abv
parent be480fe752
commit 8a5905801c
6 changed files with 117 additions and 39 deletions

View File

@@ -623,6 +623,15 @@ void SelectMgr_ViewerSelector::TraverseSensitives()
SortResult();
}
//==================================================
// Function: ClearPicked
// Purpose :
//==================================================
void SelectMgr_ViewerSelector::ClearPicked()
{
mystored.Clear();
}
//==================================================
// Function: Picked
// Purpose :

View File

@@ -112,6 +112,9 @@ public:
//! Returns the number of detected owners.
Standard_Integer NbPicked() const { return mystored.Extent(); }
//! Clears picking results.
Standard_EXPORT void ClearPicked();
//! Returns the entity Owner for the object picked at specified position.
//! @param theRank rank of detected object within range 1...NbPicked()
Standard_EXPORT Handle(SelectMgr_EntityOwner) Picked (const Standard_Integer theRank) const;