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 _IGESDimen_RadiusDimension_HeaderFile
18 #define _IGESDimen_RadiusDimension_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_Boolean.hxx>
27 class IGESDimen_GeneralNote;
28 class IGESDimen_LeaderArrow;
34 class IGESDimen_RadiusDimension;
35 DEFINE_STANDARD_HANDLE(IGESDimen_RadiusDimension, IGESData_IGESEntity)
37 //! Defines IGES Radius Dimension, type <222> Form <0, 1>,
38 //! in package IGESDimen.
39 //! A Radius Dimension Entity consists of a General Note, a
40 //! leader, and an arc center point. A second form of this
41 //! entity accounts for the occasional need to have two
42 //! leader entities referenced.
43 class IGESDimen_RadiusDimension : public IGESData_IGESEntity
49 Standard_EXPORT IGESDimen_RadiusDimension();
51 Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_LeaderArrow)& anArrow, const gp_XY& arcCenter, const Handle(IGESDimen_LeaderArrow)& anotherArrow);
53 //! Allows to change Form Number
54 //! (1 admits null arrow)
55 Standard_EXPORT void InitForm (const Standard_Integer form);
57 //! returns the General Note entity
58 Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
60 //! returns the Leader Arrow entity
61 Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader() const;
63 //! returns the coordinates of the Arc Center
64 Standard_EXPORT gp_Pnt2d Center() const;
66 //! returns the coordinates of the Arc Center after Transformation
67 //! (Z coord taken from ZDepth of Leader Entity)
68 Standard_EXPORT gp_Pnt TransformedCenter() const;
70 //! returns True if form is 1, False if 0
71 Standard_EXPORT Standard_Boolean HasLeader2() const;
73 //! returns Null handle if Form is 0
74 Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader2() const;
79 DEFINE_STANDARD_RTTIEXT(IGESDimen_RadiusDimension,IGESData_IGESEntity)
89 Handle(IGESDimen_GeneralNote) theNote;
90 Handle(IGESDimen_LeaderArrow) theLeaderArrow;
92 Handle(IGESDimen_LeaderArrow) theLeader2;
103 #endif // _IGESDimen_RadiusDimension_HeaderFile