mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-29 23:30:33 +05:00
Fix highlighting problem during interaction
This commit is contained in:
parent
29139022cc
commit
8935becb09
11
src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx
Executable file → Normal file
11
src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx
Executable file → Normal file
@ -232,6 +232,11 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t
|
|||||||
mySelection.Append( anAISContext->SelectedOwner() );
|
mySelection.Append( anAISContext->SelectedOwner() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( anAISContext->IsHilighted( myActiveIO ) )
|
||||||
|
{
|
||||||
|
anAISContext->Unhilight( myActiveIO, Standard_False );
|
||||||
|
}
|
||||||
|
|
||||||
anAISContext->ClearSelected( Standard_False );
|
anAISContext->ClearSelected( Standard_False );
|
||||||
anAISContext->AddOrRemoveSelected( aDetected );
|
anAISContext->AddOrRemoveSelected( aDetected );
|
||||||
|
|
||||||
@ -253,6 +258,12 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t
|
|||||||
if ( !myActiveIO.IsNull() )
|
if ( !myActiveIO.IsNull() )
|
||||||
{
|
{
|
||||||
const Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
|
const Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
|
||||||
|
|
||||||
|
if ( anAISContext->IsHilighted( myActiveIO ) )
|
||||||
|
{
|
||||||
|
anAISContext->Unhilight( myActiveIO, Standard_False );
|
||||||
|
}
|
||||||
|
|
||||||
const QPoint aDelta = aMouseEv->pos() - myStartPoint;
|
const QPoint aDelta = aMouseEv->pos() - myStartPoint;
|
||||||
myActiveIO->Drag( aDelta.x(), (-aDelta.y()), aView3d );
|
myActiveIO->Drag( aDelta.x(), (-aDelta.y()), aView3d );
|
||||||
anAISContext->Update( myActiveIO, Standard_False );
|
anAISContext->Update( myActiveIO, Standard_False );
|
||||||
|
0
src/MeasureGUI/MeasureGUI_AnnotationInteractor.h
Executable file → Normal file
0
src/MeasureGUI/MeasureGUI_AnnotationInteractor.h
Executable file → Normal file
Loading…
Reference in New Issue
Block a user