X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IChamfer.hxx;h=32f43fa17c0eb6cf85abd9656121c12998273a0e;hb=307d55f904c3289d82aee698ef6e813455cd3b9a;hp=6c12fd184867fda749365eb6f75c26d144eef303;hpb=9499b99fe2dcb53e1ea364f97986f8f432b04600;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IChamfer.hxx b/src/GEOMImpl/GEOMImpl_IChamfer.hxx index 6c12fd184..32f43fa17 100644 --- a/src/GEOMImpl/GEOMImpl_IChamfer.hxx +++ b/src/GEOMImpl/GEOMImpl_IChamfer.hxx @@ -1,32 +1,34 @@ -// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// 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. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. +// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// 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. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // //NOTE: This is an interface to a function for the Chamfer and creation. - - +// #include "GEOM_Function.hxx" -#define CHAM_ARG_SH 1 -#define CHAM_ARG_D1 2 -#define CHAM_ARG_D2 3 -#define CHAM_ARG_LENG 4 -#define CHAM_ARG_LAST 4 +#define CHAM_ARG_SH 1 +#define CHAM_ARG_D1 2 +#define CHAM_ARG_D2 3 +#define CHAM_ARG_ANGLE 3 +#define CHAM_ARG_LENG 4 +#define CHAM_ARG_LAST 4 class GEOMImpl_IChamfer { @@ -41,10 +43,12 @@ class GEOMImpl_IChamfer void SetD (double theD) { _func->SetReal(CHAM_ARG_D1, theD); } void SetD1(double theD) { _func->SetReal(CHAM_ARG_D1, theD); } void SetD2(double theD) { _func->SetReal(CHAM_ARG_D2, theD); } + void SetAngle(double theAngle) { _func->SetReal(CHAM_ARG_ANGLE, theAngle); } double GetD () { return _func->GetReal(CHAM_ARG_D1); } double GetD1() { return _func->GetReal(CHAM_ARG_D1); } double GetD2() { return _func->GetReal(CHAM_ARG_D2); } + double GetAngle() { return _func->GetReal(CHAM_ARG_ANGLE); } void SetLength(int theLen) { _func->SetInteger(CHAM_ARG_LENG, theLen); } @@ -56,10 +60,13 @@ class GEOMImpl_IChamfer { _func->SetInteger(CHAM_ARG_LAST + 1, theFace); } void SetFace2(int theFace) { _func->SetInteger(CHAM_ARG_LAST + 2, theFace); } + void SetEdge(int theInd, int theEdge) + { _func->SetInteger(CHAM_ARG_LAST + theInd, theEdge); } int GetFace(int theInd) { return _func->GetInteger(CHAM_ARG_LAST + theInd); } int GetFace1() { return _func->GetInteger(CHAM_ARG_LAST + 1); } int GetFace2() { return _func->GetInteger(CHAM_ARG_LAST + 2); } + int GetEdge(int theInd) { return _func->GetInteger(CHAM_ARG_LAST + theInd); } private: