Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue 0020904: [CEA 411] export VTK in GEOM
[modules/geom.git]
/
src
/
GEOMImpl
/
GEOMImpl_IEllipse.hxx
diff --git
a/src/GEOMImpl/GEOMImpl_IEllipse.hxx
b/src/GEOMImpl/GEOMImpl_IEllipse.hxx
index 8a199e7609e9d047ebf36481ada3331c250d89db..14cb0c68df44ba02b95de0e04f5ac58cbc703271 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IEllipse.hxx
+++ b/
src/GEOMImpl/GEOMImpl_IEllipse.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
10
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
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-19,14
+19,16
@@
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
//NOTE: This is an intreface to a function for the Ellipse creation.
//
#include "GEOM_Function.hxx"
//NOTE: This is an intreface to a function for the Ellipse creation.
//
#include "GEOM_Function.hxx"
-#define ELLIPS_ARG_CC 1
-#define ELLIPS_ARG_VV 2
-#define ELLIPS_ARG_RMAJ 3
-#define ELLIPS_ARG_RMIN 4
+#define ELLIPS_ARG_CC 1
+#define ELLIPS_ARG_VV 2
+#define ELLIPS_ARG_RMAJ 3
+#define ELLIPS_ARG_RMIN 4
+#define ELLIPS_ARG_VVMAJ 5
class GEOMImpl_IEllipse
{
class GEOMImpl_IEllipse
{
@@
-40,12
+42,16
@@
class GEOMImpl_IEllipse
void SetRMajor(double theR) { _func->SetReal(ELLIPS_ARG_RMAJ, theR); }
void SetRMinor(double theR) { _func->SetReal(ELLIPS_ARG_RMIN, theR); }
void SetRMajor(double theR) { _func->SetReal(ELLIPS_ARG_RMAJ, theR); }
void SetRMinor(double theR) { _func->SetReal(ELLIPS_ARG_RMIN, theR); }
+ void SetVectorMajor(Handle(GEOM_Function) theV) { _func->SetReference(ELLIPS_ARG_VVMAJ, theV); }
+
Handle(GEOM_Function) GetCenter() { return _func->GetReference(ELLIPS_ARG_CC); }
Handle(GEOM_Function) GetVector() { return _func->GetReference(ELLIPS_ARG_VV); }
double GetRMajor() { return _func->GetReal(ELLIPS_ARG_RMAJ); }
double GetRMinor() { return _func->GetReal(ELLIPS_ARG_RMIN); }
Handle(GEOM_Function) GetCenter() { return _func->GetReference(ELLIPS_ARG_CC); }
Handle(GEOM_Function) GetVector() { return _func->GetReference(ELLIPS_ARG_VV); }
double GetRMajor() { return _func->GetReal(ELLIPS_ARG_RMAJ); }
double GetRMinor() { return _func->GetReal(ELLIPS_ARG_RMIN); }
+ Handle(GEOM_Function) GetVectorMajor() { return _func->GetReference(ELLIPS_ARG_VVMAJ); }
+
private:
Handle(GEOM_Function) _func;
private:
Handle(GEOM_Function) _func;