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:
@@ -623,6 +623,15 @@ void SelectMgr_ViewerSelector::TraverseSensitives()
|
||||
SortResult();
|
||||
}
|
||||
|
||||
//==================================================
|
||||
// Function: ClearPicked
|
||||
// Purpose :
|
||||
//==================================================
|
||||
void SelectMgr_ViewerSelector::ClearPicked()
|
||||
{
|
||||
mystored.Clear();
|
||||
}
|
||||
|
||||
//==================================================
|
||||
// Function: Picked
|
||||
// Purpose :
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user