7fd59977 |
1 | -- File: ShapeUpgrade_ConvertCurve3dToBezier.cdl |
2 | -- Created: Thu May 13 14:02:24 1999 |
3 | -- Author: data exchange team |
4 | -- <det@friendox.nnov.matra-dtv.fr> |
5 | ---Copyright: Matra Datavision 1999 |
6 | |
7 | class ConvertCurve3dToBezier from ShapeUpgrade inherits SplitCurve3d from ShapeUpgrade |
8 | |
9 | ---Purpose: converts/splits a 3d curve of any type to a list of beziers |
10 | |
11 | uses |
12 | |
13 | HSequenceOfCurve from TColGeom, |
14 | HSequenceOfReal from TColStd |
15 | |
16 | is |
17 | |
18 | Create returns ConvertCurve3dToBezier from ShapeUpgrade; |
19 | ---Purpose: Empty constructor |
20 | |
21 | SetLineMode(me:mutable; mode: Boolean); |
22 | ---Purpose: Sets mode for conversion Geom_Line to bezier. |
23 | ---C++: inline |
24 | |
25 | GetLineMode(me) returns Boolean; |
26 | ---Purpose: Returns the Geom_Line conversion mode. |
27 | ---C++: inline |
28 | |
29 | SetCircleMode(me:mutable; mode: Boolean); |
30 | ---Purpose: Sets mode for conversion Geom_Circle to bezier. |
31 | ---C++: inline |
32 | |
33 | GetCircleMode(me) returns Boolean; |
34 | ---Purpose: Returns the Geom_Circle conversion mode. |
35 | ---C++: inline |
36 | |
37 | SetConicMode(me:mutable; mode: Boolean); |
38 | ---Purpose: Returns the Geom_Conic conversion mode. |
39 | ---C++: inline |
40 | |
41 | GetConicMode(me) returns Boolean; |
42 | ---Purpose: Performs converting and computes the resulting shape. |
43 | ---C++: inline |
44 | |
45 | Compute(me: mutable) is redefined; |
46 | ---Purpose: Converts curve into a list of beziers, and stores the |
47 | -- splitting parameters on original curve. |
48 | |
49 | Build (me: mutable; Segment: Boolean) is redefined; |
50 | ---Purpose: Splits a list of beziers computed by Compute method according |
51 | -- the split values and splitting parameters. |
52 | |
53 | Segments(me) returns HSequenceOfCurve from TColGeom is private; |
54 | ---Purpose: Returns the list of bezier curves correspondent to original |
55 | -- curve. |
56 | |
57 | SplitParams(me) returns HSequenceOfReal from TColStd; |
58 | ---Purpose: Returns the list of splitted parameters in original curve |
59 | -- parametrisation. |
60 | |
61 | fields |
62 | |
63 | mySegments : HSequenceOfCurve from TColGeom; |
64 | mySplitParams: HSequenceOfReal from TColStd; |
65 | myLineMode : Boolean; |
66 | myCircleMode : Boolean; |
67 | myConicMode : Boolean; |
68 | |
69 | end ConvertCurve2dToBezier; |
70 | |