Salome HOME
1b77cbcebb5b3c065e2800e970738d63bff644ae
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Algo.cxx
1 // File:        NMTAlgo_Algo.cxx
2 // Created:     Tue Jan 27 14:58:21 2004
3 // Author:      Peter KURNEV
4 //              <pkv@irinox>
5
6
7 #include <NMTAlgo_Algo.ixx>
8 #include <stdlib.h>
9 //=======================================================================
10 // function: NMTAlgo_Algo::NMTAlgo_Algo
11 // purpose: 
12 //=======================================================================
13   NMTAlgo_Algo::NMTAlgo_Algo()
14 :
15   myDSFiller(NULL),
16   myIsDone(Standard_False),
17   myIsComputed(Standard_False),
18   myErrorStatus(1)
19 {
20   myDraw=0;
21   //
22   char* xr=getenv("MDISP");
23   if (xr!=NULL) {
24     if (!strcmp (xr, "yes")) {
25       myDraw=1;
26     }
27   }
28 }
29 //=======================================================================
30 // function: NMTAlgo_Algo
31 // purpose: 
32 //=======================================================================
33   NMTAlgo_Algo::~NMTAlgo_Algo()
34 {
35   Clear();
36 }
37 //=======================================================================
38 // function: Clear
39 // purpose: 
40 //=======================================================================
41   void NMTAlgo_Algo::Clear()
42 {
43   myIsDone=Standard_False;
44   myIsComputed=Standard_False;
45   myErrorStatus=1;
46 }
47 //=======================================================================
48 // function: SetFiller
49 // purpose: 
50 //=======================================================================
51   void NMTAlgo_Algo::SetFiller(const NMTTools_DSFiller& aDSF)
52 {
53   myDSFiller=(NMTTools_DSFiller *)&aDSF;
54 }
55 //=======================================================================
56 // function: Filler
57 // purpose: 
58 //=======================================================================
59   const NMTTools_DSFiller& NMTAlgo_Algo::Filler()const
60 {
61   return *myDSFiller;
62 }
63 //=======================================================================
64 // function: ComputeWithFiller
65 // purpose: 
66 //=======================================================================
67   void NMTAlgo_Algo::ComputeWithFiller(const NMTTools_DSFiller& aDSF)
68 {
69   SetFiller(aDSF);
70 }
71 //=======================================================================
72 // function: Shape
73 // purpose: 
74 //=======================================================================
75   const TopoDS_Shape& NMTAlgo_Algo::Shape()const
76 {
77   return myShape;
78 }
79 //=======================================================================
80 // function: IsDone
81 // purpose: 
82 //=======================================================================
83   Standard_Boolean NMTAlgo_Algo::IsDone()const
84 {
85   return myIsDone;
86 }
87 //=======================================================================
88 // function: ErrorStatus
89 // purpose: 
90 //=======================================================================
91   Standard_Integer NMTAlgo_Algo::ErrorStatus()const
92 {
93   return myErrorStatus;
94 }
95 /*
96 //=======================================================================
97 // function: Compute
98 // purpose: 
99 //=======================================================================
100   void NMTAlgo_Algo::Compute()
101 {
102 }
103 //=======================================================================
104 // function: SetCompositeShape
105 // purpose: 
106 //=======================================================================
107   void NMTAlgo_Algo::SetCompositeShape(const TopoDS_Shape& aS)
108 {
109   myCompositeShape=aS;
110 }
111 //=======================================================================
112 // function: CompositeShape
113 // purpose: 
114 //=======================================================================
115   const TopoDS_Shape& NMTAlgo_Algo::CompositeShape()const
116 {
117   return myCompositeShape;
118 }
119 */