0032961: Coding - get rid of unused headers [IGESAppli to IGESToBRep]
[occt.git] / src / IGESDimen / IGESDimen_Section.hxx
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_Section_HeaderFile
18 #define _IGESDimen_Section_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <TColgp_HArray1OfXY.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 class gp_Pnt;
27
28
29 class IGESDimen_Section;
30 DEFINE_STANDARD_HANDLE(IGESDimen_Section, IGESData_IGESEntity)
31
32 //! defines Section, Type <106> Form <31-38>
33 //! in package IGESDimen
34 //! Contains information to display sectioned sides
35 class IGESDimen_Section : public IGESData_IGESEntity
36 {
37
38 public:
39
40   
41   Standard_EXPORT IGESDimen_Section();
42   
43   //! This method is used to set the fields of the class
44   //! Section
45   //! - dataType   : Interpretation Flag, always = 1
46   //! - aDisp      : Common z displacement
47   //! - dataPoints : Data points
48   Standard_EXPORT void Init (const Standard_Integer dataType, const Standard_Real aDisp, const Handle(TColgp_HArray1OfXY)& dataPoints);
49   
50   //! Changes FormNumber (indicates the Type of the Hatches)
51   //! Error if not in range [31-38]
52   Standard_EXPORT void SetFormNumber (const Standard_Integer form);
53   
54   //! returns Interpretation Flag, always = 1
55   Standard_EXPORT Standard_Integer Datatype() const;
56   
57   //! returns number of Data Points
58   Standard_EXPORT Standard_Integer NbPoints() const;
59   
60   //! returns common Z displacement
61   Standard_EXPORT Standard_Real ZDisplacement() const;
62   
63   //! returns Index'th data point
64   //! raises exception if Index <= 0 or Index > NbPoints()
65   Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const;
66   
67   //! returns Index'th data point after Transformation
68   //! raises exception if Index <= 0 or Index > NbPoints()
69   Standard_EXPORT gp_Pnt TransformedPoint (const Standard_Integer Index) const;
70
71
72
73
74   DEFINE_STANDARD_RTTIEXT(IGESDimen_Section,IGESData_IGESEntity)
75
76 protected:
77
78
79
80
81 private:
82
83
84   Standard_Integer theDatatype;
85   Standard_Real theZDisplacement;
86   Handle(TColgp_HArray1OfXY) theDataPoints;
87
88
89 };
90
91
92
93
94
95
96
97 #endif // _IGESDimen_Section_HeaderFile