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_Boundary_HeaderFile |
18 | #define _IGESGeom_Boundary_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <IGESData_HArray1OfIGESEntity.hxx> |
25 | #include <TColStd_HArray1OfInteger.hxx> |
26 | #include <IGESData_IGESEntity.hxx> |
27 | class IGESData_IGESEntity; |
28 | class IGESBasic_HArray1OfHArray1OfIGESEntity; |
29 | class Standard_DimensionMismatch; |
30 | class Standard_OutOfRange; |
31 | |
32 | |
33 | class IGESGeom_Boundary; |
34 | DEFINE_STANDARD_HANDLE(IGESGeom_Boundary, IGESData_IGESEntity) |
35 | |
36 | //! defines IGESBoundary, Type <141> Form <0> |
37 | //! in package IGESGeom |
38 | //! A boundary entity identifies a surface boundary consisting |
39 | //! of a set of curves lying on the surface |
40 | class IGESGeom_Boundary : public IGESData_IGESEntity |
41 | { |
42 | |
43 | public: |
44 | |
45 | |
46 | Standard_EXPORT IGESGeom_Boundary(); |
47 | |
48 | //! This method is used to set the fields of the class |
49 | //! Boundary |
50 | //! - aType : Type of bounded surface representation |
51 | //! - aPreference : Preferred representation of |
52 | //! Trimming Curve |
53 | //! - aSurface : Untrimmed surface to be bounded |
54 | //! - allModelCurves : Model Space Curves |
55 | //! - allSenses : Orientation flags of all Model Space |
56 | //! Curves |
57 | //! - allParameterCurves : Parameter Space Curves |
58 | //! raises exception if allSenses, allModelCurves and |
59 | //! allParameterCurves do not have same dimensions |
60 | Standard_EXPORT void Init (const Standard_Integer aType, const Standard_Integer aPreference, const Handle(IGESData_IGESEntity)& aSurface, const Handle(IGESData_HArray1OfIGESEntity)& allModelCurves, const Handle(TColStd_HArray1OfInteger)& allSenses, const Handle(IGESBasic_HArray1OfHArray1OfIGESEntity)& allParameterCurves); |
61 | |
62 | //! returns type of bounded surface representation |
63 | //! 0 = Boundary entities may only reference model space trimming |
64 | //! curves. Associated surface representation may be parametric |
65 | //! 1 = Boundary entities must reference model space curves and |
66 | //! associated parameter space curve collections. Associated |
67 | //! surface must be a parametric representation |
68 | Standard_EXPORT Standard_Integer BoundaryType() const; |
69 | |
70 | //! returns preferred representation of trimming curves |
71 | //! 0 = Unspecified |
72 | //! 1 = Model space |
73 | //! 2 = Parameter space |
74 | //! 3 = Representations are of equal preference |
75 | Standard_EXPORT Standard_Integer PreferenceType() const; |
76 | |
77 | //! returns the surface to be bounded |
78 | Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const; |
79 | |
80 | //! returns the number of model space curves |
81 | Standard_EXPORT Standard_Integer NbModelSpaceCurves() const; |
82 | |
83 | //! returns Model Space Curve |
84 | //! raises exception if Index <= 0 or Index > NbModelSpaceCurves() |
85 | Standard_EXPORT Handle(IGESData_IGESEntity) ModelSpaceCurve (const Standard_Integer Index) const; |
86 | |
87 | //! returns the sense of a particular model space curve |
88 | //! 1 = model curve direction does not need reversal |
89 | //! 2 = model curve direction needs to be reversed |
90 | //! raises exception if Index <= 0 or Index > NbModelSpaceCurves() |
91 | Standard_EXPORT Standard_Integer Sense (const Standard_Integer Index) const; |
92 | |
93 | //! returns the number of parameter curves associated with one |
94 | //! model space curve referred to by Index |
95 | //! raises exception if Index <= 0 or Index > NbModelSpaceCurves() |
96 | Standard_EXPORT Standard_Integer NbParameterCurves (const Standard_Integer Index) const; |
97 | |
98 | //! returns an array of parameter space curves associated with |
99 | //! a model space curve referred to by the Index |
100 | //! raises exception if Index <= 0 or Index > NbModelSpaceCurves() |
101 | Standard_EXPORT Handle(IGESData_HArray1OfIGESEntity) ParameterCurves (const Standard_Integer Index) const; |
102 | |
103 | //! returns an individual parameter curve |
104 | //! raises exception if Index or Num is out of range |
105 | Standard_EXPORT Handle(IGESData_IGESEntity) ParameterCurve (const Standard_Integer Index, const Standard_Integer Num) const; |
106 | |
107 | |
108 | |
109 | |
92efcf78 |
110 | DEFINE_STANDARD_RTTIEXT(IGESGeom_Boundary,IGESData_IGESEntity) |
42cf5bc1 |
111 | |
112 | protected: |
113 | |
114 | |
115 | |
116 | |
117 | private: |
118 | |
119 | |
120 | Standard_Integer theType; |
121 | Standard_Integer thePreference; |
122 | Handle(IGESData_IGESEntity) theSurface; |
123 | Handle(IGESData_HArray1OfIGESEntity) theModelCurves; |
124 | Handle(TColStd_HArray1OfInteger) theSenses; |
125 | Handle(IGESBasic_HArray1OfHArray1OfIGESEntity) theParameterCurves; |
126 | |
127 | |
128 | }; |
129 | |
130 | |
131 | |
132 | |
133 | |
134 | |
135 | |
136 | #endif // _IGESGeom_Boundary_HeaderFile |