42cf5bc1 |
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 _IGESDimen_RadiusDimension_HeaderFile |
18 | #define _IGESDimen_RadiusDimension_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <gp_XY.hxx> |
24 | #include <IGESData_IGESEntity.hxx> |
25 | #include <Standard_Integer.hxx> |
26 | #include <Standard_Boolean.hxx> |
27 | class IGESDimen_GeneralNote; |
28 | class IGESDimen_LeaderArrow; |
29 | class gp_XY; |
30 | class gp_Pnt2d; |
31 | class gp_Pnt; |
32 | |
33 | |
34 | class IGESDimen_RadiusDimension; |
35 | DEFINE_STANDARD_HANDLE(IGESDimen_RadiusDimension, IGESData_IGESEntity) |
36 | |
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 |
44 | { |
45 | |
46 | public: |
47 | |
48 | |
49 | Standard_EXPORT IGESDimen_RadiusDimension(); |
50 | |
51 | Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_LeaderArrow)& anArrow, const gp_XY& arcCenter, const Handle(IGESDimen_LeaderArrow)& anotherArrow); |
52 | |
53 | //! Allows to change Form Number |
54 | //! (1 admits null arrow) |
55 | Standard_EXPORT void InitForm (const Standard_Integer form); |
56 | |
57 | //! returns the General Note entity |
58 | Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const; |
59 | |
60 | //! returns the Leader Arrow entity |
61 | Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader() const; |
62 | |
63 | //! returns the coordinates of the Arc Center |
64 | Standard_EXPORT gp_Pnt2d Center() const; |
65 | |
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; |
69 | |
70 | //! returns True if form is 1, False if 0 |
71 | Standard_EXPORT Standard_Boolean HasLeader2() const; |
72 | |
73 | //! returns Null handle if Form is 0 |
74 | Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader2() const; |
75 | |
76 | |
77 | |
78 | |
92efcf78 |
79 | DEFINE_STANDARD_RTTIEXT(IGESDimen_RadiusDimension,IGESData_IGESEntity) |
42cf5bc1 |
80 | |
81 | protected: |
82 | |
83 | |
84 | |
85 | |
86 | private: |
87 | |
88 | |
89 | Handle(IGESDimen_GeneralNote) theNote; |
90 | Handle(IGESDimen_LeaderArrow) theLeaderArrow; |
91 | gp_XY theCenter; |
92 | Handle(IGESDimen_LeaderArrow) theLeader2; |
93 | |
94 | |
95 | }; |
96 | |
97 | |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | #endif // _IGESDimen_RadiusDimension_HeaderFile |