0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / IGESGeom / IGESGeom_TrimmedSurface.hxx
CommitLineData
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_TrimmedSurface_HeaderFile
18#define _IGESGeom_TrimmedSurface_HeaderFile
19
20#include <Standard.hxx>
42cf5bc1 21
22#include <Standard_Integer.hxx>
23#include <IGESGeom_HArray1OfCurveOnSurface.hxx>
24#include <IGESData_IGESEntity.hxx>
42cf5bc1 25class IGESGeom_CurveOnSurface;
42cf5bc1 26
27
28class IGESGeom_TrimmedSurface;
29DEFINE_STANDARD_HANDLE(IGESGeom_TrimmedSurface, IGESData_IGESEntity)
30
31//! defines IGESTrimmedSurface, Type <144> Form <0>
32//! in package IGESGeom
33//! A simple closed curve in Euclidean plane divides the
34//! plane in to two disjoint, open connected components; one
35//! bounded, one unbounded. The bounded one is called the
36//! interior region to the curve. Unbounded component is called
37//! exterior region to the curve. The domain of the trimmed
38//! surface is defined as the interior of the outer boundaries
39//! and exterior of the inner boundaries and includes the
40//! boundary curves.
41class IGESGeom_TrimmedSurface : public IGESData_IGESEntity
42{
43
44public:
45
46
47 Standard_EXPORT IGESGeom_TrimmedSurface();
48
49 //! This method is used to set the fields of the class
50 //! TrimmedSurface
51 //! - aSurface : Surface to be trimmed
52 //! - aFlag : Outer boundary type
53 //! False = The outer boundary is the boundary of
54 //! rectangle D which is the domain of the
55 //! surface to be trimmed
56 //! True = otherwise
57 //! - anOuter : Closed curve which constitutes outer boundary
58 //! - allInners : Array of closed curves which constitute the
59 //! inner boundary
60 Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aSurface, const Standard_Integer aFlag, const Handle(IGESGeom_CurveOnSurface)& anOuter, const Handle(IGESGeom_HArray1OfCurveOnSurface)& allInners);
61
62 //! returns the surface to be trimmed
63 Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
64
65 //! returns True if outer contour exists
66 Standard_EXPORT Standard_Boolean HasOuterContour() const;
67
68 //! returns the outer contour of the trimmed surface
69 Standard_EXPORT Handle(IGESGeom_CurveOnSurface) OuterContour() const;
70
71 //! returns the outer contour type of the trimmed surface
72 //! 0 : The outer boundary is the boundary of D
73 //! 1 : otherwise
74 Standard_EXPORT Standard_Integer OuterBoundaryType() const;
75
76 //! returns the number of inner boundaries
77 Standard_EXPORT Standard_Integer NbInnerContours() const;
78
79 //! returns the Index'th inner contour
80 //! raises exception if Index <= 0 or Index > NbInnerContours()
81 Standard_EXPORT Handle(IGESGeom_CurveOnSurface) InnerContour (const Standard_Integer Index) const;
82
83
84
85
92efcf78 86 DEFINE_STANDARD_RTTIEXT(IGESGeom_TrimmedSurface,IGESData_IGESEntity)
42cf5bc1 87
88protected:
89
90
91
92
93private:
94
95
96 Handle(IGESData_IGESEntity) theSurface;
97 Standard_Integer theFlag;
98 Handle(IGESGeom_CurveOnSurface) theOuterCurve;
99 Handle(IGESGeom_HArray1OfCurveOnSurface) theInnerCurves;
100
101
102};
103
104
105
106
107
108
109
110#endif // _IGESGeom_TrimmedSurface_HeaderFile