0022627: Change OCCT memory management defaults
[occt.git] / src / StdPrs / StdPrs_DeflectionCurve.cdl
1 -- File:        DeflectionCurve.cdl
2 -- Created:     Tue Dec 15 18:12:33 1992
3 -- Author:      Jean Louis FRENKEL
4 --              <jlf@mastox>
5 ---Copyright:    Matra Datavision 1992
6
7
8 class DeflectionCurve from StdPrs 
9      
10 inherits Root from Prs3d
11    
12     
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.
16
17 uses
18     Presentation   from Prs3d,
19     Drawer         from Prs3d,
20     Length         from Quantity,
21     Curve          from Adaptor3d, 
22     SequenceOfPnt  from TColgp     
23
24 is
25
26
27
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);
32
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).   
40           
41
42
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);
48                     
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).   
57
58
59
60
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);
67
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).   
74
75
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);
82
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).   
90
91
92
93
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);
101                  
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).   
110
111
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;
117     
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.
121
122
123
124
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;
131     
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;
137
138
139
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;
147     
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.
151
152
153
154
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;
162     
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;
167
168
169
170 end DeflectionCurve from StdPrs;
171
172
173