0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / IGESSolid / IGESSolid_Cylinder.hxx
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
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 _IGESSolid_Cylinder_HeaderFile
18 #define _IGESSolid_Cylinder_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Real.hxx>
24 #include <gp_XYZ.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 class gp_XYZ;
27 class gp_Pnt;
28 class gp_Dir;
29
30
31 class IGESSolid_Cylinder;
32 DEFINE_STANDARD_HANDLE(IGESSolid_Cylinder, IGESData_IGESEntity)
33
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
38 {
39
40 public:
41
42   
43   Standard_EXPORT IGESSolid_Cylinder();
44   
45   //! This method is used to set the fields of the class
46   //! Cylinder
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);
52   
53   //! returns the cylinder height
54   Standard_EXPORT Standard_Real Height() const;
55   
56   //! returns the cylinder radius
57   Standard_EXPORT Standard_Real Radius() const;
58   
59   //! returns the first face center coordinates.
60   Standard_EXPORT gp_Pnt FaceCenter() const;
61   
62   //! returns the first face center after applying TransformationMatrix
63   Standard_EXPORT gp_Pnt TransformedFaceCenter() const;
64   
65   //! returns the vector in axis direction
66   Standard_EXPORT gp_Dir Axis() const;
67   
68   //! returns the vector in axis direction after applying
69   //! TransformationMatrix
70   Standard_EXPORT gp_Dir TransformedAxis() const;
71
72
73
74
75   DEFINE_STANDARD_RTTIEXT(IGESSolid_Cylinder,IGESData_IGESEntity)
76
77 protected:
78
79
80
81
82 private:
83
84
85   Standard_Real theHeight;
86   Standard_Real theRadius;
87   gp_XYZ theFaceCenter;
88   gp_XYZ theAxis;
89
90
91 };
92
93
94
95
96
97
98
99 #endif // _IGESSolid_Cylinder_HeaderFile