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_Ellipsoid_HeaderFile
18 #define _IGESSolid_Ellipsoid_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 #include <Standard_Real.hxx>
30 class IGESSolid_Ellipsoid;
31 DEFINE_STANDARD_HANDLE(IGESSolid_Ellipsoid, IGESData_IGESEntity)
33 //! defines Ellipsoid, Type <168> Form Number <0>
34 //! in package IGESSolid
35 //! The ellipsoid is a solid bounded by the surface defined
38 //! ----- + ----- + ----- = 1
40 class IGESSolid_Ellipsoid : public IGESData_IGESEntity
46 Standard_EXPORT IGESSolid_Ellipsoid();
48 //! This method is used to set the fields of the class
50 //! - aSize : Lengths in the local X,Y,Z directions
51 //! - aCenter : Center point of ellipsoid (default (0,0,0))
52 //! - anXAxis : Unit vector defining local X-axis
54 //! - anZAxis : Unit vector defining local Z-axis
56 Standard_EXPORT void Init (const gp_XYZ& aSize, const gp_XYZ& aCenter, const gp_XYZ& anXAxis, const gp_XYZ& anZAxis);
59 Standard_EXPORT gp_XYZ Size() const;
61 //! returns the length in the local X-direction
62 Standard_EXPORT Standard_Real XLength() const;
64 //! returns the length in the local Y-direction
65 Standard_EXPORT Standard_Real YLength() const;
67 //! returns the length in the local Z-direction
68 Standard_EXPORT Standard_Real ZLength() const;
70 //! returns the center of the ellipsoid
71 Standard_EXPORT gp_Pnt Center() const;
73 //! returns the center of the ellipsoid after applying
74 //! TransformationMatrix
75 Standard_EXPORT gp_Pnt TransformedCenter() const;
77 //! returns the vector corresponding to the local X-direction
78 Standard_EXPORT gp_Dir XAxis() const;
80 //! returns the vector corresponding to the local X-direction
81 //! after applying TransformationMatrix
82 Standard_EXPORT gp_Dir TransformedXAxis() const;
84 //! returns the vector corresponding to the local Y-direction
85 //! which is got by taking cross product of ZAxis and XAxis
86 Standard_EXPORT gp_Dir YAxis() const;
88 //! returns the vector corresponding to the local Y-direction
89 //! (which is got by taking cross product of ZAxis and XAxis)
90 //! after applying TransformationMatrix
91 Standard_EXPORT gp_Dir TransformedYAxis() const;
93 //! returns the vector corresponding to the local Z-direction
94 Standard_EXPORT gp_Dir ZAxis() const;
96 //! returns the vector corresponding to the local Z-direction
97 //! after applying TransformationMatrix
98 Standard_EXPORT gp_Dir TransformedZAxis() const;
103 DEFINE_STANDARD_RTTIEXT(IGESSolid_Ellipsoid,IGESData_IGESEntity)
127 #endif // _IGESSolid_Ellipsoid_HeaderFile