0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- prepar...
[occt.git] / src / IGESGeom / IGESGeom_BoundedSurface.hxx
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_BoundedSurface_HeaderFile
18 #define _IGESGeom_BoundedSurface_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <IGESGeom_HArray1OfBoundary.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 class IGESData_IGESEntity;
27 class Standard_OutOfRange;
28 class IGESGeom_Boundary;
29
30
31 class IGESGeom_BoundedSurface;
32 DEFINE_STANDARD_HANDLE(IGESGeom_BoundedSurface, IGESData_IGESEntity)
33
34 //! defines BoundedSurface, Type <143> Form <0>
35 //! in package IGESGeom
36 //! A bounded surface is used to communicate trimmed
37 //! surfaces. The surface and trimming curves are assumed
38 //! to be represented parametrically.
39 class IGESGeom_BoundedSurface : public IGESData_IGESEntity
40 {
41
42 public:
43
44   
45   Standard_EXPORT IGESGeom_BoundedSurface();
46   
47   //! This method is used to set the fields of the class
48   //! BoundedSurface
49   //! - aType     : Type of bounded surface representation
50   //! - aSurface  : Surface entity to be bounded
51   //! - allBounds : Array of boundary entities
52   Standard_EXPORT void Init (const Standard_Integer aType, const Handle(IGESData_IGESEntity)& aSurface, const Handle(IGESGeom_HArray1OfBoundary)& allBounds);
53   
54   //! returns the type of Bounded surface representation
55   //! 0 = The boundary entities may only reference model space curves
56   //! 1 = The boundary entities may reference both model space curves
57   //! and associated parameter space curve representations
58   Standard_EXPORT Standard_Integer RepresentationType() const;
59   
60   //! returns the bounded surface
61   Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
62   
63   //! returns the number of boundaries
64   Standard_EXPORT Standard_Integer NbBoundaries() const;
65   
66   //! returns boundary entity
67   //! raises exception if Index <= 0 or Index > NbBoundaries()
68   Standard_EXPORT Handle(IGESGeom_Boundary) Boundary (const Standard_Integer Index) const;
69
70
71
72
73   DEFINE_STANDARD_RTTIEXT(IGESGeom_BoundedSurface,IGESData_IGESEntity)
74
75 protected:
76
77
78
79
80 private:
81
82
83   Standard_Integer theType;
84   Handle(IGESData_IGESEntity) theSurface;
85   Handle(IGESGeom_HArray1OfBoundary) theBoundaries;
86
87
88 };
89
90
91
92
93
94
95
96 #endif // _IGESGeom_BoundedSurface_HeaderFile