summaryrefslogtreecommitdiff
path: root/src/HatchGen/HatchGen_ElementsGen.cdl
blob: 8eaa5f82782997095bf04f20e0a43da9d036479f (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
-- File:	HatchGen_ElementsGen.cdl
-- Created:	Fri Dec 16 11:01:56 1994
-- Author:	Laurent BUCHARD
--		<lbr@mastox>
---Copyright:	 Matra Datavision 1994

-- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627


generic class ElementsGen from HatchGen
   (TheKey          as any;
    TheItem         as any;
    TheHasher       as any;
    TheCurve        as any)
    

uses 
    Orientation      from TopAbs,
    Lin2d            from gp,
    Pnt2d            from gp

raises         
    DomainError  from Standard,
    NoSuchObject from Standard


private class MapOfElements from HatchGen instantiates 
    DataMap from TCollection
    	    (TheKey,
	     TheItem,
	     TheHasher);


is 

    Create
    returns ElementsGen from HatchGen;

    Create(Other : ElementsGen from HatchGen)
    returns ElementsGen from HatchGen;

        

----------------------------------------------------------------------
--               E m u l a t i o n   o f   D a t a M a p  
--               
--                  f r o m  T C o l l e c t  i o n                                                                          
----------------------------------------------------------------------
    Clear(me : in out)
	---C++: alias ~
    is static;

    Bind(me : in out; K : TheKey; I : TheItem) returns Boolean
    is static;

    IsBound(me; K : TheKey) returns Boolean
    is static;
    
    UnBind(me : in out; K : TheKey) returns Boolean
    is static;
    
    Find(me; K : TheKey) returns any TheItem
    raises NoSuchObject from Standard  -- when <K> is not in the map.
	---C++: alias operator()
	---C++: return const &
    is static;
    
    ChangeFind(me : in out; K : TheKey) returns any TheItem
    raises NoSuchObject from Standard  -- when <K> is not in the map.
	---C++: alias operator()
	---C++: return &
    is static;

----------------------------------------------------------------------
--      M e t h o d s   u s e d   b y   t h e   C l a s s i f i e r 
--      
--      see BRepClass_FaceExplorer for the Purposes
----------------------------------------------------------------------

    Reject(me;  P : Pnt2d from gp) 
        returns Boolean from Standard
    is static;
    
-- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627 Begin
    Segment(me: in out;  P   :     Pnt2d from gp;
    	                 L   : out Lin2d from gp; 
                         Par : out Real)
    returns  Boolean from Standard
    is static;
    
    OtherSegment(me: in out;  P   :     Pnt2d from gp;
    	                      L   : out Lin2d from gp; 
                              Par : out Real)
    returns Boolean from Standard
    is static;
    
-- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627 End

    InitWires(me : in out)
    is static;
    
    MoreWires(me) returns
       Boolean from Standard
    is static;
    	
    NextWire(me : in out)
    is static;
    
    RejectWire(me; L : Lin2d from gp; 
                 Par : Real  from Standard) 
    	returns Boolean from Standard
    is static;
    
    InitEdges(me : in out)
    is static;
    
    MoreEdges(me) 
       returns Boolean from Standard
    is static;
    
    NextEdge(me  : in out) 
    is static;

    RejectEdge(me; L : Lin2d from gp; 
                 Par : Real  from Standard) 
    	returns Boolean from Standard
    is static;
    
    CurrentEdge(me; E : out TheCurve;
    	           Or : out Orientation from TopAbs)
    is static;
    

fields 

    myMap    : MapOfElements; 
    Iter     : DataMapIteratorOfMapOfElements;
    NumWire  : Integer from Standard;
    NumEdge  : Integer from Standard;
    myCurEdge: Integer from Standard;
    
end ElementsGen from HatchGen;