1 -- File: HLRBRep_HLRToShape.cdl
2 -- Created: Mon Oct 11 16:45:31 1993
3 -- Author: Christophe MARION
4 ---Copyright: Matra Datavision 1993
6 class HLRToShape from HLRBRep
7 ---Purpose: A framework for filtering the computation
8 -- results of an HLRBRep_Algo algorithm by extraction.
9 -- From the results calculated by the algorithm on
10 -- a shape, a filter returns the type of edge you
11 -- want to identify. You can choose any of the following types of output:
12 -- - visible sharp edges
13 -- - hidden sharp edges
14 -- - visible smooth edges
15 -- - hidden smooth edges
16 -- - visible sewn edges
17 -- - hidden sewn edges
18 -- - visible outline edges
19 -- - hidden outline edges.
20 -- - visible isoparameters and
21 -- - hidden isoparameters.
22 -- Sharp edges present a C0 continuity (non G1).
23 -- Smooth edges present a G1 continuity (non G2).
24 -- Sewn edges present a C2 continuity.
25 -- The result is composed of 2D edges in the
26 -- projection plane of the view which the
27 -- algorithm has worked with. These 2D edges
28 -- are not included in the data structure of the visualized shape.
29 -- In order to obtain a complete image, you must
30 -- combine the shapes given by each of the chosen filters.
31 -- The construction of the shape does not call a
32 -- new computation of the algorithm, but only
33 -- reads its internal results.
34 -- The methods of this shape are almost identic to those of the HLRBrep_PolyHLRToShape class.
36 Boolean from Standard,
37 Integer from Standard,
47 Create(A : Algo from HLRBRep)
48 returns HLRToShape from HLRBRep;
49 ---Purpose: Constructs a framework for filtering the
50 --- results of the HLRBRep_Algo algorithm, A.
51 -- Use the extraction filters to obtain the results you want for A.
52 VCompound(me : in out) returns Shape from TopoDS
56 VCompound(me : in out;
57 S : Shape from TopoDS) returns Shape from TopoDS
61 Rg1LineVCompound(me : in out) returns Shape from TopoDS
65 Rg1LineVCompound(me : in out;
66 S : Shape from TopoDS) returns Shape from TopoDS
70 RgNLineVCompound(me : in out) returns Shape from TopoDS
74 RgNLineVCompound(me : in out;
75 S : Shape from TopoDS) returns Shape from TopoDS
79 OutLineVCompound(me : in out) returns Shape from TopoDS
83 OutLineVCompound(me : in out;
84 S : Shape from TopoDS) returns Shape from TopoDS
88 IsoLineVCompound(me : in out) returns Shape from TopoDS
92 IsoLineVCompound(me : in out;
93 S : Shape from TopoDS) returns Shape from TopoDS
97 HCompound(me : in out) returns Shape from TopoDS
101 HCompound(me : in out;
102 S : Shape from TopoDS) returns Shape from TopoDS
106 Rg1LineHCompound(me : in out) returns Shape from TopoDS
110 Rg1LineHCompound(me : in out;
111 S : Shape from TopoDS) returns Shape from TopoDS
115 RgNLineHCompound(me : in out) returns Shape from TopoDS
119 RgNLineHCompound(me : in out;
120 S : Shape from TopoDS) returns Shape from TopoDS
124 OutLineHCompound(me : in out) returns Shape from TopoDS
128 OutLineHCompound(me : in out;
129 S : Shape from TopoDS) returns Shape from TopoDS
133 IsoLineHCompound(me : in out) returns Shape from TopoDS
137 IsoLineHCompound(me : in out;
138 S : Shape from TopoDS) returns Shape from TopoDS
142 InternalCompound(me : in out; typ : Integer from Standard;
143 visible : Boolean from Standard;
144 S : Shape from TopoDS)
145 returns Shape from TopoDS
148 DrawFace(me; visible : Boolean from Standard;
149 typ : Integer from Standard;
150 iface : Integer from Standard;
151 DS : out Data from HLRBRep;
152 Result : out Shape from TopoDS;
153 added : out Boolean from Standard)
156 DrawEdge(me; visible : Boolean from Standard;
157 inFace : Boolean from Standard;
158 typ : Integer from Standard;
159 ed : out EdgeData from HLRBRep;
160 Result : out Shape from TopoDS;
161 added : out Boolean from Standard)
165 myAlgo : Algo from HLRBRep;