X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IOffset.hxx;h=728036c633977f0a6c7e552c72f0a88145fa14eb;hb=46676347f26294f60ec56f5d31abb87bceebf317;hp=df4ebb84077ff2149e4ae714d2e648c95bc7e3f7;hpb=7961b83044d771b15dbbe57ed71c20e67efec023;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IOffset.hxx b/src/GEOMImpl/GEOMImpl_IOffset.hxx index df4ebb840..728036c63 100644 --- a/src/GEOMImpl/GEOMImpl_IOffset.hxx +++ b/src/GEOMImpl/GEOMImpl_IOffset.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 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 @@ -20,12 +20,16 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -//NOTE: This is an intreface to a function for the Offset creation. +//NOTE: This is an interface to a function for the Offset creation. // #include "GEOM_Function.hxx" +#include #define OFF_ARG_SHAPE 1 #define OFF_ARG_VALUE 2 +#define OFF_ARG_IDS 3 +#define OFF_ARG_PARAM 4 +#define OFF_ARG_JOIN 5 class GEOMImpl_IOffset { @@ -41,6 +45,20 @@ class GEOMImpl_IOffset double GetValue() { return _func->GetReal(OFF_ARG_VALUE); } + void SetParam(Standard_Boolean theParam) { _func->SetInteger(OFF_ARG_PARAM, theParam ? 1 : 0); } + + Standard_Boolean GetParam() { return _func->GetInteger(OFF_ARG_PARAM); } + + void SetJoinByPipes(Standard_Boolean theValue) { _func->SetInteger(OFF_ARG_JOIN, theValue); } + + Standard_Boolean GetJoinByPipes() { return _func->GetInteger(OFF_ARG_JOIN); } + + void SetFaceIDs(const Handle(TColStd_HArray1OfInteger)& theFaceIDs) + { _func->SetIntegerArray(OFF_ARG_IDS, theFaceIDs); } + + Handle(TColStd_HArray1OfInteger) GetFaceIDs() + { return _func->GetIntegerArray(OFF_ARG_IDS); } + private: Handle(GEOM_Function) _func;