0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- prepar...
[occt.git] / src / IGESGeom / IGESGeom_Line.hxx
1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( Kiran )
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 _IGESGeom_Line_HeaderFile
18 #define _IGESGeom_Line_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <gp_XYZ.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 #include <Standard_Integer.hxx>
26 class gp_XYZ;
27 class gp_Pnt;
28
29
30 class IGESGeom_Line;
31 DEFINE_STANDARD_HANDLE(IGESGeom_Line, IGESData_IGESEntity)
32
33 //! defines IGESLine, Type <110> Form <0>
34 //! in package IGESGeom
35 //! A line is a bounded, connected portion of a parent straight
36 //! line which consists of more than one point. A line is
37 //! defined by its end points.
38 //!
39 //! From IGES-5.3, two other Forms are admitted (same params) :
40 //! 0 remains for standard limited line (the default)
41 //! 1 for semi-infinite line (End is just a passing point)
42 //! 2 for full infinite Line (both Start and End are abitrary)
43 class IGESGeom_Line : public IGESData_IGESEntity
44 {
45
46 public:
47
48   
49   Standard_EXPORT IGESGeom_Line();
50   
51   //! This method is used to set the fields of the class Line
52   //! - aStart : Start point of the line
53   //! - anEnd  : End point of the line
54   Standard_EXPORT void Init (const gp_XYZ& aStart, const gp_XYZ& anEnd);
55   
56   //! Returns the Infinite status i.e. the Form Number : 0 1 2
57   Standard_EXPORT Standard_Integer Infinite() const;
58   
59   //! Sets the Infinite status
60   //! Does nothing if <status> is not 0 1 or 2
61   Standard_EXPORT void SetInfinite (const Standard_Integer status);
62   
63   //! returns the start point of the line
64   Standard_EXPORT gp_Pnt StartPoint() const;
65   
66   //! returns the start point of the line after applying Transf. Matrix
67   Standard_EXPORT gp_Pnt TransformedStartPoint() const;
68   
69   //! returns the end point of the line
70   Standard_EXPORT gp_Pnt EndPoint() const;
71   
72   //! returns the end point of the line after applying Transf. Matrix
73   Standard_EXPORT gp_Pnt TransformedEndPoint() const;
74
75
76
77
78   DEFINE_STANDARD_RTTIEXT(IGESGeom_Line,IGESData_IGESEntity)
79
80 protected:
81
82
83
84
85 private:
86
87
88   gp_XYZ theStart;
89   gp_XYZ theEnd;
90
91
92 };
93
94
95
96
97
98
99
100 #endif // _IGESGeom_Line_HeaderFile