]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IPlane.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IPlane.hxx
1 //NOTE: This is an intreface to a function for the vector creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define PLN_ARG_SIZE 1
7
8 #define PLN_ARG_PNT1 2
9 #define PLN_ARG_PNT2 3
10 #define PLN_ARG_PNT3 4
11
12 #define PLN_ARG_VEC 5
13
14 #define PLN_ARG_REF 6
15
16 class GEOMImpl_IPlane
17 {
18  public:
19
20   GEOMImpl_IPlane(Handle(GEOM_Function) theFunction): _func(theFunction) {}
21
22   void SetSize(double theSize) { _func->SetReal(PLN_ARG_SIZE, theSize); }
23
24   double GetSize() { return _func->GetReal(PLN_ARG_SIZE); }
25
26   void SetPoint (Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT1, theRef); }
27   void SetVector(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_VEC , theRef); }
28
29   void SetFace  (Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_REF , theRef); }
30
31   void SetPoint1(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT1, theRef); }
32   void SetPoint2(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT2, theRef); }
33   void SetPoint3(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT3, theRef); }
34
35   Handle(GEOM_Function) GetPoint () { return _func->GetReference(PLN_ARG_PNT1); }
36   Handle(GEOM_Function) GetVector() { return _func->GetReference(PLN_ARG_VEC ); }
37
38   Handle(GEOM_Function) GetFace  () { return _func->GetReference(PLN_ARG_REF ); }
39
40   Handle(GEOM_Function) GetPoint1() { return _func->GetReference(PLN_ARG_PNT1); }
41   Handle(GEOM_Function) GetPoint2() { return _func->GetReference(PLN_ARG_PNT2); }
42   Handle(GEOM_Function) GetPoint3() { return _func->GetReference(PLN_ARG_PNT3); }
43
44  private:
45
46   Handle(GEOM_Function) _func;
47 };