1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 //NOTE: This is an interface to a function for the local coordinate system creation.
24 #include "GEOM_Function.hxx"
38 class GEOMImpl_IMarker
42 GEOMImpl_IMarker(Handle(GEOM_Function) theFunction): _func(theFunction) {}
44 void SetOrigin (const double theX, const double theY, const double theZ)
46 _func->SetReal(CS_ARG_O_X, theX);
47 _func->SetReal(CS_ARG_O_Y, theY);
48 _func->SetReal(CS_ARG_O_Z, theZ);
51 void SetXDir (const double theDX, const double theDY, const double theDZ)
53 _func->SetReal(CS_ARG_X_DX, theDX);
54 _func->SetReal(CS_ARG_X_DY, theDY);
55 _func->SetReal(CS_ARG_X_DZ, theDZ);
58 void SetYDir (const double theDX, const double theDY, const double theDZ)
60 _func->SetReal(CS_ARG_Y_DX, theDX);
61 _func->SetReal(CS_ARG_Y_DY, theDY);
62 _func->SetReal(CS_ARG_Y_DZ, theDZ);
65 void GetOrigin (double& theX, double& theY, double& theZ)
67 theX = _func->GetReal(CS_ARG_O_X);
68 theY = _func->GetReal(CS_ARG_O_Y);
69 theZ = _func->GetReal(CS_ARG_O_Z);
72 void GetXDir (double& theDX, double& theDY, double& theDZ)
74 theDX = _func->GetReal(CS_ARG_X_DX);
75 theDY = _func->GetReal(CS_ARG_X_DY);
76 theDZ = _func->GetReal(CS_ARG_X_DZ);
79 void GetYDir (double& theDX, double& theDY, double& theDZ)
81 theDX = _func->GetReal(CS_ARG_Y_DX);
82 theDY = _func->GetReal(CS_ARG_Y_DY);
83 theDZ = _func->GetReal(CS_ARG_Y_DZ);
88 Handle(GEOM_Function) _func;