summaryrefslogtreecommitdiff
path: root/inc/IGESDimen_LeaderArrow.hxx
blob: adcb0d4616a2040420c329cc9d12c499360ad1c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IGESDimen_LeaderArrow_HeaderFile
#define _IGESDimen_LeaderArrow_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESDimen_LeaderArrow_HeaderFile
#include <Handle_IGESDimen_LeaderArrow.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _gp_XY_HeaderFile
#include <gp_XY.hxx>
#endif
#ifndef _Handle_TColgp_HArray1OfXY_HeaderFile
#include <Handle_TColgp_HArray1OfXY.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class TColgp_HArray1OfXY;
class Standard_OutOfRange;
class gp_XY;
class gp_Pnt2d;
class gp_Pnt;


//! defines LeaderArrow, Type <214> Form <1-12> <br>
//!          in package IGESDimen <br>
//!          Consists of one or more line segments except when <br>
//!          leader is part of an angular dimension, with links to <br>
//!          presumed text item <br>
class IGESDimen_LeaderArrow : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESDimen_LeaderArrow();
  //! This method is used to set the fields of the class <br>
//!           LeaderArrow <br>
//!       - height      : ArrowHead height <br>
//!       - width       : ArrowHead width <br>
//!       - depth       : Z Depth <br>
//!       - position    : ArrowHead coordinates <br>
//!       - segments    : Segment tail coordinate pairs <br>
  Standard_EXPORT     void Init(const Standard_Real height,const Standard_Real width,const Standard_Real depth,const gp_XY& position,const Handle(TColgp_HArray1OfXY)& segments) ;
  //! Changes FormNumber (indicates the Shape of the Arrow) <br>
//!           Error if not in range [0-12] <br>
  Standard_EXPORT     void SetFormNumber(const Standard_Integer form) ;
  //! returns number of segments <br>
  Standard_EXPORT     Standard_Integer NbSegments() const;
  //! returns ArrowHead height <br>
  Standard_EXPORT     Standard_Real ArrowHeadHeight() const;
  //! returns ArrowHead width <br>
  Standard_EXPORT     Standard_Real ArrowHeadWidth() const;
  //! returns Z depth <br>
  Standard_EXPORT     Standard_Real ZDepth() const;
  //! returns ArrowHead co-ordinates <br>
  Standard_EXPORT     gp_Pnt2d ArrowHead() const;
  //! returns ArrowHead co-ordinates after Transformation <br>
  Standard_EXPORT     gp_Pnt TransformedArrowHead() const;
  //! returns segment tail co-ordinates. <br>
//! raises exception if Index <= 0 or Index > NbSegments <br>
  Standard_EXPORT     gp_Pnt2d SegmentTail(const Standard_Integer Index) const;
  //! returns segment tail co-ordinates after Transformation. <br>
//! raises exception if Index <= 0 or Index > NbSegments <br>
  Standard_EXPORT     gp_Pnt TransformedSegmentTail(const Standard_Integer Index) const;




  DEFINE_STANDARD_RTTI(IGESDimen_LeaderArrow)

protected:




private: 


Standard_Real theArrowHeadHeight;
Standard_Real theArrowHeadWidth;
Standard_Real theZDepth;
gp_XY theArrowHead;
Handle_TColgp_HArray1OfXY theSegmentTails;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif