1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/
20 // File: NMTAlgo_Algo.cxx
21 // Created: Tue Jan 27 14:58:21 2004
22 // Author: Peter KURNEV
26 #include <NMTAlgo_Algo.ixx>
28 //=======================================================================
29 // function: NMTAlgo_Algo::NMTAlgo_Algo
31 //=======================================================================
32 NMTAlgo_Algo::NMTAlgo_Algo()
35 myIsDone(Standard_False),
36 myIsComputed(Standard_False),
41 char* xr=getenv("MDISP");
43 if (!strcmp (xr, "yes")) {
48 //=======================================================================
49 // function: NMTAlgo_Algo
51 //=======================================================================
52 NMTAlgo_Algo::~NMTAlgo_Algo()
56 //=======================================================================
59 //=======================================================================
60 void NMTAlgo_Algo::Clear()
62 myIsDone=Standard_False;
63 myIsComputed=Standard_False;
66 //=======================================================================
67 // function: SetFiller
69 //=======================================================================
70 void NMTAlgo_Algo::SetFiller(const NMTTools_DSFiller& aDSF)
72 myDSFiller=(NMTTools_DSFiller *)&aDSF;
74 //=======================================================================
77 //=======================================================================
78 const NMTTools_DSFiller& NMTAlgo_Algo::Filler()const
82 //=======================================================================
83 // function: ComputeWithFiller
85 //=======================================================================
86 void NMTAlgo_Algo::ComputeWithFiller(const NMTTools_DSFiller& aDSF)
90 //=======================================================================
93 //=======================================================================
94 const TopoDS_Shape& NMTAlgo_Algo::Shape()const
98 //=======================================================================
101 //=======================================================================
102 Standard_Boolean NMTAlgo_Algo::IsDone()const
106 //=======================================================================
107 // function: ErrorStatus
109 //=======================================================================
110 Standard_Integer NMTAlgo_Algo::ErrorStatus()const
112 return myErrorStatus;
115 //=======================================================================
118 //=======================================================================
119 void NMTAlgo_Algo::Compute()
122 //=======================================================================
123 // function: SetCompositeShape
125 //=======================================================================
126 void NMTAlgo_Algo::SetCompositeShape(const TopoDS_Shape& aS)
130 //=======================================================================
131 // function: CompositeShape
133 //=======================================================================
134 const TopoDS_Shape& NMTAlgo_Algo::CompositeShape()const
136 return myCompositeShape;