mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
0021869: [CEA 672] Clipping always apply even with auto-apply not checked
This commit is contained in:
parent
55c69756c9
commit
a3a6c690ba
@ -370,7 +370,7 @@ SMESHGUI_ClippingDlg::SMESHGUI_ClippingDlg( SMESHGUI* theModule, SVTK_ViewWindow
|
|||||||
|
|
||||||
ActorList = new QListWidget(GroupPlanes);
|
ActorList = new QListWidget(GroupPlanes);
|
||||||
ActorList->setSelectionMode(QAbstractItemView::SingleSelection);
|
ActorList->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
|
||||||
SelectAllCheckBox = new QCheckBox(tr("SELECT_ALL"), GroupPlanes);
|
SelectAllCheckBox = new QCheckBox(tr("SELECT_ALL"), GroupPlanes);
|
||||||
|
|
||||||
GroupPlanesLayout->addWidget(ComboBoxPlanes, 0, 0);
|
GroupPlanesLayout->addWidget(ComboBoxPlanes, 0, 0);
|
||||||
@ -477,7 +477,7 @@ SMESHGUI_ClippingDlg::SMESHGUI_ClippingDlg( SMESHGUI* theModule, SVTK_ViewWindow
|
|||||||
connect(SpinBoxRot1, SIGNAL(valueChanged(double)), this, SLOT(SetCurrentPlaneParam()));
|
connect(SpinBoxRot1, SIGNAL(valueChanged(double)), this, SLOT(SetCurrentPlaneParam()));
|
||||||
connect(SpinBoxRot2, SIGNAL(valueChanged(double)), this, SLOT(SetCurrentPlaneParam()));
|
connect(SpinBoxRot2, SIGNAL(valueChanged(double)), this, SLOT(SetCurrentPlaneParam()));
|
||||||
connect(PreviewCheckBox, SIGNAL(toggled(bool)), this, SLOT(OnPreviewToggle(bool)));
|
connect(PreviewCheckBox, SIGNAL(toggled(bool)), this, SLOT(OnPreviewToggle(bool)));
|
||||||
connect(AutoApplyCheckBox, SIGNAL(toggled(bool)), this, SLOT(ClickOnApply()));
|
connect(AutoApplyCheckBox, SIGNAL(toggled(bool)), this, SLOT(onAutoApply(bool)));
|
||||||
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
||||||
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
|
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
|
||||||
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
||||||
@ -1063,7 +1063,9 @@ void SMESHGUI_ClippingDlg::initializePlaneData()
|
|||||||
SMESHGUI_ClippingPlaneInfoList::const_iterator anIter2 = aClippingPlaneInfoList.begin();
|
SMESHGUI_ClippingPlaneInfoList::const_iterator anIter2 = aClippingPlaneInfoList.begin();
|
||||||
for( ; anIter2 != aClippingPlaneInfoList.end(); anIter2++ ) {
|
for( ; anIter2 != aClippingPlaneInfoList.end(); anIter2++ ) {
|
||||||
const SMESH::ClippingPlaneInfo& aClippingPlaneInfo = *anIter2;
|
const SMESH::ClippingPlaneInfo& aClippingPlaneInfo = *anIter2;
|
||||||
SMESH::TPlane aTPlane( aClippingPlaneInfo.Plane );
|
SMESH::OrientedPlane* anOrientedPlane = SMESH::OrientedPlane::New(myViewWindow);
|
||||||
|
anOrientedPlane->ShallowCopy(aClippingPlaneInfo.Plane);
|
||||||
|
SMESH::TPlane aTPlane( anOrientedPlane );
|
||||||
SMESH::TPlaneData aPlaneData( aTPlane, aClippingPlaneInfo.ActorList );
|
SMESH::TPlaneData aPlaneData( aTPlane, aClippingPlaneInfo.ActorList );
|
||||||
myPlanes.push_back( aPlaneData );
|
myPlanes.push_back( aPlaneData );
|
||||||
}
|
}
|
||||||
@ -1170,3 +1172,8 @@ void SMESHGUI_ClippingDlg::dumpPlaneData() const
|
|||||||
}
|
}
|
||||||
printf( "----------------------------------\n" );
|
printf( "----------------------------------\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SMESHGUI_ClippingDlg::onAutoApply(bool toggled)
|
||||||
|
{
|
||||||
|
if ( toggled ) ClickOnApply();
|
||||||
|
}
|
||||||
|
@ -201,6 +201,7 @@ public slots:
|
|||||||
void onSelectOrientation( int );
|
void onSelectOrientation( int );
|
||||||
void SetCurrentPlaneParam();
|
void SetCurrentPlaneParam();
|
||||||
void OnPreviewToggle( bool );
|
void OnPreviewToggle( bool );
|
||||||
|
void onAutoApply(bool);
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnCancel();
|
void ClickOnCancel();
|
||||||
void ClickOnApply();
|
void ClickOnApply();
|
||||||
|
Loading…
Reference in New Issue
Block a user