1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
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 _IGESSolid_Cylinder_HeaderFile
18 #define _IGESSolid_Cylinder_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Real.hxx>
25 #include <IGESData_IGESEntity.hxx>
31 class IGESSolid_Cylinder;
32 DEFINE_STANDARD_HANDLE(IGESSolid_Cylinder, IGESData_IGESEntity)
34 //! defines Cylinder, Type <154> Form Number <0>
35 //! in package IGESSolid
36 //! This defines a solid cylinder
37 class IGESSolid_Cylinder : public IGESData_IGESEntity
43 Standard_EXPORT IGESSolid_Cylinder();
45 //! This method is used to set the fields of the class
47 //! - aHeight : Cylinder height
48 //! - aRadius : Cylinder radius
49 //! - aCenter : First face center coordinates (default (0,0,0))
50 //! - anAxis : Unit vector in axis direction (default (0,0,1))
51 Standard_EXPORT void Init (const Standard_Real aHeight, const Standard_Real aRadius, const gp_XYZ& aCenter, const gp_XYZ& anAxis);
53 //! returns the cylinder height
54 Standard_EXPORT Standard_Real Height() const;
56 //! returns the cylinder radius
57 Standard_EXPORT Standard_Real Radius() const;
59 //! returns the first face center coordinates.
60 Standard_EXPORT gp_Pnt FaceCenter() const;
62 //! returns the first face center after applying TransformationMatrix
63 Standard_EXPORT gp_Pnt TransformedFaceCenter() const;
65 //! returns the vector in axis direction
66 Standard_EXPORT gp_Dir Axis() const;
68 //! returns the vector in axis direction after applying
69 //! TransformationMatrix
70 Standard_EXPORT gp_Dir TransformedAxis() const;
75 DEFINE_STANDARD_RTTIEXT(IGESSolid_Cylinder,IGESData_IGESEntity)
85 Standard_Real theHeight;
86 Standard_Real theRadius;
99 #endif // _IGESSolid_Cylinder_HeaderFile