Salome HOME
Mantis issue 0021414: There is a difference between vectors and other edges in Geometry.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IMarker.hxx
index 54265314f20f58e8552c5592ece4b3dd5cdf48c9..54b65a9246dfbf23c306a52d926d3b86c37458a1 100644 (file)
@@ -1,24 +1,25 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2011  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
 //
-//  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 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.
+// 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
+// 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
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //NOTE: This is an interface to a function for the local coordinate system creation.
 //
 #include "GEOM_Function.hxx"
 #define CS_ARG_Y_DY  8
 #define CS_ARG_Y_DZ  9
 
+#define CS_ARG_SHAPE  10
+#define CS_ARG_ORIGIN 11
+#define CS_ARG_XVEC   12
+#define CS_ARG_YVEC   13
+
 class GEOMImpl_IMarker
 {
  public:
@@ -61,6 +67,26 @@ class GEOMImpl_IMarker
     _func->SetReal(CS_ARG_Y_DY, theDY);
     _func->SetReal(CS_ARG_Y_DZ, theDZ);
   }
+  
+  void SetShape (Handle(GEOM_Function) theShape)
+  {
+    _func->SetReference(CS_ARG_SHAPE, theShape);
+  }
+
+  void SetOrigin (Handle(GEOM_Function) theOrigin)
+  {
+    _func->SetReference(CS_ARG_ORIGIN, theOrigin);
+  }
+
+  void SetXVec (Handle(GEOM_Function) theXVec)
+  {
+    _func->SetReference(CS_ARG_XVEC, theXVec);
+  }
+
+  void SetYVec (Handle(GEOM_Function) theYVec)
+  {
+    _func->SetReference(CS_ARG_YVEC, theYVec);
+  }
 
   void GetOrigin (double& theX, double& theY, double& theZ)
   {
@@ -82,6 +108,26 @@ class GEOMImpl_IMarker
     theDY = _func->GetReal(CS_ARG_Y_DY);
     theDZ = _func->GetReal(CS_ARG_Y_DZ);
   }
+  
+  Handle(GEOM_Function) GetShape()
+  {
+    return _func->GetReference(CS_ARG_SHAPE); 
+  }
+
+  Handle(GEOM_Function) GetOrigin()
+  {
+    return _func->GetReference(CS_ARG_ORIGIN); 
+  }
+
+  Handle(GEOM_Function) GetXVec()
+  {
+    return _func->GetReference(CS_ARG_XVEC); 
+  }
+
+  Handle(GEOM_Function) GetYVec()
+  {
+    return _func->GetReference(CS_ARG_YVEC); 
+  }
 
  private: