2009-02-13 17:16:39 +05:00
|
|
|
-- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
2008-03-07 12:45:34 +05:00
|
|
|
--
|
2009-02-13 17:16:39 +05:00
|
|
|
-- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
-- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2008-03-07 12:45:34 +05:00
|
|
|
--
|
2009-02-13 17:16:39 +05:00
|
|
|
-- 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
|
2008-03-07 12:45:34 +05:00
|
|
|
--
|
2004-12-17 16:18:33 +05:00
|
|
|
-- File: GEOMAlgo.cdl
|
|
|
|
-- Created: Sat Dec 04 12:36:22 2004
|
|
|
|
-- Author: Peter KURNEV
|
|
|
|
-- <peter@PREFEX>
|
2009-02-13 17:16:39 +05:00
|
|
|
--
|
2004-12-17 16:18:33 +05:00
|
|
|
package GEOMAlgo
|
|
|
|
|
|
|
|
---Purpose:
|
|
|
|
|
|
|
|
uses
|
|
|
|
TCollection,
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
TColgp,
|
2005-01-20 11:24:17 +05:00
|
|
|
Geom,
|
2004-12-17 16:18:33 +05:00
|
|
|
Bnd,
|
2005-03-23 12:27:20 +05:00
|
|
|
gp,
|
|
|
|
GeomAdaptor,
|
2004-12-17 16:18:33 +05:00
|
|
|
TopAbs,
|
|
|
|
TopoDS,
|
|
|
|
TopTools,
|
2005-01-20 11:24:17 +05:00
|
|
|
IntTools,
|
|
|
|
BOPTools,
|
2008-03-07 12:45:34 +05:00
|
|
|
BOP,
|
|
|
|
|
|
|
|
TColStd,
|
|
|
|
BOPTColStd,
|
|
|
|
BRepAlgo,
|
|
|
|
NMTDS,
|
|
|
|
NMTTools
|
2004-12-17 16:18:33 +05:00
|
|
|
|
2005-01-20 11:24:17 +05:00
|
|
|
is
|
2008-03-07 12:45:34 +05:00
|
|
|
--
|
|
|
|
-- enumerations
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
|
|
|
enumeration State is
|
|
|
|
ST_UNKNOWN,
|
|
|
|
ST_IN,
|
|
|
|
ST_OUT,
|
|
|
|
ST_ON,
|
|
|
|
ST_ONIN,
|
|
|
|
ST_ONOUT,
|
|
|
|
ST_INOUT
|
2008-03-07 12:45:34 +05:00
|
|
|
end State;
|
|
|
|
--
|
|
|
|
enumeration KindOfShape is
|
|
|
|
KS_UNKNOWN,
|
|
|
|
KS_SPHERE,
|
|
|
|
KS_CYLINDER,
|
|
|
|
KS_BOX,
|
|
|
|
KS_TORUS,
|
|
|
|
KS_CONE,
|
|
|
|
KS_ELLIPSE,
|
|
|
|
KS_PLANE,
|
|
|
|
KS_CIRCLE,
|
|
|
|
KS_LINE,
|
|
|
|
KS_DEGENERATED
|
|
|
|
end KindOfShape;
|
|
|
|
--
|
|
|
|
enumeration KindOfName is
|
|
|
|
KN_UNKNOWN,
|
|
|
|
KN_SPHERE,
|
|
|
|
KN_CYLINDER,
|
|
|
|
KN_TORUS,
|
|
|
|
KN_CONE,
|
|
|
|
KN_ELLIPSE,
|
|
|
|
KN_CIRCLE,
|
|
|
|
KN_PLANE,
|
|
|
|
KN_LINE,
|
|
|
|
KN_BOX,
|
|
|
|
KN_SEGMENT,
|
|
|
|
KN_ARCCIRCLE,
|
|
|
|
KN_POLYGON,
|
|
|
|
KN_POLYHEDRON,
|
|
|
|
KN_DISKCIRCLE,
|
|
|
|
KN_DISKELLIPSE,
|
|
|
|
KN_RECTANGLE,
|
|
|
|
KN_TRIANGLE,
|
|
|
|
KN_QUADRANGLE,
|
|
|
|
KN_ARCELLIPSE
|
|
|
|
end KindOfName;
|
|
|
|
--
|
|
|
|
enumeration KindOfBounds is
|
|
|
|
KB_UNKNOWN,
|
|
|
|
KB_TRIMMED,
|
|
|
|
KB_INFINITE
|
|
|
|
end KindOfBounds;
|
|
|
|
--
|
|
|
|
enumeration KindOfClosed is
|
|
|
|
KC_UNKNOWN,
|
|
|
|
KC_CLOSED,
|
|
|
|
KC_NOTCLOSED
|
|
|
|
end KindOfClosed;
|
|
|
|
--
|
|
|
|
deferred class HAlgo;
|
|
|
|
deferred class Clsf;
|
|
|
|
class ClsfSurf;
|
|
|
|
class ClsfBox;
|
|
|
|
class FinderShapeOn2;
|
|
|
|
class PassKeyShapeMapHasher;
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
|
|
|
-- classes
|
2008-03-07 12:45:34 +05:00
|
|
|
--
|
|
|
|
deferred class Algo;
|
|
|
|
deferred class ShapeAlgo;
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
2008-03-07 12:45:34 +05:00
|
|
|
class ShapeInfo;
|
|
|
|
class ShapeInfoFiller;
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
|
|
|
-- gluer
|
2004-12-17 16:18:33 +05:00
|
|
|
class Gluer;
|
2008-03-07 12:45:34 +05:00
|
|
|
class Gluer1;
|
2005-01-20 11:24:17 +05:00
|
|
|
class GlueAnalyser;
|
|
|
|
class CoupleOfShapes;
|
2005-03-23 12:27:20 +05:00
|
|
|
class PassKey;
|
2004-12-17 16:18:33 +05:00
|
|
|
class PassKeyMapHasher;
|
2005-03-23 12:27:20 +05:00
|
|
|
class PassKeyShape;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2005-02-01 16:12:57 +05:00
|
|
|
class SurfaceTools;
|
2005-03-23 12:27:20 +05:00
|
|
|
class Tools;
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
|
|
|
-- finder on
|
|
|
|
deferred class ShapeSolid;
|
|
|
|
class WireSolid;
|
|
|
|
class ShellSolid;
|
|
|
|
class VertexSolid;
|
2005-02-01 16:12:57 +05:00
|
|
|
class SolidSolid;
|
2005-01-20 11:24:17 +05:00
|
|
|
class FinderShapeOn;
|
2005-03-23 12:27:20 +05:00
|
|
|
--
|
|
|
|
class FinderShapeOn1;
|
2008-03-07 12:45:34 +05:00
|
|
|
class StateCollector;
|
|
|
|
-- adds
|
|
|
|
deferred class HAlgo;
|
|
|
|
deferred class Clsf;
|
|
|
|
class ClsfSurf;
|
|
|
|
class ClsfBox;
|
|
|
|
--modified by NIZNHY-PKV Mon Jan 29 10:27:44 2007f
|
|
|
|
class ClsfSolid;
|
|
|
|
--modified by NIZNHY-PKV Mon Jan 29 10:27:46 2007t
|
|
|
|
class FinderShapeOn2;
|
|
|
|
class PassKeyShapeMapHasher;
|
|
|
|
--
|
|
|
|
-- Builder/Splitter
|
|
|
|
deferred class BuilderShape;
|
|
|
|
|
|
|
|
class Builder;
|
|
|
|
class Splitter;
|
|
|
|
class Tools3D;
|
|
|
|
class BuilderTools;
|
|
|
|
class ShapeSet;
|
|
|
|
|
|
|
|
deferred class BuilderArea;
|
|
|
|
class BuilderFace;
|
|
|
|
class BuilderSolid;
|
|
|
|
|
|
|
|
class WireSplitter;
|
|
|
|
class WireEdgeSet;
|
|
|
|
class WESCorrector;
|
|
|
|
--
|
|
|
|
-- Pointers
|
|
|
|
--
|
|
|
|
pointer PWireEdgeSet to WireEdgeSet from GEOMAlgo;
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- Instantiations
|
|
|
|
class DataMapOfShapeShapeSet instantiates
|
|
|
|
DataMap from TCollection(Shape from TopoDS,
|
|
|
|
ShapeSet from GEOMAlgo,
|
|
|
|
ShapeMapHasher from TopTools);
|
|
|
|
|
|
|
|
class DataMapOfShapeReal instantiates
|
|
|
|
DataMap from TCollection(Shape from TopoDS,
|
|
|
|
Real from Standard,
|
|
|
|
ShapeMapHasher from TopTools);
|
|
|
|
|
|
|
|
|
|
|
|
class DataMapOfRealListOfShape instantiates
|
|
|
|
DataMap from TCollection(Real from Standard,
|
|
|
|
ListOfShape from TopTools,
|
|
|
|
MapRealHasher from TColStd);
|
2005-01-20 11:24:17 +05:00
|
|
|
--
|
2005-02-01 16:12:57 +05:00
|
|
|
-- instantiations
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-17 16:18:33 +05:00
|
|
|
|
|
|
|
class IndexedDataMapOfShapeBox
|
|
|
|
instantiates IndexedDataMap from TCollection (Shape from TopoDS,
|
|
|
|
Box from Bnd,
|
|
|
|
ShapeMapHasher from TopTools);
|
|
|
|
class IndexedDataMapOfIntegerShape
|
|
|
|
instantiates IndexedDataMap from TCollection (Integer from Standard,
|
|
|
|
Shape from TopoDS,
|
2005-01-20 11:24:17 +05:00
|
|
|
MapIntegerHasher from TColStd);
|
|
|
|
|
|
|
|
class ListOfCoupleOfShapes
|
|
|
|
instantiates List from TCollection (CoupleOfShapes from GEOMAlgo);
|
|
|
|
|
2004-12-17 16:18:33 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
class IndexedDataMapOfShapeState
|
2005-02-01 16:12:57 +05:00
|
|
|
instantiates IndexedDataMap from TCollection (Shape from TopoDS,
|
|
|
|
State from TopAbs,
|
|
|
|
ShapeMapHasher from TopTools);
|
2008-03-07 12:45:34 +05:00
|
|
|
class ListOfPnt
|
2005-03-23 12:27:20 +05:00
|
|
|
instantiates List from TCollection (Pnt from gp);
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
class DataMapOfPassKeyInteger
|
2005-03-23 12:27:20 +05:00
|
|
|
instantiates DataMap from TCollection (PassKey from GEOMAlgo,
|
|
|
|
Integer from Standard,
|
2008-03-07 12:45:34 +05:00
|
|
|
PassKeyMapHasher from GEOMAlgo);
|
|
|
|
|
|
|
|
class IndexedDataMapOfPassKeyShapeListOfShape
|
|
|
|
instantiates IndexedDataMap from TCollection (PassKeyShape from GEOMAlgo,
|
|
|
|
ListOfShape from TopTools,
|
|
|
|
PassKeyShapeMapHasher from GEOMAlgo);
|
|
|
|
|
|
|
|
class IndexedDataMapOfShapeShapeInfo
|
|
|
|
instantiates IndexedDataMap from TCollection (Shape from TopoDS,
|
|
|
|
ShapeInfo from GEOMAlgo,
|
|
|
|
ShapeMapHasher from TopTools);
|
2005-03-23 12:27:20 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
class DataMapOfPassKeyShapeShape
|
|
|
|
instantiates DataMap from TCollection (PassKeyShape from GEOMAlgo,
|
|
|
|
Shape from TopoDS,
|
|
|
|
PassKeyShapeMapHasher from GEOMAlgo);
|
2005-02-01 16:12:57 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
class DataMapOfShapeShapeSet instantiates
|
|
|
|
DataMap from TCollection(Shape from TopoDS,
|
|
|
|
ShapeSet from GEOMAlgo,
|
|
|
|
ShapeMapHasher from TopTools);
|
|
|
|
|
|
|
|
class DataMapOfShapeReal instantiates
|
|
|
|
DataMap from TCollection(Shape from TopoDS,
|
|
|
|
Real from Standard,
|
|
|
|
ShapeMapHasher from TopTools);
|
|
|
|
|
|
|
|
|
|
|
|
class DataMapOfRealListOfShape instantiates
|
|
|
|
DataMap from TCollection(Real from Standard,
|
|
|
|
ListOfShape from TopTools,
|
|
|
|
MapRealHasher from TColStd);
|
|
|
|
|
2004-12-17 16:18:33 +05:00
|
|
|
end GEOMAlgo;
|