mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-04 23:34:16 +05:00
INT PAL 0053060: Preview in clipping
This commit is contained in:
parent
537bc67863
commit
d1ed915c68
@ -1134,9 +1134,10 @@ void SMESHGUI_ClippingDlg::updateActorItem( QListWidgetItem* theItem,
|
|||||||
anActorList.remove( anActor );
|
anActorList.remove( anActor );
|
||||||
|
|
||||||
if( SMESH::ComputeBounds( anActorList, myBounds ) ) {
|
if( SMESH::ComputeBounds( anActorList, myBounds ) ) {
|
||||||
myPreviewWidget->On();
|
|
||||||
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
||||||
myBounds[3], myBounds[4], myBounds[5] );
|
myBounds[3], myBounds[4], myBounds[5] );
|
||||||
|
if( PreviewCheckBox->isChecked() )
|
||||||
|
myPreviewWidget->On();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
myPreviewWidget->Off();
|
myPreviewWidget->Off();
|
||||||
@ -1249,9 +1250,10 @@ void SMESHGUI_ClippingDlg::ClickOnNew()
|
|||||||
bool anIsBlocked = ActorList->blockSignals( true );
|
bool anIsBlocked = ActorList->blockSignals( true );
|
||||||
|
|
||||||
if( SMESH::ComputeBounds( anActorList, myBounds ) ) {
|
if( SMESH::ComputeBounds( anActorList, myBounds ) ) {
|
||||||
myPreviewWidget->On();
|
|
||||||
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
||||||
myBounds[3], myBounds[4], myBounds[5] );
|
myBounds[3], myBounds[4], myBounds[5] );
|
||||||
|
if( PreviewCheckBox->isChecked() )
|
||||||
|
myPreviewWidget->On();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
myPreviewWidget->Off();
|
myPreviewWidget->Off();
|
||||||
@ -1342,9 +1344,10 @@ void SMESHGUI_ClippingDlg::onSelectPlane ( int theIndex )
|
|||||||
myIsSelectPlane = false;
|
myIsSelectPlane = false;
|
||||||
|
|
||||||
if( SMESH::ComputeBounds( aPlaneData.ActorList, myBounds ) ) {
|
if( SMESH::ComputeBounds( aPlaneData.ActorList, myBounds ) ) {
|
||||||
myPreviewWidget->On();
|
|
||||||
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2],
|
||||||
myBounds[3], myBounds[4], myBounds[5] );
|
myBounds[3], myBounds[4], myBounds[5] );
|
||||||
|
if( PreviewCheckBox->isChecked() )
|
||||||
|
myPreviewWidget->On();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
myPreviewWidget->Off();
|
myPreviewWidget->Off();
|
||||||
|
Loading…
Reference in New Issue
Block a user