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

0028088: Visualization, AIS_InteractiveContext - drop default value for Update Viewer parameter

This commit is contained in:
isk
2016-12-27 13:24:08 +03:00
committed by kgv
parent 9bcfd6f649
commit 0577ae8ca4
65 changed files with 884 additions and 715 deletions

View File

@@ -196,14 +196,16 @@ void DocumentCommon::onColor()
Quantity_Color color( aRetColor.red() / 255., aRetColor.green() / 255.,
aRetColor.blue() / 255., Quantity_TOC_RGB );
for (; myContext->MoreSelected(); myContext->NextSelected() )
myContext->SetColor( myContext->SelectedInteractive(), color.Name() );
myContext->SetColor( myContext->SelectedInteractive(), color.Name(), Standard_False);
myContext->UpdateCurrentViewer();
}
}
void DocumentCommon::onMaterial( int theMaterial )
{
for ( myContext->InitSelected(); myContext->MoreSelected (); myContext->NextSelected () )
myContext->SetMaterial( myContext->SelectedInteractive(), (Graphic3d_NameOfMaterial)theMaterial );
myContext->SetMaterial( myContext->SelectedInteractive(), (Graphic3d_NameOfMaterial)theMaterial, Standard_False);
myContext->UpdateCurrentViewer();
}
void DocumentCommon::onMaterial()
@@ -216,7 +218,8 @@ void DocumentCommon::onMaterial()
void DocumentCommon::onTransparency( int theTrans )
{
for( myContext->InitSelected(); myContext->MoreSelected(); myContext->NextSelected() )
myContext->SetTransparency( myContext->SelectedInteractive(), ((Standard_Real)theTrans) / 10.0 );
myContext->SetTransparency (myContext->SelectedInteractive(), ((Standard_Real)theTrans) / 10.0, Standard_False);
myContext->UpdateCurrentViewer();
}
void DocumentCommon::onTransparency()
@@ -229,7 +232,7 @@ void DocumentCommon::onTransparency()
void DocumentCommon::onDelete()
{
myContext->EraseSelected (Standard_False);
myContext->ClearSelected();
myContext->ClearSelected (Standard_False);
myContext->UpdateCurrentViewer();
getApplication()->onSelectionChanged();
}

View File

@@ -820,25 +820,25 @@ void View::DragEvent( const int x, const int y, const int TheState )
if ( TheState == 1 )
{
myContext->Select( theButtonDownX, theButtonDownY, x, y, myView );
myContext->Select( theButtonDownX, theButtonDownY, x, y, myView, Standard_True );
emit selectionChanged();
}
}
void View::InputEvent( const int /*x*/, const int /*y*/ )
{
myContext->Select();
myContext->Select (Standard_True);
emit selectionChanged();
}
void View::MoveEvent( const int x, const int y )
{
myContext->MoveTo( x, y, myView );
myContext->MoveTo( x, y, myView, Standard_True );
}
void View::MultiMoveEvent( const int x, const int y )
{
myContext->MoveTo( x, y, myView );
myContext->MoveTo( x, y, myView, Standard_True );
}
void View::MultiDragEvent( const int x, const int y, const int TheState )
@@ -853,14 +853,14 @@ void View::MultiDragEvent( const int x, const int y, const int TheState )
}
if ( TheState == 0 )
{
myContext->ShiftSelect( theButtonDownX, theButtonDownY, x, y, myView );
myContext->ShiftSelect( theButtonDownX, theButtonDownY, x, y, myView, Standard_True );
emit selectionChanged();
}
}
void View::MultiInputEvent( const int /*x*/, const int /*y*/ )
{
myContext->ShiftSelect();
myContext->ShiftSelect (Standard_True);
emit selectionChanged();
}