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
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 _IGESDimen_Section_HeaderFile
18 #define _IGESDimen_Section_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Standard_Real.hxx>
25 #include <TColgp_HArray1OfXY.hxx>
26 #include <IGESData_IGESEntity.hxx>
27 class Standard_OutOfRange;
31 class IGESDimen_Section;
32 DEFINE_STANDARD_HANDLE(IGESDimen_Section, IGESData_IGESEntity)
34 //! defines Section, Type <106> Form <31-38>
35 //! in package IGESDimen
36 //! Contains information to display sectioned sides
37 class IGESDimen_Section : public IGESData_IGESEntity
43 Standard_EXPORT IGESDimen_Section();
45 //! This method is used to set the fields of the class
47 //! - dataType : Interpretation Flag, always = 1
48 //! - aDisp : Common z displacement
49 //! - dataPoints : Data points
50 Standard_EXPORT void Init (const Standard_Integer dataType, const Standard_Real aDisp, const Handle(TColgp_HArray1OfXY)& dataPoints);
52 //! Changes FormNumber (indicates the Type of the Hatches)
53 //! Error if not in range [31-38]
54 Standard_EXPORT void SetFormNumber (const Standard_Integer form);
56 //! returns Interpretation Flag, always = 1
57 Standard_EXPORT Standard_Integer Datatype() const;
59 //! returns number of Data Points
60 Standard_EXPORT Standard_Integer NbPoints() const;
62 //! returns common Z displacement
63 Standard_EXPORT Standard_Real ZDisplacement() const;
65 //! returns Index'th data point
66 //! raises exception if Index <= 0 or Index > NbPoints()
67 Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const;
69 //! returns Index'th data point after Transformation
70 //! raises exception if Index <= 0 or Index > NbPoints()
71 Standard_EXPORT gp_Pnt TransformedPoint (const Standard_Integer Index) const;
76 DEFINE_STANDARD_RTTIEXT(IGESDimen_Section,IGESData_IGESEntity)
86 Standard_Integer theDatatype;
87 Standard_Real theZDisplacement;
88 Handle(TColgp_HArray1OfXY) theDataPoints;
99 #endif // _IGESDimen_Section_HeaderFile