From: dln Date: Wed, 12 Mar 2014 08:09:23 +0000 (+0400) Subject: 0024727: Convertation of the generic classes to the non-generic. Part 3 X-Git-Tag: V6_8_0_beta~471 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=47cbf134722ec0158b50f012bbe6f6734b55f531;p=occt-copy.git 0024727: Convertation of the generic classes to the non-generic. Part 3 1) Generic class "Intf_InterferencePolyhedron" from "Intf" package converted to the non-generic class and moved to the "IntPatch" package. Name of this class was changed to "IntPatch_InterferencePolyhedron". 2) Generic class "MoniTool_Elem" from "MoniTool" package converted to the non-generic class "MoniTool_TransientElem". 3) Generic class "IntWalk_PWalking" from "IntWalk" package converted to the non-generic class. And internal class "TheInt2S" of "IntWalk_PWalking" moved from IntWalk_PWalking.cdl to IntWalk.cdl for correct building. Also several "*.cxx" files of this class merged to one ".cxx". 4) Generic class "Transfer_SimpleBinder" from "Transfer" package converted to the non-generic class and moved to the "TransferBRep" package. Name of this class was changed to "TransferBRep_BinderOfShape". 5) Generic class "Geom2dInt_CurveTool" from "Geom2dInt" package converted to the non-generic class "Geom2dInt_Geom2dCurveTool". 6) Generic class "MAT2d_BisectingLocus" from "MAT2d" package converted to the non-generic class and moved to the "BRepMAT2d" package. Name of this class was changed to "BRepMAT2d_BisectingLocus". 7) Generic class "MAT_Mat" from "MAT" package converted to the non-generic class and moved to the "MAT2d" package. Name of this class was changed to "MAT2d_Mat2d". --- diff --git a/src/BRepMAT2d/BRepMAT2d.cdl b/src/BRepMAT2d/BRepMAT2d.cdl index 49829d89fe..5677c880a4 100644 --- a/src/BRepMAT2d/BRepMAT2d.cdl +++ b/src/BRepMAT2d/BRepMAT2d.cdl @@ -27,7 +27,8 @@ uses Geom2d, gp, TopoDS, - TopTools + TopTools, + Bisector is class Explorer; @@ -35,8 +36,10 @@ is -- bisecting locus from a Wire, a Face, or a set of -- curves from Geom2d. - class BisectingLocus instantiates BisectingLocus from MAT2d - (Explorer from BRepMAT2d); + class BisectingLocus; + ---Purpose: Constuction of the map of the bisector locus on a + -- set of geometrys from Geom2d. + ---Purpose: the map of bisecting locus. class LinkTopoBilo; diff --git a/src/BRepMAT2d/BRepMAT2d_BisectingLocus.cdl b/src/BRepMAT2d/BRepMAT2d_BisectingLocus.cdl new file mode 100644 index 0000000000..a0f57fe989 --- /dev/null +++ b/src/BRepMAT2d/BRepMAT2d_BisectingLocus.cdl @@ -0,0 +1,163 @@ +-- Created on: 1993-07-06 +-- Created by: Yves FRICAUD +-- Copyright (c) 1993-1999 Matra Datavision +-- Copyright (c) 1999-2014 OPEN CASCADE SAS +-- +-- This file is part of Open CASCADE Technology software library. +-- +-- This library is free software; you can redistribute it and/or modify it under +-- the terms of the GNU Lesser General Public License version 2.1 as published +-- by the Free Software Foundation, with special exception defined in the file +-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +-- distribution for complete text of the license and disclaimer of any warranty. +-- +-- Alternatively, this file may be used under the terms of Open CASCADE +-- commercial license or contractual agreement. + +class BisectingLocus from BRepMAT2d + + ---Purpose : BisectingLocus generates and contains the Bisecting_Locus + -- of a set of lines from Geom2d, defined by . + -- + -- If the set of lines contains closed lines: + -- ------------------------------------------ + -- These lines cut the plane in areas. + -- One map can be computed for each area. + -- + -- Bisecting locus computes a map in an area. + -- The area is defined by a side (MAT_Left,MAT_Right) + -- on one of the closed lines. + -- + -- If the set of lines contains only open lines: + -- -------------------------------------------- + -- the map recovers all the plane. + -- + -- Warning: Assume the orientation of the closed lines are + -- compatible. + -- + -- Assume the explo contains only lines located in the + -- area where the bisecting locus will be computed. + -- + -- Assume a line don't cross itself or an other line. + -- + -- Remark: + -- the curves coming from the explorer can be + -- decomposed in different parts. It the case for the + -- curves other than circles or lines. + -- + -- The map of bisecting locus is described by a graph. + -- - The BasicsElements correspond to elements on + -- the figure described by the Explorer from BRepMAT2d. + -- - The Arcs correspond to the bisectors. + -- - The Nodes are the extremities of the arcs. + +uses + Graph from MAT, + Arc from MAT, + BasicElt from MAT, + Node from MAT, + Side from MAT, + DataMapOfIntegerBasicElt from MAT, + DataMapOfBiIntInteger from MAT2d, + Bisec from Bisector, + Geometry from Geom2d, + Pnt2d from gp, + Tool2d from MAT2d, + Explorer from BRepMAT2d + +is + Create returns BisectingLocus from BRepMAT2d; + +---Category: Construction. + + Compute (me : in out ; + anExplo : in out Explorer from BRepMAT2d; + LineIndex : Integer = 1; + aSide : Side from MAT = MAT_Left ) + --- Purpose : Computation of the Bisector_Locus in a set of Lines + -- defined in . + -- The bisecting locus are computed on the side