1 -- File: DeflectionCurve.cdl
2 -- Created: Tue Dec 15 18:12:33 1992
3 -- Author: Jean Louis FRENKEL
5 ---Copyright: Matra Datavision 1992
8 class DeflectionCurve from StdPrs
10 inherits Root from Prs3d
13 ---Purpose: A framework to provide display of any curve with
14 -- respect to the maximal chordal deviation defined in
15 -- the Prs3d_Drawer attributes manager.
18 Presentation from Prs3d,
22 SequenceOfPnt from TColgp
28 Add(myclass; aPresentation: Presentation from Prs3d;
29 aCurve : in out Curve from Adaptor3d;
30 aDrawer : Drawer from Prs3d;
31 drawCurve : Boolean from Standard = Standard_True);
33 ---Purpose: adds to the presentation aPresentation the drawing of the curve
34 -- aCurve with respect to the maximal chordial deviation defined
35 -- by the drawer aDrawer.
36 -- The aspect is defined by LineAspect in aDrawer.
37 -- If drawCurve equals Standard_False the curve will not be displayed,
38 -- it is used if the curve is a part of some shape and PrimitiveArray
39 -- visualization approach is activated (it is activated by default).
43 Add(myclass; aPresentation: Presentation from Prs3d;
44 aCurve : in out Curve from Adaptor3d;
45 U1, U2 : Real from Standard;
46 aDrawer : Drawer from Prs3d;
47 drawCurve : Boolean from Standard = Standard_True);
49 ---Purpose: adds to the presentation aPresentation the drawing of the curve
50 -- aCurve with respect to the maximal chordial deviation defined
51 -- by the drawer aDrawer.
52 -- The aspect is defined by LineAspect in aDrawer.
53 -- The drawing will be limited between the points of parameter U1 and U2.
54 -- If drawCurve equals Standard_False the curve will not be displayed,
55 -- it is used if the curve is a part of some shape and PrimitiveArray
56 -- visualization approach is activated (it is activated by default).
61 Add(myclass; aPresentation: Presentation from Prs3d;
62 aCurve : in out Curve from Adaptor3d;
63 aDeflection : Real from Standard;
64 aLimit : Real from Standard;
65 anAngle : Real from Standard = 0.2;
66 drawCurve : Boolean from Standard = Standard_True);
68 ---Purpose: adds to the presentation aPresentation the drawing of the curve
69 -- aCurve with respect to the maximal chordial deviation aDeflection.
70 -- The aspect is the current aspect
71 -- If drawCurve equals Standard_False the curve will not be displayed,
72 -- it is used if the curve is a part of some shape and PrimitiveArray
73 -- visualization approach is activated (it is activated by default).
76 Add(myclass; aPresentation: Presentation from Prs3d;
77 aCurve : in out Curve from Adaptor3d;
78 aDeflection : Real from Standard;
79 aDrawer : Drawer from Prs3d;
80 Points : out SequenceOfPnt from TColgp;
81 drawCurve : Boolean from Standard = Standard_True);
83 ---Purpose: adds to the presentation aPresentation the drawing of the curve
84 -- aCurve with respect to the maximal chordial deviation aDeflection.
85 -- The aspect is the current aspect
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).
94 Add(myclass; aPresentation: Presentation from Prs3d;
95 aCurve : in out Curve from Adaptor3d;
96 U1, U2 : Real from Standard;
97 aDeflection : Real from Standard;
98 Points : out SequenceOfPnt from TColgp;
99 anAngle : Real from Standard = 0.2;
100 drawCurve : Boolean from Standard = Standard_True);
102 ---Purpose: adds to the presentation aPresentation the drawing of the curve
103 -- aCurve with respect to the maximal chordial deviation aDeflection.
104 -- The aspect is the current aspect
105 -- The drawing will be limited between the points of parameter U1 and U2.
106 -- Points give a sequence of curve points.
107 -- If drawCurve equals Standard_False the curve will not be displayed,
108 -- it is used if the curve is a part of some shape and PrimitiveArray
109 -- visualization approach is activated (it is activated by default).
112 Match(myclass; X, Y, Z : Length from Quantity;
113 aDistance : Length from Quantity;
114 aCurve : Curve from Adaptor3d;
115 aDrawer : Drawer from Prs3d)
116 returns Boolean from Standard;
118 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
119 -- drawing of the curve aCurve with respect of the maximal
120 -- chordial deviation defined by the drawer aDrawer is less then aDistance.
125 Match(myclass; X, Y, Z : Length from Quantity;
126 aDistance: Length from Quantity;
127 aCurve : Curve from Adaptor3d;
128 U1, U2 : Real from Standard;
129 aDrawer : Drawer from Prs3d)
130 returns Boolean from Standard;
132 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
133 -- drawing of the curve aCurve with respect of the maximal
134 -- chordial deviation defined by the drawer aDrawer is less
135 -- then aDistance. The drawing is considered between the points
136 -- of parameter U1 and U2;
140 Match(myclass; X,Y,Z : Length from Quantity;
141 aDistance : Length from Quantity;
142 aCurve : Curve from Adaptor3d;
143 aDeflection: Real from Standard;
144 aLimit : Real from Standard;
145 anAngle : Real from Standard = 0.2)
146 returns Boolean from Standard;
148 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
149 -- drawing with respect of the maximal chordial deviation
150 -- aDeflection is less then aDistance.
155 Match(myclass; X, Y, Z : Length from Quantity;
156 aDistance : Length from Quantity;
157 aCurve : Curve from Adaptor3d;
158 U1, U2 : Real from Standard;
159 aDeflection : Real from Standard;
160 anAngle : Real from Standard = 0.2)
161 returns Boolean from Standard;
163 ---Purpose: returns true if the distance between the point (X,Y,Z) and the
164 -- drawing with respect of the maximal chordial deviation
165 -- aDeflection is less then aDistance. The drawing is considered
166 -- between the points of parameter U1 and U2;
170 end DeflectionCurve from StdPrs;