1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File: NMTAlgo_Algo.cxx
23 // Created: Tue Jan 27 14:58:21 2004
24 // Author: Peter KURNEV
27 #include <NMTAlgo_Algo.ixx>
29 //=======================================================================
30 // function: NMTAlgo_Algo::NMTAlgo_Algo
32 //=======================================================================
33 NMTAlgo_Algo::NMTAlgo_Algo()
36 myIsDone(Standard_False),
37 myIsComputed(Standard_False),
42 char* xr=getenv("MDISP");
44 if (!strcmp (xr, "yes")) {
49 //=======================================================================
50 // function: NMTAlgo_Algo
52 //=======================================================================
53 NMTAlgo_Algo::~NMTAlgo_Algo()
57 //=======================================================================
60 //=======================================================================
61 void NMTAlgo_Algo::Clear()
63 myIsDone=Standard_False;
64 myIsComputed=Standard_False;
67 //=======================================================================
68 // function: SetFiller
70 //=======================================================================
71 void NMTAlgo_Algo::SetFiller(const NMTTools_DSFiller& aDSF)
73 myDSFiller=(NMTTools_DSFiller *)&aDSF;
75 //=======================================================================
78 //=======================================================================
79 const NMTTools_DSFiller& NMTAlgo_Algo::Filler()const
83 //=======================================================================
84 // function: ComputeWithFiller
86 //=======================================================================
87 void NMTAlgo_Algo::ComputeWithFiller(const NMTTools_DSFiller& aDSF)
91 //=======================================================================
94 //=======================================================================
95 const TopoDS_Shape& NMTAlgo_Algo::Shape()const
99 //=======================================================================
102 //=======================================================================
103 Standard_Boolean NMTAlgo_Algo::IsDone()const
107 //=======================================================================
108 // function: ErrorStatus
110 //=======================================================================
111 Standard_Integer NMTAlgo_Algo::ErrorStatus()const
113 return myErrorStatus;
116 //=======================================================================
119 //=======================================================================
120 void NMTAlgo_Algo::Compute()
123 //=======================================================================
124 // function: SetCompositeShape
126 //=======================================================================
127 void NMTAlgo_Algo::SetCompositeShape(const TopoDS_Shape& aS)
131 //=======================================================================
132 // function: CompositeShape
134 //=======================================================================
135 const TopoDS_Shape& NMTAlgo_Algo::CompositeShape()const
137 return myCompositeShape;