|
||||
File indexing completed on 2025-01-18 10:04:01
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 0027 class IGESGeom_SurfaceOfRevolution; 0028 DEFINE_STANDARD_HANDLE(IGESGeom_SurfaceOfRevolution, IGESData_IGESEntity) 0029 0030 //! defines IGESSurfaceOfRevolution, Type <120> Form <0> 0031 //! in package IGESGeom 0032 //! A surface of revolution is defined by an axis of rotation 0033 //! a generatrix, and start and terminate rotation angles. The 0034 //! surface is created by rotating the generatrix about the axis 0035 //! of rotation through the start and terminate rotation angles. 0036 class IGESGeom_SurfaceOfRevolution : public IGESData_IGESEntity 0037 { 0038 0039 public: 0040 0041 0042 Standard_EXPORT IGESGeom_SurfaceOfRevolution(); 0043 0044 //! This method is used to set the fields of the class Line 0045 //! - anAxis : Axis of revolution 0046 //! - aGeneratrix : The curve which is revolved about the axis 0047 //! - aStartAngle : Start angle of the surface of revolution 0048 //! - anEndAngle : End angle of the surface of revolution 0049 Standard_EXPORT void Init (const Handle(IGESGeom_Line)& anAxis, const Handle(IGESData_IGESEntity)& aGeneratrix, const Standard_Real aStartAngle, const Standard_Real anEndAngle); 0050 0051 //! returns the axis of revolution 0052 Standard_EXPORT Handle(IGESGeom_Line) AxisOfRevolution() const; 0053 0054 //! returns the curve which is revolved about the axis 0055 Standard_EXPORT Handle(IGESData_IGESEntity) Generatrix() const; 0056 0057 //! returns start angle of revolution 0058 Standard_EXPORT Standard_Real StartAngle() const; 0059 0060 //! returns end angle of revolution 0061 Standard_EXPORT Standard_Real EndAngle() const; 0062 0063 0064 0065 0066 DEFINE_STANDARD_RTTIEXT(IGESGeom_SurfaceOfRevolution,IGESData_IGESEntity) 0067 0068 protected: 0069 0070 0071 0072 0073 private: 0074 0075 0076 Handle(IGESGeom_Line) theLine; 0077 Handle(IGESData_IGESEntity) theGeneratrix; 0078 Standard_Real theStartAngle; 0079 Standard_Real theEndAngle; 0080 0081 0082 }; 0083 0084 0085 0086 0087 0088 0089 0090 #endif // _IGESGeom_SurfaceOfRevolution_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |