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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESGeom_SurfaceOfRevolution_HeaderFile
18 #define _IGESGeom_SurfaceOfRevolution_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Real.hxx>
24 #include <IGESData_IGESEntity.hxx>
26 class IGESData_IGESEntity;
29 class IGESGeom_SurfaceOfRevolution;
30 DEFINE_STANDARD_HANDLE(IGESGeom_SurfaceOfRevolution, IGESData_IGESEntity)
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
44 Standard_EXPORT IGESGeom_SurfaceOfRevolution();
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);
53 //! returns the axis of revolution
54 Standard_EXPORT Handle(IGESGeom_Line) AxisOfRevolution() const;
56 //! returns the curve which is revolved about the axis
57 Standard_EXPORT Handle(IGESData_IGESEntity) Generatrix() const;
59 //! returns start angle of revolution
60 Standard_EXPORT Standard_Real StartAngle() const;
62 //! returns end angle of revolution
63 Standard_EXPORT Standard_Real EndAngle() const;
68 DEFINE_STANDARD_RTTIEXT(IGESGeom_SurfaceOfRevolution,IGESData_IGESEntity)
78 Handle(IGESGeom_Line) theLine;
79 Handle(IGESData_IGESEntity) theGeneratrix;
80 Standard_Real theStartAngle;
81 Standard_Real theEndAngle;
92 #endif // _IGESGeom_SurfaceOfRevolution_HeaderFile