1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( Kiran )
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 _IGESGeom_CircularArc_HeaderFile
18 #define _IGESGeom_CircularArc_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Real.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 #include <Standard_Boolean.hxx>
33 class IGESGeom_CircularArc;
34 DEFINE_STANDARD_HANDLE(IGESGeom_CircularArc, IGESData_IGESEntity)
36 //! defines IGESCircularArc, Type <100> Form <0>
37 //! in package IGESGeom
38 //! A circular arc is a connected portion of a parent circle
39 //! which consists of more than one point. The definition space
40 //! coordinate system is always chosen so that the circular arc
41 //! remains in a plane either coincident with or parallel to
43 class IGESGeom_CircularArc : public IGESData_IGESEntity
49 Standard_EXPORT IGESGeom_CircularArc();
51 //! This method is used to set the fields of the class
53 //! - aZT : Shift above the Z plane
54 //! - aCenter : Center of the circle of which the arc forms a part
55 //! - aStart : Starting point of the circular arc
56 //! - anEnd : Ending point of the circular arc
57 Standard_EXPORT void Init (const Standard_Real aZT, const gp_XY& aCenter, const gp_XY& aStart, const gp_XY& anEnd);
59 //! returns the center of the circle of which arc forms a part
60 Standard_EXPORT gp_Pnt2d Center() const;
62 //! returns the center of the circle of which arc forms a part
63 //! after applying Transf. Matrix
64 Standard_EXPORT gp_Pnt TransformedCenter() const;
66 //! returns the start point of the arc
67 Standard_EXPORT gp_Pnt2d StartPoint() const;
69 //! returns the start point of the arc after applying Transf. Matrix
70 Standard_EXPORT gp_Pnt TransformedStartPoint() const;
72 //! returns the parallel displacement of the plane containing the
73 //! arc from the XT, YT plane
74 Standard_EXPORT Standard_Real ZPlane() const;
76 //! returns the end point of the arc
77 Standard_EXPORT gp_Pnt2d EndPoint() const;
79 //! returns the end point of the arc after applying Transf. Matrix
80 Standard_EXPORT gp_Pnt TransformedEndPoint() const;
82 //! returns the radius of the circle of which arc forms a part
83 Standard_EXPORT Standard_Real Radius() const;
85 //! returns the angle subtended by the arc at the center in radians
86 Standard_EXPORT Standard_Real Angle() const;
88 //! Z-Axis of circle (i.e. [0,0,1])
89 Standard_EXPORT gp_Dir Axis() const;
91 //! Z-Axis after applying Trans. Matrix
92 Standard_EXPORT gp_Dir TransformedAxis() const;
94 //! True if StartPoint = EndPoint
95 Standard_EXPORT Standard_Boolean IsClosed() const;
100 DEFINE_STANDARD_RTTIEXT(IGESGeom_CircularArc,IGESData_IGESEntity)
124 #endif // _IGESGeom_CircularArc_HeaderFile