0022627: Change OCCT memory management defaults
[occt.git] / src / StdPrs / StdPrs_Curve.cdl
CommitLineData
7fd59977 1-- File: StdPrs_Curve.cdl
2-- Created: Fri Aug 4 11:17:47 1995
3-- Author: Modelistation
4-- <model@metrox>
5---Copyright: Matra Datavision 1995
6
7class Curve from StdPrs
8
9--
10 ---Purpose: A framework to define display of lines, arcs of circles
11 -- and conic sections.
12 -- This is done with a fixed number of points, which can be modified.
13
14
15
16inherits Root from Prs3d
17
18
19uses
20 Curve from Adaptor3d,
21 Presentation from Prs3d,
22 Drawer from Prs3d,
23 Length from Quantity,
24 SequenceOfPnt from TColgp
25is
26
27
28
29 Add(myclass; aPresentation: Presentation from Prs3d;
30 aCurve : Curve from Adaptor3d;
31 aDrawer : Drawer from Prs3d;
32 drawCurve : Boolean from Standard = Standard_True);
33
34 ---Purpose: Adds to the presentation aPresentation the drawing of the curve aCurve.
35 -- The aspect is defined by LineAspect in aDrawer.
36 -- If drawCurve equals Standard_False the curve will not be displayed,
37 -- it is used if the curve is a part of some shape and PrimitiveArray
38 -- visualization approach is activated (it is activated by default).
39
40
41 Add(myclass; aPresentation: Presentation from Prs3d;
42 aCurve : Curve from Adaptor3d;
43 U1,U2 : Real from Standard;
44 aDrawer : Drawer from Prs3d;
45 drawCurve : Boolean from Standard = Standard_True);
46
47 ---Purpose: Adds to the presentation aPresentation the drawing of the curve aCurve.
48 -- The aspect is defined by LineAspect in aDrawer.
49 -- The drawing will be limited between the points of parameter U1 and U2.
50 -- If drawCurve equals Standard_False the curve will not be displayed,
51 -- it is used if the curve is a part of some shape and PrimitiveArray
52 -- visualization approach is activated (it is activated by default).
53
54
55
56 Add(myclass; aPresentation: Presentation from Prs3d;
57 aCurve : Curve from Adaptor3d;
58 aDeflection : Length from Quantity;
59 aDrawer : Drawer from Prs3d;
60 Points : out SequenceOfPnt from TColgp;
61 drawCurve : Boolean from Standard = Standard_True);
62
63 ---Purpose: adds to the presentation aPresentation the drawing of the curve aCurve.
64 -- The aspect is the current aspect.
65 -- aDeflection is used in the circle case.
66 -- Points give a sequence of curve points.
67 -- If drawCurve equals Standard_False the curve will not be displayed,
68 -- it is used if the curve is a part of some shape and PrimitiveArray
69 -- visualization approach is activated (it is activated by default).
70
71
72 Add(myclass; aPresentation: Presentation from Prs3d;
73 aCurve : Curve from Adaptor3d;
74 U1, U2 : Real from Standard;
75 aDeflection : Length from Quantity;
76 Points : out SequenceOfPnt from TColgp;
77 aNbPoints : Integer from Standard = 30;
78 drawCurve : Boolean from Standard = Standard_True);
79
80 ---Purpose: adds to the presentation aPresentation the drawing of the curve
81 -- aCurve.
82 -- The aspect is the current aspect.
83 -- The drawing will be limited between the points of parameter
84 -- U1 and U2.
85 -- aDeflection is used in the circle case.
86 -- Points give a sequence of curve points.
87 -- If drawCurve equals Standard_False the curve will not be displayed,
88 -- it is used if the curve is a part of some shape and PrimitiveArray
89 -- visualization approach is activated (it is activated by default).
90
91
92 Match(myclass; X,Y,Z: Length from Quantity;
93 aDistance: Length from Quantity;
94 aCurve: Curve from Adaptor3d;
95 aDrawer: Drawer from Prs3d)
96 returns Boolean from Standard;
97
98 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
99 -- drawing of the curve is less than aDistance.
100
101
102 Match(myclass; X,Y,Z: Length from Quantity;
103 aDistance: Length from Quantity;
104 aCurve: Curve from Adaptor3d;
105 aDeflection: Length from Quantity;
106 aLimit: Real from Standard;
107 aNbPoints : Integer from Standard)
108 returns Boolean from Standard;
109
110 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
111 -- drawing of the curve is less than aDistance.
112
113
114
115
116 Match(myclass; X,Y,Z: Length from Quantity;
117 aDistance: Length from Quantity;
118 aCurve: Curve from Adaptor3d;
119 U1,U2 : Real from Standard;
120 aDrawer: Drawer from Prs3d)
121 returns Boolean from Standard;
122
123 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
124 -- drawing of the curve aCurve is less than aDistance.
125 -- The drawing is considered between the points
126 -- of parameter U1 and U2;
127
128
129 Match(myclass; X,Y,Z: Length from Quantity;
130 aDistance: Length from Quantity;
131 aCurve: Curve from Adaptor3d;
132 U1,U2 : Real from Standard;
133 aDeflection: Length from Quantity;
134 aNbPoints : Integer from Standard)
135 returns Boolean from Standard;
136
137 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
138 -- drawing of the curve aCurve is less than aDistance.
139 -- The drawing is considered between the points
140 -- of parameter U1 and U2;
141
142
143
144
145
146end Curve from StdPrs;
147
148
149