]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMImpl/GEOMImpl_ICurveParametric.hxx
Salome HOME
22763: [EDF] Shape processing
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ICurveParametric.hxx
index cd6aaa774f617f9991f3692c0d39a736404f5ca1..f1cdb50fb4e8b65a603a0f58073c7ba9db9f73fb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  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
 struct GEOMImpl_ICurveParametric
 {
   enum {
-    ARG_EXPR_X = 1,
-    ARG_EXPR_Y = 2,
-    ARG_EXPR_Z = 3,
-    ARG_MIN    = 1,
-    ARG_MAX    = 2,
-    ARG_STEP   = 3,
-    ARG_NBSTEP = 4
+    CP_ARG_EXPR_X = 1,
+    CP_ARG_EXPR_Y = 2,
+    CP_ARG_EXPR_Z = 3,
+    CP_ARG_MIN    = 1,
+    CP_ARG_MAX    = 2,
+    CP_ARG_STEP   = 3,
+    CP_ARG_NBSTEP = 4
   };
   GEOMImpl_ICurveParametric(Handle(GEOM_Function) theFunction): _func(theFunction) {}
 
   bool HasData() const { return !GetExprZ().IsEmpty(); }
 
-  void SetExprX (const char* theExpr) { _func->SetString( ARG_EXPR_X, theExpr ) ; }
-  void SetExprY (const char* theExpr) { _func->SetString( ARG_EXPR_Y, theExpr ) ; }
-  void SetExprZ (const char* theExpr) { _func->SetString( ARG_EXPR_Z, theExpr ) ; }
-  void SetParamMin   (double theMin   ) { _func->SetReal( ARG_MIN   , theMin   ) ; }
-  void SetParamMax   (double theMax   ) { _func->SetReal( ARG_MAX   , theMax   ) ; }
-  void SetParamStep  (double theStep  ) { _func->SetReal( ARG_STEP  , theStep  ) ; }
-  void SetParamNbStep(double theNbStep) { _func->SetReal( ARG_NBSTEP, theNbStep) ; }
+  void SetExprX (const char* theExpr) { _func->SetString( CP_ARG_EXPR_X, theExpr ) ; }
+  void SetExprY (const char* theExpr) { _func->SetString( CP_ARG_EXPR_Y, theExpr ) ; }
+  void SetExprZ (const char* theExpr) { _func->SetString( CP_ARG_EXPR_Z, theExpr ) ; }
+  void SetParamMin   (double theMin   ) { _func->SetReal( CP_ARG_MIN   , theMin   ) ; }
+  void SetParamMax   (double theMax   ) { _func->SetReal( CP_ARG_MAX   , theMax   ) ; }
+  void SetParamStep  (double theStep  ) { _func->SetReal( CP_ARG_STEP  , theStep  ) ; }
+  void SetParamNbStep(double theNbStep) { _func->SetReal( CP_ARG_NBSTEP, theNbStep) ; }
 
-  TCollection_AsciiString GetExprX() const { return _func->GetString( ARG_EXPR_X ) ; }
-  TCollection_AsciiString GetExprY() const { return _func->GetString( ARG_EXPR_Y ) ; }
-  TCollection_AsciiString GetExprZ() const { return _func->GetString( ARG_EXPR_Z ) ; }
-  double GetParamMin   () const { return _func->GetReal( ARG_MIN    ) ; }
-  double GetParamMax   () const { return _func->GetReal( ARG_MAX    ) ; }
-  double GetParamStep  () const { return _func->GetReal( ARG_STEP   ) ; }
-  double GetParamNbStep() const { return _func->GetReal( ARG_NBSTEP ) ; }
+  TCollection_AsciiString GetExprX() const { return _func->GetString( CP_ARG_EXPR_X ) ; }
+  TCollection_AsciiString GetExprY() const { return _func->GetString( CP_ARG_EXPR_Y ) ; }
+  TCollection_AsciiString GetExprZ() const { return _func->GetString( CP_ARG_EXPR_Z ) ; }
+  double GetParamMin   () const { return _func->GetReal( CP_ARG_MIN    ) ; }
+  double GetParamMax   () const { return _func->GetReal( CP_ARG_MAX    ) ; }
+  double GetParamStep  () const { return _func->GetReal( CP_ARG_STEP   ) ; }
+  double GetParamNbStep() const { return _func->GetReal( CP_ARG_NBSTEP ) ; }
 
   Handle(GEOM_Function) _func;
 };