1 //NOTE: This is an interface to a function for the local coordinate system creation.
4 #include "GEOM_Function.hxx"
18 class GEOMImpl_IMarker
22 GEOMImpl_IMarker(Handle(GEOM_Function) theFunction): _func(theFunction) {}
24 void SetOrigin (const double theX, const double theY, const double theZ)
26 _func->SetReal(CS_ARG_O_X, theX);
27 _func->SetReal(CS_ARG_O_Y, theY);
28 _func->SetReal(CS_ARG_O_Z, theZ);
31 void SetXDir (const double theDX, const double theDY, const double theDZ)
33 _func->SetReal(CS_ARG_X_DX, theDX);
34 _func->SetReal(CS_ARG_X_DY, theDY);
35 _func->SetReal(CS_ARG_X_DZ, theDZ);
38 void SetYDir (const double theDX, const double theDY, const double theDZ)
40 _func->SetReal(CS_ARG_Y_DX, theDX);
41 _func->SetReal(CS_ARG_Y_DY, theDY);
42 _func->SetReal(CS_ARG_Y_DZ, theDZ);
45 void GetOrigin (double& theX, double& theY, double& theZ)
47 theX = _func->GetReal(CS_ARG_O_X);
48 theY = _func->GetReal(CS_ARG_O_Y);
49 theZ = _func->GetReal(CS_ARG_O_Z);
52 void GetXDir (double& theDX, double& theDY, double& theDZ)
54 theDX = _func->GetReal(CS_ARG_X_DX);
55 theDY = _func->GetReal(CS_ARG_X_DY);
56 theDZ = _func->GetReal(CS_ARG_X_DZ);
59 void GetYDir (double& theDX, double& theDY, double& theDZ)
61 theDX = _func->GetReal(CS_ARG_Y_DX);
62 theDY = _func->GetReal(CS_ARG_Y_DY);
63 theDZ = _func->GetReal(CS_ARG_Y_DZ);
68 Handle(GEOM_Function) _func;