0022887: Request to make Intf_InterferencePolygon2d class thread-safe.
[occt.git] / src / IntCurve / IntCurve_Polygon2dGen.cdl
index 7420635..e313e6c 100755 (executable)
@@ -1,7 +1,6 @@
 -- File:       Polygon2dGen.cdl
 -- Created:    Mon Oct 19 11:51:16 1992
 -- Author:     Laurent BUCHARD
---             <lbr@sdsun2>
 ---Copyright:   Matra Datavision 1992
 
 
@@ -11,21 +10,20 @@ generic class Polygon2dGen from IntCurve (
 
        ---Purpose: Describe a polyline  as  a topology to compute the
        --          interference beetween two polylines 2 dimension.
-                 
 
         ---Level: Internal
 
+inherits Polygon2d from Intf
+
 uses    Pnt2d              from gp,
        Box2d              from Bnd,
        Array1OfPnt2d      from TColgp,
-       Array1OfReal       from TColStd,
-       Array1OfInteger    from TColStd,
-       Domain             from IntRes2d
-
+        Array1OfReal       from TColStd,
+        Array1OfInteger    from TColStd,
+        Domain             from IntRes2d
 
 raises  OutOfRange from Standard
 
-
 is  
 
     Create         (Curve       : TheCurve;
@@ -63,17 +61,10 @@ is
                   --          a polygon inside or near the OtherBox.
                    is static;
 
-    Bounding       (me)
-                   returns Box2d from Bnd
-                   is static;
-    ---C++: return const &
-    ---C++: inline
-    ---Purpose: Give the bounding box of the polygon.
-
     DeflectionOverEstimation(me)
                   returns Real from Standard
                   ---C++: inline
-                  is static;
+                  is redefined virtual;
 
     SetDeflectionOverEstimation(me: in out; x:Real from Standard)
                     ---C++: inline
@@ -83,34 +74,16 @@ is
                    ---C++: inline
                    is static;
 
-    Closed         (me)
-                   returns Boolean from Standard
-                   ---C++: inline                  
-                   is static;
-
     NbSegments     (me)
                    returns Integer
                    ---C++: inline
-                   is static;
+                   is redefined virtual;
     ---Purpose: Give the number of Segments in the polyline.
-    
-    BeginOfSeg     (me;
-                   Index : in Integer)
-                   returns Pnt2d from gp
-                   raises OutOfRange from Standard
-                   is static;
-    ---Purpose: Give the point of range Index in the Polygon. 
-    ---C++: inline
-    ---C++: return const &
-
-    EndOfSeg       (me;
-                   Index : in Integer)
-                   returns Pnt2d from gp
-                   raises OutOfRange from Standard
-                   is static;
-    ---Purpose: Give the point of range Index in the Polygon. 
-    ---C++: inline
-    ---C++: return const &
+
+    Segment (me; theIndex : in Integer from Standard;
+                 theBegin, theEnd : in out Pnt2d from gp)
+        raises OutOfRange from Standard is redefined virtual;
+    ---Purpose: Returns the points of the segment <Index> in the Polygon.
 
 -- Implementation : 
 
@@ -165,22 +138,17 @@ is
        is static;
 
 
-fields  TheBnd        : Box2d                from Bnd;
-       TheDeflection : Real                 from Standard;
+fields  TheDeflection : Real                 from Standard;
        NbPntIn       : Integer              from Standard;
-       TheMaxNbPoints: Integer              from Standard;
+        TheMaxNbPoints: Integer              from Standard;
        ThePnts       : Array1OfPnt2d        from TColgp;
-       TheParams     : Array1OfReal         from TColStd;
-       TheIndex      : Array1OfInteger      from TColStd;
-       ClosedPolygon : Boolean              from Standard;
-       
+        TheParams     : Array1OfReal         from TColStd;
+        TheIndex      : Array1OfInteger      from TColStd;
+        ClosedPolygon : Boolean              from Standard;
+
        --- To compute an approximate parameter on the Curve
        --  
        Binf          : Real                 from Standard;
        Bsup          : Real                 from Standard;
-       
 
 end Polygon2dGen;
-
-
-