geom/src/NMTAlgo/NMTAlgo_Splitter.cdl

201 lines
6.6 KiB
Plaintext
Raw Normal View History

2009-02-13 17:16:39 +05:00
-- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
--
-- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- You should have received a copy of the GNU Lesser General Public
-- License along with this library; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
-- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
--
2004-12-01 15:39:14 +05:00
-- File: NMTAlgo_Splitter.cdl
-- Created: Tue Jan 27 15:09:45 2004
-- Author: Peter KURNEV
class Splitter from NMTAlgo
inherits Builder from NMTAlgo
---Purpose:
uses
Builder from BRep,
ShapeEnum from TopAbs,
Compound from TopoDS,
Face from TopoDS,
Edge from TopoDS,
Shape from TopoDS,
MapOfOrientedShape from TopTools,
IndexedMapOfShape from TopTools,
DataMapOfShapeShape from TopTools,
DataMapOfShapeListOfShape from TopTools,
2004-12-01 15:39:14 +05:00
ListOfShape from TopTools,
MapOfShape from TopTools,
AsDes from BRepAlgo,
Image from BRepAlgo,
DSFiller from NMTTools
--raises
is
Create
returns Splitter from NMTAlgo;
---C++: alias "Standard_EXPORT virtual ~NMTAlgo_Splitter();"
AddShape (me:out;
S : Shape from TopoDS)
is virtual;
AddTool (me:out;
S : Shape from TopoDS)
is virtual;
Compute(me:out)
is virtual;
Build (me:out;
aLimit:ShapeEnum from TopAbs=TopAbs_SHAPE)
is virtual;
ComputeWithFiller(me:out;
aDSF: DSFiller from NMTTools)
is redefined;
----vv
KeepShapesInside (me:out;
S : Shape from TopoDS);
---Purpose: remove shapes that are outside of S from result.
-- S should be an object shape.
---Warning: call it after Build()
RemoveShapesInside (me:out;
S : Shape from TopoDS);
---Purpose: remove shapes that are inside S from result.
-- S should be an object shape.
---Warning: call it after Build()
Modified(me:out;
S : Shape from TopoDS)
returns ListOfShape from TopTools;
---Purpose: Returns the list of shapes modified from the shape <S>.
---C++: return const &
---Level: Public
Generated(me:out;
S : Shape from TopoDS)
returns ListOfShape from TopTools;
---Purpose: Returns the list of shapes generated from the shape <S>.
---C++: return const &
---Level: Public
IsDeleted (me:out;
S : Shape from TopoDS)
returns Boolean from Standard;
----^^
Clear (me:out)
is redefined;
SourceShapes(me)
returns ListOfShape from TopTools;
---C++: return const &
FillResult(me:out)
is protected;
FillImageShape(me:out)
is protected;
SplittedFaces (me:out)
is protected;
SplittedWires (me:out)
is protected;
SplitsAndSections (me:out)
is protected;
ShellsAndSolids(me:out)
is protected;
MakeShells(me:out;
aS :Shape from TopoDS;
aLNS:out ListOfShape from TopTools)
is protected;
MakeSolids (me:out;
Solid : Shape from TopoDS;
Shells: out ListOfShape from TopTools)
is protected;
FindFacesInside (me:out;
S : Shape from TopoDS;
CheckClosed : Boolean from Standard= Standard_False;
All : Boolean from Standard= Standard_False)
returns Shape from TopoDS
is protected;
IsInside (myclass;
S1,S2 : Shape from TopoDS)
returns Boolean from Standard is protected;
---Purpose: Return True if the first vertex of S1 inside S2.
-- If S1.IsNull(), check infinite point against S2.
GetOriginalShape(me;
aShape : Shape from TopoDS)
returns Shape from TopoDS
is protected;
--modified by NIZNHY-PKV Tue Feb 1 10:24:39 2005f
FindImage(me:out;
aS : Shape from TopoDS;
aLIms: out ListOfShape from TopTools)
is protected;
--modified by NIZNHY-PKV Tue Feb 1 10:24:47 2005t
2004-12-01 15:39:14 +05:00
fields
myDoneStep : ShapeEnum from TopAbs is protected; -- rebuilt level
myBuilder : Builder from BRep is protected;
myListShapes : ListOfShape from TopTools is protected; -- object shapes
myMapFaces : MapOfShape from TopTools is protected; -- object faces
myMapTools : MapOfShape from TopTools is protected; -- tool faces
myEqualEdges : MapOfShape from TopTools is protected; -- equal splits
myNewSection : MapOfShape from TopTools is protected; -- new secton edges
myClosedShapes : MapOfShape from TopTools is protected;
myWrappingSolid: MapOfShape from TopTools is protected; -- solids having other shapes inside
myFaceShapeMap : DataMapOfShapeShape from TopTools is protected; -- to find a shape by face
myInternalFaces: DataMapOfShapeShape from TopTools is protected; -- shape and its internal faces
myIntNotClFaces: DataMapOfShapeShape from TopTools is protected; -- internal but not closed
myImageShape : Image from BRepAlgo is protected;
-- avoid rebuilding twice commont part of solids
myAddedFacesMap: MapOfOrientedShape from TopTools is protected;
--***--
mySourceShapes : ListOfShape from TopTools is protected;
myLimit : ShapeEnum from TopAbs is protected;
myToolShapes : MapOfShape from TopTools is protected;
myObjShapes : MapOfShape from TopTools is protected;
myMapSIFC : DataMapOfShapeShape from TopTools is protected;
----vv
myGenerated : ListOfShape from TopTools is protected;
--modified by NIZNHY-PKV Mon Jan 24 09:45:10 2005f
myModifiedFaces: DataMapOfShapeListOfShape from TopTools is protected;
--modified by NIZNHY-PKV Mon Jan 24 09:45:14 2005t
2004-12-01 15:39:14 +05:00
----^^
end Splitter;