Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IGESSolid / IGESSolid_SolidOfRevolution.cdl
CommitLineData
7fd59977 1--
2-- File : SolidOfRevolution.cdl
3-- Created : Sat 9 Jan 1993
4-- Author : CKY / Contract Toubro-Larsen ( SIVA )
5--
6---Copyright : MATRA-DATAVISION 1993
7--
8
9class SolidOfRevolution from IGESSolid inherits IGESEntity
10
11 ---Purpose: defines SolidOfRevolution, Type <162> Form Number <0,1>
12 -- in package IGESSolid
13 -- This entity is defined by revolving the area determined
14 -- by a planar curve about a specified axis through a given
15 -- fraction of full rotation.
16
17uses
18
19 Pnt from gp,
20 Dir from gp,
21 XYZ from gp
22
23is
24
25 Create returns mutable SolidOfRevolution;
26
27 -- Specific Methods pertaining to the class
28
29 Init (me : mutable;
30 aCurve : IGESEntity;
31 aFract : Real;
32 aAxisPnt : XYZ;
33 aDirection : XYZ);
34 ---Purpose : This method is used to set the fields of the class
35 -- SolidOfRevolution
36 -- - aCurve : the curve entity that is to be revolved
37 -- - aFract : the fraction of full rotation (default 1.0)
38 -- - aAxisPnt : the point on the axis
39 -- - aDirection : the direction of the axis
40
41 SetClosedToAxis (me : mutable; mode : Boolean);
42 ---Purpose : Sets the Curve to be by default, Closed to Axis (Form 0)
43 -- if <mode> is True, Closed to Itself (Form 1) else
44
45 IsClosedToAxis (me) returns Boolean;
46 ---Purpose : Returns True if Form Number = 0
47 -- if Form no is 0, then the curve is closed to axis
48 -- if 1, the curve is closed to itself.
49
50
51 Curve (me) returns IGESEntity;
52 ---Purpose : returns the curve entity that is to be revolved
53
54 Fraction (me) returns Real;
55 ---Purpose : returns the fraction of full rotation that the curve is to
56 -- be rotated
57
58 AxisPoint (me) returns Pnt;
59 ---Purpose : returns the point on the axis
60
61 TransformedAxisPoint (me) returns Pnt;
62 ---Purpose : returns the point on the axis after applying Trans.Matrix
63
64 Axis (me) returns Dir;
65 ---Purpose : returns the direction of the axis
66
67 TransformedAxis (me) returns Dir;
68 ---Purpose : returns the direction of the axis after applying
69 -- TransformationMatrix
70
71fields
72
73--
74-- Class : IGESSolid_SolidOfRevolution
75--
76-- Purpose : Declaration of variables specific to the definition
77-- of the Class SolidOfRevolution.
78--
79-- Reminder : A SolidOfRevolution instance is defined by :
80-- the curve(Curve) rotated for a fraction (Fraction) of full
81-- rotation about an axis that is given by a point(X1,Y1,Z1) on
82-- the axis and the direction(I1,J1,K1)
83--
84
85 theCurve : IGESEntity;
86 -- the curve that is to be rotated
87
88 theFraction : Real;
89 -- the fraction of full rotation
90
91 theAxisPoint : XYZ;
92 -- the coordinates of the point on the axis
93
94 theAxis : XYZ;
95 -- the axis of rotation
96
97end SolidOfRevolution;