42cf5bc1 |
1 | // Created on: 1993-01-13 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU ) |
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 _IGESDimen_WitnessLine_HeaderFile |
18 | #define _IGESDimen_WitnessLine_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <Standard_Real.hxx> |
25 | #include <TColgp_HArray1OfXY.hxx> |
26 | #include <IGESData_IGESEntity.hxx> |
27 | class Standard_OutOfRange; |
28 | class gp_Pnt; |
29 | |
30 | |
31 | class IGESDimen_WitnessLine; |
32 | DEFINE_STANDARD_HANDLE(IGESDimen_WitnessLine, IGESData_IGESEntity) |
33 | |
34 | //! defines WitnessLine, Type <106> Form <40> |
35 | //! in package IGESDimen |
36 | //! Contains one or more straight line segments associated |
37 | //! with drafting entities of various types |
38 | class IGESDimen_WitnessLine : public IGESData_IGESEntity |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | Standard_EXPORT IGESDimen_WitnessLine(); |
45 | |
46 | //! This method is used to set the fields of the class |
47 | //! WitnessLine |
48 | //! - dataType : Interpretation Flag, always = 1 |
49 | //! - aDispl : Common z displacement |
50 | //! - dataPoints : Data points |
51 | Standard_EXPORT void Init (const Standard_Integer dataType, const Standard_Real aDisp, const Handle(TColgp_HArray1OfXY)& dataPoints); |
52 | |
53 | //! returns Interpretation Flag, always = 1 |
54 | Standard_EXPORT Standard_Integer Datatype() const; |
55 | |
56 | //! returns number of Data Points |
57 | Standard_EXPORT Standard_Integer NbPoints() const; |
58 | |
59 | //! returns common Z displacement |
60 | Standard_EXPORT Standard_Real ZDisplacement() const; |
61 | |
62 | //! returns Index'th. data point |
63 | //! raises exception if Index <= 0 or Index > NbPoints |
64 | Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const; |
65 | |
66 | //! returns data point after Transformation. |
67 | //! raises exception if Index <= 0 or Index > NbPoints |
68 | Standard_EXPORT gp_Pnt TransformedPoint (const Standard_Integer Index) const; |
69 | |
70 | |
71 | |
72 | |
92efcf78 |
73 | DEFINE_STANDARD_RTTIEXT(IGESDimen_WitnessLine,IGESData_IGESEntity) |
42cf5bc1 |
74 | |
75 | protected: |
76 | |
77 | |
78 | |
79 | |
80 | private: |
81 | |
82 | |
83 | Standard_Integer theDatatype; |
84 | Standard_Real theZDisplacement; |
85 | Handle(TColgp_HArray1OfXY) theDataPoints; |
86 | |
87 | |
88 | }; |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | #endif // _IGESDimen_WitnessLine_HeaderFile |