42cf5bc1 |
1 | // Created on: 1993-01-09 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Kiran ) |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _IGESGeom_SurfaceOfRevolution_HeaderFile |
18 | #define _IGESGeom_SurfaceOfRevolution_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Real.hxx> |
24 | #include <IGESData_IGESEntity.hxx> |
25 | class IGESGeom_Line; |
26 | class IGESData_IGESEntity; |
27 | |
28 | |
29 | class IGESGeom_SurfaceOfRevolution; |
30 | DEFINE_STANDARD_HANDLE(IGESGeom_SurfaceOfRevolution, IGESData_IGESEntity) |
31 | |
32 | //! defines IGESSurfaceOfRevolution, Type <120> Form <0> |
33 | //! in package IGESGeom |
34 | //! A surface of revolution is defined by an axis of rotation |
35 | //! a generatrix, and start and terminate rotation angles. The |
36 | //! surface is created by rotating the generatrix about the axis |
37 | //! of rotation through the start and terminate rotation angles. |
38 | class IGESGeom_SurfaceOfRevolution : public IGESData_IGESEntity |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | Standard_EXPORT IGESGeom_SurfaceOfRevolution(); |
45 | |
46 | //! This method is used to set the fields of the class Line |
47 | //! - anAxis : Axis of revolution |
48 | //! - aGeneratrix : The curve which is revolved about the axis |
49 | //! - aStartAngle : Start angle of the surface of revolution |
50 | //! - anEndAngle : End angle of the surface of revolution |
51 | Standard_EXPORT void Init (const Handle(IGESGeom_Line)& anAxis, const Handle(IGESData_IGESEntity)& aGeneratrix, const Standard_Real aStartAngle, const Standard_Real anEndAngle); |
52 | |
53 | //! returns the axis of revolution |
54 | Standard_EXPORT Handle(IGESGeom_Line) AxisOfRevolution() const; |
55 | |
56 | //! returns the curve which is revolved about the axis |
57 | Standard_EXPORT Handle(IGESData_IGESEntity) Generatrix() const; |
58 | |
59 | //! returns start angle of revolution |
60 | Standard_EXPORT Standard_Real StartAngle() const; |
61 | |
62 | //! returns end angle of revolution |
63 | Standard_EXPORT Standard_Real EndAngle() const; |
64 | |
65 | |
66 | |
67 | |
92efcf78 |
68 | DEFINE_STANDARD_RTTIEXT(IGESGeom_SurfaceOfRevolution,IGESData_IGESEntity) |
42cf5bc1 |
69 | |
70 | protected: |
71 | |
72 | |
73 | |
74 | |
75 | private: |
76 | |
77 | |
78 | Handle(IGESGeom_Line) theLine; |
79 | Handle(IGESData_IGESEntity) theGeneratrix; |
80 | Standard_Real theStartAngle; |
81 | Standard_Real theEndAngle; |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _IGESGeom_SurfaceOfRevolution_HeaderFile |