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