summaryrefslogtreecommitdiff
path: root/src/StdPrs/StdPrs.cdl
blob: 62f3832eb433e827494413ab56616e3122a953f6 (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
143
144
145
146
147
148
149
150
151
152
-- File:	Prs.cdl
-- Created:	Wed Aug 26 17:38:18 1992
-- Author:	Jean Louis FRENKEL
--		<jlf@mastox>
---Copyright:	 Matra Datavision 1992

package StdPrs
    	---Purpose: The StdPrs package provides standard display tools
	-- for specific geometries and topologies whereas
	-- Prs3d provides those for generic objects. Among
	-- these classes are definitions of the display of the
	-- specific geometry or topology in various display
	-- modes such as wireframe, shading or hidden line removal mode.
    	       
uses
        Prs3d,
	Geom,
	Geom2d,
	Adaptor3d,
	Adaptor2d,
        GeomAdaptor,
	Geom2dAdaptor,
        BRepAdaptor,
	TopTools,
	TopoDS,
	TopExp,
        TopAbs,
	BRepTools,
	Bnd,
        TColStd,
        HLRAlgo,
    	HLRBRep,
        Quantity,
	BRepMesh,
	gp,
	TColgp,
	Poly,
	TopLoc, 
	Graphic3d

is
   class ToolPoint;
   class ToolVertex;
   class ToolRFace;
   class HLRToolShape;
   --class ToolSectionShape;
   class ToolShadedShape;
   
   
   class Point 
   instantiates Point from Prs3d(Point from Geom, ToolPoint from StdPrs); 
   
   class Vertex 
   instantiates Point from Prs3d(Vertex from TopoDS, ToolVertex from StdPrs); 
   
   class PoleCurve;
	---Purpose: computes the presentation of curves by drawing
	--          a broken line linking the poles of the curve.

   class Plane;
   	---Purpose: computes the presentation of a infinite plane.

   class WFPoleSurface;
   	---Purpose: computes the presentation of surfaces by drawing a
	--          double network of lines linking the poles of the surface
	--          in the two parametric direction.
	

   class DeflectionCurve;		      
	---Purpose: computes the presentation of objects to be
	--          seen as curves. The computation will be made
	--          according to a maximal chordial deviation.
	          
	---Category: Wireframe algorithms
   
   class WFDeflectionSurface;
	---Purpose: computes the wireframe presentation of surfaces 
	--          by displaying a given number of U and/or V isoparametric
	---         curves. The isoparametric curves are drawn with respect
	--          to a given maximal chordial deviation.

   class ShadedSurface;
   	---Purpose: computes the shading presentation of surfaces.

   class ShadedPoleSurface;


   -----------------------------------------------
   --- deflection drawing classes :
   -----------------------------------------------

   class WFDeflectionRestrictedFace;


   class WFDeflectionShape instantiates WFShape from Prs3d
	 (WFDeflectionRestrictedFace from StdPrs,
	  DeflectionCurve            from StdPrs,
    	  Vertex                     from StdPrs);
		      
		      
   -----------------------------------------------
   --- Instantiations whith no deflection drawing.
   -----------------------------------------------

   class Curve;
   	---Purpose: computes the presentation of objects to be
	--          seen as curves. The computation will be made
	--          whith a constant number of points.


   class WFSurface;
   	---Purpose: computes the wireframe presentation of surfaces 
	--          by displaying a given number of U and/or V isoparametric
	---         curves. The isoparametric curves are drawn with respect
	--          to a given number of points.


   class WFRestrictedFace instantiates WFRestrictedFace from Prs3d  
    	 (Curve     from StdPrs,
    	  ToolRFace from StdPrs);


   class WFShape instantiates WFShape from Prs3d
	 (WFRestrictedFace  from StdPrs,
	  Curve             from StdPrs,
    	  Vertex            from StdPrs);


    class ShadedShape instantiates ShadedShape from Prs3d
    	  (Shape           from TopoDS,
	   Face            from TopoDS,
	   Triangle        from BRepMesh,
	   Edge            from BRepMesh,
    	   ToolShadedShape from StdPrs);
	       	   
	       
    class HLRShape instantiates HLRShape from Prs3d 
    	  (Shape           from TopoDS,
           HLRToolShape    from StdPrs,
	   Curve           from BRepAdaptor,
	   DeflectionCurve from StdPrs);
			
    class HLRPolyShape; 
     
    imported NListOfSequenceOfPnt from Prs3d; 
    imported NListIteratorOfListOfSequenceOfPnt from Prs3d;
    
			
end StdPrs;