X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBasicGUI%2FBasicGUI_PlaneDlg.cxx;h=707a456048365d2928eb6c3920865b691551c933;hb=f312091eb5bf90096c0a8d4d0ed4be68f34fbd9b;hp=deb308e03051ae38590e905478a0f447be2e59c4;hpb=5b3622aa2363853841fd5b4205c78a715bfee4a4;p=modules%2Fgeom.git diff --git a/src/BasicGUI/BasicGUI_PlaneDlg.cxx b/src/BasicGUI/BasicGUI_PlaneDlg.cxx index deb308e03..707a45604 100644 --- a/src/BasicGUI/BasicGUI_PlaneDlg.cxx +++ b/src/BasicGUI/BasicGUI_PlaneDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 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 @@ -695,15 +695,15 @@ bool BasicGUI_PlaneDlg::isValid( QString& msg ) break; case 1: ok = Group3Pnts->SpinBox_DX->isValid( msg, !IsPreview() ) && - myPoint1 && myPoint2 && myPoint3 && - myPoint1 != myPoint2 && myPoint1 != myPoint3 && myPoint2 != myPoint3; + myPoint1 && myPoint2 && myPoint3 && + myPoint1 != myPoint2 && myPoint1 != myPoint3 && myPoint2 != myPoint3; break; case 2: ok = GroupFace->SpinBox_DX->isValid( msg, !IsPreview() ) && myFace; break; case 3: ok = Group2Vec->SpinBox_DX->isValid( msg, !IsPreview() ) && - myVec1 && myVec2 && myVec1 != myVec2; + myVec1 && myVec2 && myVec1 != myVec2; break; case 4: ok = GroupLCS->SpinBox_DX->isValid( msg, !IsPreview() ); @@ -787,3 +787,15 @@ void BasicGUI_PlaneDlg::addSubshapesToStudy() break; } } + +//================================================================================= +// function : getSourceObjects +// purpose : virtual method to get source objects +//================================================================================= +QList BasicGUI_PlaneDlg::getSourceObjects() +{ + QList res; + res << myPoint << myDir << myPoint1 << myPoint2 << myPoint3 + << myFace << myVec1 << myVec2 << myLCS; + return res; +}