0032961: Coding - get rid of unused headers [IGESAppli to IGESToBRep]
[occt.git] / src / IGESDimen / IGESDimen_RadiusDimension.hxx
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 class IGESDimen_GeneralNote;
27 class IGESDimen_LeaderArrow;
28 class gp_Pnt2d;
29 class gp_Pnt;
30
31
32 class IGESDimen_RadiusDimension;
33 DEFINE_STANDARD_HANDLE(IGESDimen_RadiusDimension, IGESData_IGESEntity)
34
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
42 {
43
44 public:
45
46   
47   Standard_EXPORT IGESDimen_RadiusDimension();
48   
49   Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_LeaderArrow)& anArrow, const gp_XY& arcCenter, const Handle(IGESDimen_LeaderArrow)& anotherArrow);
50   
51   //! Allows to change Form Number
52   //! (1 admits null arrow)
53   Standard_EXPORT void InitForm (const Standard_Integer form);
54   
55   //! returns the General Note entity
56   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
57   
58   //! returns the Leader Arrow entity
59   Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader() const;
60   
61   //! returns the coordinates of the Arc Center
62   Standard_EXPORT gp_Pnt2d Center() const;
63   
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;
67   
68   //! returns True if form is 1, False if 0
69   Standard_EXPORT Standard_Boolean HasLeader2() const;
70   
71   //! returns Null handle if Form is 0
72   Standard_EXPORT Handle(IGESDimen_LeaderArrow) Leader2() const;
73
74
75
76
77   DEFINE_STANDARD_RTTIEXT(IGESDimen_RadiusDimension,IGESData_IGESEntity)
78
79 protected:
80
81
82
83
84 private:
85
86
87   Handle(IGESDimen_GeneralNote) theNote;
88   Handle(IGESDimen_LeaderArrow) theLeaderArrow;
89   gp_XY theCenter;
90   Handle(IGESDimen_LeaderArrow) theLeader2;
91
92
93 };
94
95
96
97
98
99
100
101 #endif // _IGESDimen_RadiusDimension_HeaderFile