X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FRepairGUI%2FRepairGUI_ChangeOrientationDlg.cxx;h=51ad304cdf3e27337f1d87cc55f2dc14def5b745;hb=7a3c2d25cc85b5c75acf2c8df92e4373af480d42;hp=60173a643a06432e0cb7cc1eac384f2e98c768fa;hpb=73555c78ebf12a1fdb85157b8e7934ad566ae90a;p=modules%2Fgeom.git diff --git a/src/RepairGUI/RepairGUI_ChangeOrientationDlg.cxx b/src/RepairGUI/RepairGUI_ChangeOrientationDlg.cxx index 60173a643..51ad304cd 100644 --- a/src/RepairGUI/RepairGUI_ChangeOrientationDlg.cxx +++ b/src/RepairGUI/RepairGUI_ChangeOrientationDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,18 +26,19 @@ // #include "RepairGUI_ChangeOrientationDlg.h" -#include -#include -#include +#include "DlgRef.h" +#include "GeometryGUI.h" +#include "GEOMBase.h" +#include "RepairGUI.h" -#include #include -#include #include +#include +#include +#include -#include +#include "GEOMImpl_Types.hxx" -#include //================================================================================= // class : RepairGUI_ChangeOrientationDlg() @@ -280,7 +281,11 @@ bool RepairGUI_ChangeOrientationDlg::execute( ObjectList& objects ) } if ( !anObj->_is_nil() ) + { + if ( !IsPreview() ) + RepairGUI::ShowStatistics( anOper, this ); objects.push_back( anObj._retn() ); + } return true; } @@ -294,3 +299,17 @@ void RepairGUI_ChangeOrientationDlg::CreateCopyModeChanged( bool isCreateCopy ) { mainFrame()->GroupBoxName->setEnabled( isCreateCopy ); } + +//================================================================================= +// function : getSourceObjects +// purpose : virtual method to get source objects +//================================================================================= +QList RepairGUI_ChangeOrientationDlg::getSourceObjects() +{ + QList res; + if ( GroupPoints->CheckButton1->isChecked() ) { + GEOM::GeomObjPtr aGeomObjPtr(myObject); + res << aGeomObjPtr; + } + return res; +}