mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +05:00
Remove redundant code
This commit is contained in:
parent
b7331b4522
commit
f312091eb5
@ -400,7 +400,6 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
// TODO supprimer les lignes qui ne servent à rien le cas échéant
|
// TODO supprimer les lignes qui ne servent à rien le cas échéant
|
||||||
SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow();
|
SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow();
|
||||||
std::map< std::string , std::vector<Handle(AIS_InteractiveObject)> >::iterator AISit;
|
|
||||||
SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
|
SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
|
||||||
|
|
||||||
if (!myEditCurrentArgument->isEnabled())
|
if (!myEditCurrentArgument->isEnabled())
|
||||||
@ -434,17 +433,6 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
if ( myEditCurrentArgument == mySelectionGroup->LineEdit1 ) {
|
if ( myEditCurrentArgument == mySelectionGroup->LineEdit1 ) {
|
||||||
myFace = aSelectedObject;
|
myFace = aSelectedObject;
|
||||||
AISit = soccViewer->entry2aisobjects.find(myFaceEntry.toStdString());
|
|
||||||
if (AISit == soccViewer->entry2aisobjects.end())
|
|
||||||
return;
|
|
||||||
|
|
||||||
Handle(AIS_InteractiveObject) myAIS = (*AISit).second[0];
|
|
||||||
Handle(GEOM_AISShape) myAISShape;
|
|
||||||
if( myAIS->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) ) {
|
|
||||||
myAISShape = Handle(GEOM_AISShape)::DownCast( myAIS );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return ;
|
|
||||||
|
|
||||||
SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
|
SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
|
||||||
if ( !study ) return;
|
if ( !study ) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user