Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "GEOM_Function.hxx"
00026
00027 #define ARG_X 1
00028 #define ARG_Y 2
00029 #define ARG_Z 3
00030
00031 #define ARG_REF 4
00032
00033 #define ARG_PARAM 5
00034 #define ARG_CURVE 6
00035 #define ARG_LINE1 7
00036 #define ARG_LINE2 8
00037
00038 #define ARG_SURFACE 9
00039 #define ARG_PARAM2 10
00040
00041 #define ARG_LENGTH 11
00042
00043
00044
00045 class GEOMImpl_IPoint
00046 {
00047 public:
00048
00049 GEOMImpl_IPoint(Handle(GEOM_Function) theFunction): _func(theFunction) {}
00050
00051 void SetX(double theX) { _func->SetReal(ARG_X, theX); }
00052 void SetY(double theY) { _func->SetReal(ARG_Y, theY); }
00053 void SetZ(double theZ) { _func->SetReal(ARG_Z, theZ); }
00054
00055 double GetX() { return _func->GetReal(ARG_X); }
00056 double GetY() { return _func->GetReal(ARG_Y); }
00057 double GetZ() { return _func->GetReal(ARG_Z); }
00058
00059 void SetRef(Handle(GEOM_Function) theRefPoint) { _func->SetReference(ARG_REF, theRefPoint); }
00060
00061 Handle(GEOM_Function) GetRef() { return _func->GetReference(ARG_REF); }
00062
00063 void SetCurve(Handle(GEOM_Function) theRef) { _func->SetReference(ARG_CURVE, theRef); }
00064 void SetSurface(Handle(GEOM_Function) theRef) { _func->SetReference(ARG_SURFACE, theRef); }
00065 void SetLine1(Handle(GEOM_Function) theRef) { _func->SetReference(ARG_LINE1, theRef); }
00066 void SetLine2(Handle(GEOM_Function) theRef) { _func->SetReference(ARG_LINE2, theRef); }
00067
00068 Handle(GEOM_Function) GetCurve() { return _func->GetReference(ARG_CURVE); }
00069 Handle(GEOM_Function) GetSurface() { return _func->GetReference(ARG_SURFACE); }
00070 Handle(GEOM_Function) GetLine1() { return _func->GetReference(ARG_LINE1); }
00071 Handle(GEOM_Function) GetLine2() { return _func->GetReference(ARG_LINE2); }
00072
00073 void SetParameter(double theParam) { _func->SetReal(ARG_PARAM, theParam); }
00074 void SetParameter2(double theParam) { _func->SetReal(ARG_PARAM2, theParam); }
00075 void SetLength(double theLength) { _func->SetReal(ARG_LENGTH, theLength); }
00076
00077
00078 double GetParameter() { return _func->GetReal(ARG_PARAM); }
00079 double GetParameter2() { return _func->GetReal(ARG_PARAM2); }
00080 double GetLength() { return _func->GetReal(ARG_LENGTH); }
00081
00082
00083 private:
00084
00085 Handle(GEOM_Function) _func;
00086 };