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 class IGESDimen_GeneralNote;
27 class IGESDimen_LeaderArrow;
32 class IGESDimen_RadiusDimension;
33 DEFINE_STANDARD_HANDLE(IGESDimen_RadiusDimension, IGESData_IGESEntity)
35 //! Defines IGES Radius Dimension, type <222> Form <0, 1>,
36 //! in package IGESDimen.
37 //! A Radius Dimension Entity consists of a General Note, a
38 //! leader, and an arc center point. A second form of this
39 //! entity accounts for the occasional need to have two
40 //! leader entities referenced.
41 class IGESDimen_RadiusDimension : public IGESData_IGESEntity
47 Standard_EXPORT IGESDimen_RadiusDimension();
49 Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_LeaderArrow)& anArrow, const gp_XY& arcCenter, const Handle(IGESDimen_LeaderArrow)& anotherArrow);
51 //! Allows to change Form Number
52 //! (1 admits null arrow)
53 Standard_EXPORT void InitForm (const Standard_Integer form);
55 //! returns the General Note entity
56 Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
58 //! returns the Leader Arrow entity
59 Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader() const;
61 //! returns the coordinates of the Arc Center
62 Standard_EXPORT gp_Pnt2d Center() const;
64 //! returns the coordinates of the Arc Center after Transformation
65 //! (Z coord taken from ZDepth of Leader Entity)
66 Standard_EXPORT gp_Pnt TransformedCenter() const;
68 //! returns True if form is 1, False if 0
69 Standard_EXPORT Standard_Boolean HasLeader2() const;
71 //! returns Null handle if Form is 0
72 Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader2() const;
77 DEFINE_STANDARD_RTTIEXT(IGESDimen_RadiusDimension,IGESData_IGESEntity)
87 Handle(IGESDimen_GeneralNote) theNote;
88 Handle(IGESDimen_LeaderArrow) theLeaderArrow;
90 Handle(IGESDimen_LeaderArrow) theLeader2;
101 #endif // _IGESDimen_RadiusDimension_HeaderFile