summaryrefslogtreecommitdiff
path: root/inc/IGESGeom_Line.hxx
blob: 0b046b1cec6059932bdb1dff1f942dcb5b7263c5 (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
// 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 _IGESGeom_Line_HeaderFile
#define _IGESGeom_Line_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESGeom_Line_HeaderFile
#include <Handle_IGESGeom_Line.hxx>
#endif

#ifndef _gp_XYZ_HeaderFile
#include <gp_XYZ.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class gp_XYZ;
class gp_Pnt;


//! defines IGESLine, Type <110> Form <0> <br>
//!          in package IGESGeom <br>
//!          A line is a bounded, connected portion of a parent straight <br>
//!          line which consists of more than one point. A line is <br>
//!          defined by its end points. <br>
//! <br>
//!          From IGES-5.3, two other Forms are admitted (same params) : <br>
//!          0 remains for standard limited line (the default) <br>
//!          1 for semi-infinite line (End is just a passing point) <br>
//!          2 for full infinite Line (both Start and End are abitrary) <br>
class IGESGeom_Line : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESGeom_Line();
  //! This method is used to set the fields of the class Line <br>
//!       - aStart : Start point of the line <br>
//!       - anEnd  : End point of the line <br>
  Standard_EXPORT     void Init(const gp_XYZ& aStart,const gp_XYZ& anEnd) ;
  //! Returns the Infinite status i.e. the Form Number : 0 1 2 <br>
  Standard_EXPORT     Standard_Integer Infinite() const;
  //! Sets the Infinite status <br>
//!           Does nothing if <status> is not 0 1 or 2 <br>
  Standard_EXPORT     void SetInfinite(const Standard_Integer status) ;
  //! returns the start point of the line <br>
  Standard_EXPORT     gp_Pnt StartPoint() const;
  //! returns the start point of the line after applying Transf. Matrix <br>
  Standard_EXPORT     gp_Pnt TransformedStartPoint() const;
  //! returns the end point of the line <br>
  Standard_EXPORT     gp_Pnt EndPoint() const;
  //! returns the end point of the line after applying Transf. Matrix <br>
  Standard_EXPORT     gp_Pnt TransformedEndPoint() const;




  DEFINE_STANDARD_RTTI(IGESGeom_Line)

protected:




private: 


gp_XYZ theStart;
gp_XYZ theEnd;


};





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


#endif