1 // Created on: 1993-01-13
2 // Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
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_AngularDimension_HeaderFile
18 #define _IGESDimen_AngularDimension_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 class IGESDimen_GeneralNote;
26 class IGESDimen_WitnessLine;
27 class IGESDimen_LeaderArrow;
31 class IGESDimen_AngularDimension;
32 DEFINE_STANDARD_HANDLE(IGESDimen_AngularDimension, IGESData_IGESEntity)
34 //! defines AngularDimension, Type <202> Form <0>
35 //! in package IGESDimen
36 //! Used to dimension angles
37 class IGESDimen_AngularDimension : public IGESData_IGESEntity
43 Standard_EXPORT IGESDimen_AngularDimension();
45 //! This method is used to set the fields of the class
47 //! - aNote : General Note Entity
48 //! - aLine : First Witness Line Entity or Null
50 //! - anotherLine : Second Witness Line Entity or Null
52 //! - aVertex : Coordinates of vertex point
53 //! - aRadius : Radius of leader arcs
54 //! - aLeader : First Leader Entity
55 //! - anotherLeader : Second Leader Entity
56 Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_WitnessLine)& aLine, const Handle(IGESDimen_WitnessLine)& anotherLine, const gp_XY& aVertex, const Standard_Real aRadius, const Handle(IGESDimen_LeaderArrow)& aLeader, const Handle(IGESDimen_LeaderArrow)& anotherLeader);
58 //! returns the General Note Entity of the Dimension.
59 Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
61 //! returns False if theFirstWitnessLine is Null Handle.
62 Standard_EXPORT Standard_Boolean HasFirstWitnessLine() const;
64 //! returns the First Witness Line Entity or Null Handle.
65 Standard_EXPORT Handle(IGESDimen_WitnessLine) FirstWitnessLine() const;
67 //! returns False if theSecondWitnessLine is Null Handle.
68 Standard_EXPORT Standard_Boolean HasSecondWitnessLine() const;
70 //! returns the Second Witness Line Entity or Null Handle.
71 Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
73 //! returns the coordinates of the Vertex point as Pnt2d from gp.
74 Standard_EXPORT gp_Pnt2d Vertex() const;
76 //! returns the coordinates of the Vertex point as Pnt2d from gp
77 //! after Transformation. (Z = 0.0 for Transformation)
78 Standard_EXPORT gp_Pnt2d TransformedVertex() const;
80 //! returns the Radius of the Leader arcs.
81 Standard_EXPORT Standard_Real Radius() const;
83 //! returns the First Leader Entity.
84 Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
86 //! returns the Second Leader Entity.
87 Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
92 DEFINE_STANDARD_RTTIEXT(IGESDimen_AngularDimension,IGESData_IGESEntity)
102 Handle(IGESDimen_GeneralNote) theNote;
103 Handle(IGESDimen_WitnessLine) theFirstWitnessLine;
104 Handle(IGESDimen_WitnessLine) theSecondWitnessLine;
106 Standard_Real theRadius;
107 Handle(IGESDimen_LeaderArrow) theFirstLeader;
108 Handle(IGESDimen_LeaderArrow) theSecondLeader;
119 #endif // _IGESDimen_AngularDimension_HeaderFile