summaryrefslogtreecommitdiff
path: root/src/HatchGen/HatchGen_PointOnElement.cdl
blob: a4ecc2d984e28b06b7f1451906ae19400da13c1e (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
-- File:	HatchGen_PointOnElement.cdl
-- Created:	Fri Oct 29 15:21:47 1993
-- Author:	Jean Marc LACHAUME
--		<jml@phobox>
-- Copyright:	Matra Datavision 1993

class PointOnElement from HatchGen


inherits IntersectionPoint from HatchGen


uses
    IntersectionType  from HatchGen ,
    IntersectionPoint from IntRes2d ,
    Orientation       from TopAbs


is


    Create
    
    	---Purpose; Creates an empty point on element

      	---Category: PointOnElement

    	returns PointOnElement from HatchGen ;
	

    Create (Point : PointOnElement from HatchGen)
    
    	---Purpose: Creates a point from an other.

      	---Category: PointOnElement

    	returns PointOnElement from HatchGen ;


    Create (Point       : IntersectionPoint from IntRes2d)
    
    	---Purpose: Creates a point from an intersection point.

      	---Category: PointOnElement

    	returns PointOnElement from HatchGen ;


    SetIntersectionType (me : in out ; Type : IntersectionType from HatchGen)
		   
      	---Purpose: Sets the intersection type at this point.

      	---Category: PointOnElement
    	---C++: inline
    	is static ;


    IntersectionType (me)
    
      	---Purpose: Returns the intersection type at this point.

      	---Category: PointOnElement

    	---C++: inline
    	returns IntersectionType from HatchGen
    	is static ;


    IsIdentical (me; Point     : PointOnElement from HatchGen ;
    	    	     Confusion : Real           from Standard)

      	---Purpose: Tests if the point is identical to an other.
      	--          That is to say :
        --            P1.myIndex  = P2.myIndex
        --            Abs (P1.myParam - P2.myParam) <= Confusion
        --            P1.myPosit  = P2.myPosit       
        --            P1.myBefore = P2.myBefore
        --            P1.myAfter  = P2.myAfter
	--            P1.mySegBeg = P2.mySegBeg
    	--            P1.mySegEnd = P2.mySegEnd
        --            P1.myType   = P2.myType

      	---Category: PointOnElement

	returns Boolean from Standard
  	is static ;


    IsDifferent (me; Point     : PointOnElement from HatchGen ;
    	    	     Confusion : Real           from Standard)


      	---Purpose: Tests if the point is different from an other.

      	---Category: PointOnElement

	returns Boolean from Standard
  	is static ;


    Dump (me; Index : Integer from Standard = 0)
    
    	---Purpose: Dump of the point on element.

    	is static ;
	

fields

    myType : IntersectionType from HatchGen is protected ;

end PointOnElement from HatchGen ;