Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:20:57

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen ( Kiran )
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESGeom_SurfaceOfRevolution_HeaderFile
0018 #define _IGESGeom_SurfaceOfRevolution_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IGESData_IGESEntity.hxx>
0024 class IGESGeom_Line;
0025 
0026 //! defines IGESSurfaceOfRevolution, Type <120> Form <0>
0027 //! in package IGESGeom
0028 //! A surface of revolution is defined by an axis of rotation
0029 //! a generatrix, and start and terminate rotation angles. The
0030 //! surface is created by rotating the generatrix about the axis
0031 //! of rotation through the start and terminate rotation angles.
0032 class IGESGeom_SurfaceOfRevolution : public IGESData_IGESEntity
0033 {
0034 
0035 public:
0036   Standard_EXPORT IGESGeom_SurfaceOfRevolution();
0037 
0038   //! This method is used to set the fields of the class Line
0039   //! - anAxis      : Axis of revolution
0040   //! - aGeneratrix : The curve which is revolved about the axis
0041   //! - aStartAngle : Start angle of the surface of revolution
0042   //! - anEndAngle  : End angle of the surface of revolution
0043   Standard_EXPORT void Init(const occ::handle<IGESGeom_Line>&       anAxis,
0044                             const occ::handle<IGESData_IGESEntity>& aGeneratrix,
0045                             const double                            aStartAngle,
0046                             const double                            anEndAngle);
0047 
0048   //! returns the axis of revolution
0049   Standard_EXPORT occ::handle<IGESGeom_Line> AxisOfRevolution() const;
0050 
0051   //! returns the curve which is revolved about the axis
0052   Standard_EXPORT occ::handle<IGESData_IGESEntity> Generatrix() const;
0053 
0054   //! returns start angle of revolution
0055   Standard_EXPORT double StartAngle() const;
0056 
0057   //! returns end angle of revolution
0058   Standard_EXPORT double EndAngle() const;
0059 
0060   DEFINE_STANDARD_RTTIEXT(IGESGeom_SurfaceOfRevolution, IGESData_IGESEntity)
0061 
0062 private:
0063   occ::handle<IGESGeom_Line>       theLine;
0064   occ::handle<IGESData_IGESEntity> theGeneratrix;
0065   double                           theStartAngle;
0066   double                           theEndAngle;
0067 };
0068 
0069 #endif // _IGESGeom_SurfaceOfRevolution_HeaderFile