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
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 _IGESGeom_Line_HeaderFile
18 #define _IGESGeom_Line_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 #include <Standard_Integer.hxx>
31 DEFINE_STANDARD_HANDLE(IGESGeom_Line, IGESData_IGESEntity)
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.
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
49 Standard_EXPORT IGESGeom_Line();
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);
56 //! Returns the Infinite status i.e. the Form Number : 0 1 2
57 Standard_EXPORT Standard_Integer Infinite() const;
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);
63 //! returns the start point of the line
64 Standard_EXPORT gp_Pnt StartPoint() const;
66 //! returns the start point of the line after applying Transf. Matrix
67 Standard_EXPORT gp_Pnt TransformedStartPoint() const;
69 //! returns the end point of the line
70 Standard_EXPORT gp_Pnt EndPoint() const;
72 //! returns the end point of the line after applying Transf. Matrix
73 Standard_EXPORT gp_Pnt TransformedEndPoint() const;
78 DEFINE_STANDARD_RTTIEXT(IGESGeom_Line,IGESData_IGESEntity)
100 #endif // _IGESGeom_Line_HeaderFile