summaryrefslogtreecommitdiff
path: root/src/IntPatch/IntPatch_PolyLine.cdl
blob: d136095cab836825fcd8877d77f9645d11586009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
-- File:      IntPatch_PolyLine.cdl
-- Created:   Fri Jan 29 17:14:59 1993
-- Author:    Isabelle GRIGNON
---Copyright: Matra Datavision 1993

class PolyLine from IntPatch

inherits Polygo from IntPatch

uses Pnt2d from gp,
     Box2d from Bnd,
     IType from IntPatch,
     WLine from IntPatch,
     RLine from IntPatch

is

    Create
    returns PolyLine from IntPatch;

    Create (InitDefle: Real from Standard)
   	returns PolyLine from IntPatch;

    SetWLine(me: in out; OnFirst: Boolean from Standard; Line: WLine from IntPatch)
    	is static;

    SetRLine(me: in out; OnFirst: Boolean from Standard; Line: RLine from IntPatch)
      	is static;

    Prepare(me: in out)
      	is static private;

    ResetError(me: in out);

    Bounding (me)  
    	---C++: return const & 
    	returns Box2d from Bnd;
  
    Error(me) returns Real from Standard;
                       	    	          
    Closed(me) returns Boolean from Standard;

    NbPoints(me) returns Integer;
  
    Point(me; Index : Integer) 
    	returns Pnt2d from gp;
                                      	    	 

fields

    box      : Box2d   from Bnd;
    pnt      : Pnt2d   from gp;
    typ      : IType   from IntPatch;
    onfirst  : Boolean from Standard;
    wpoly    : WLine from IntPatch;
    rpoly    : RLine from IntPatch;
    defle    : Real from Standard;

end PolyLine;