Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:02

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen ( Kiran )
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESGeom_TrimmedSurface_HeaderFile
0018 #define _IGESGeom_TrimmedSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <IGESGeom_HArray1OfCurveOnSurface.hxx>
0024 #include <IGESData_IGESEntity.hxx>
0025 class IGESGeom_CurveOnSurface;
0026 
0027 
0028 class IGESGeom_TrimmedSurface;
0029 DEFINE_STANDARD_HANDLE(IGESGeom_TrimmedSurface, IGESData_IGESEntity)
0030 
0031 //! defines IGESTrimmedSurface, Type <144> Form <0>
0032 //! in package IGESGeom
0033 //! A simple closed curve  in Euclidean plane  divides the
0034 //! plane in to two disjoint, open connected components; one
0035 //! bounded, one unbounded. The bounded one is called the
0036 //! interior region to the curve. Unbounded component is called
0037 //! exterior region to the curve. The domain of the trimmed
0038 //! surface is defined as the interior of the outer boundaries
0039 //! and exterior of the inner boundaries and includes the
0040 //! boundary curves.
0041 class IGESGeom_TrimmedSurface : public IGESData_IGESEntity
0042 {
0043 
0044 public:
0045 
0046   
0047   Standard_EXPORT IGESGeom_TrimmedSurface();
0048   
0049   //! This method is used to set the fields of the class
0050   //! TrimmedSurface
0051   //! - aSurface  : Surface to be trimmed
0052   //! - aFlag     : Outer boundary type
0053   //! False = The outer boundary is the boundary of
0054   //! rectangle D which is the domain of the
0055   //! surface to be trimmed
0056   //! True  = otherwise
0057   //! - anOuter   : Closed curve which constitutes outer boundary
0058   //! - allInners : Array of closed curves which constitute the
0059   //! inner boundary
0060   Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aSurface, const Standard_Integer aFlag, const Handle(IGESGeom_CurveOnSurface)& anOuter, const Handle(IGESGeom_HArray1OfCurveOnSurface)& allInners);
0061   
0062   //! returns the surface to be trimmed
0063   Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
0064   
0065   //! returns True if outer contour exists
0066   Standard_EXPORT Standard_Boolean HasOuterContour() const;
0067   
0068   //! returns the outer contour of the trimmed surface
0069   Standard_EXPORT Handle(IGESGeom_CurveOnSurface) OuterContour() const;
0070   
0071   //! returns the outer contour type of the trimmed surface
0072   //! 0  : The outer boundary is the boundary of D
0073   //! 1  : otherwise
0074   Standard_EXPORT Standard_Integer OuterBoundaryType() const;
0075   
0076   //! returns the number of inner boundaries
0077   Standard_EXPORT Standard_Integer NbInnerContours() const;
0078   
0079   //! returns the Index'th inner contour
0080   //! raises exception if Index <= 0 or Index > NbInnerContours()
0081   Standard_EXPORT Handle(IGESGeom_CurveOnSurface) InnerContour (const Standard_Integer Index) const;
0082 
0083 
0084 
0085 
0086   DEFINE_STANDARD_RTTIEXT(IGESGeom_TrimmedSurface,IGESData_IGESEntity)
0087 
0088 protected:
0089 
0090 
0091 
0092 
0093 private:
0094 
0095 
0096   Handle(IGESData_IGESEntity) theSurface;
0097   Standard_Integer theFlag;
0098   Handle(IGESGeom_CurveOnSurface) theOuterCurve;
0099   Handle(IGESGeom_HArray1OfCurveOnSurface) theInnerCurves;
0100 
0101 
0102 };
0103 
0104 
0105 
0106 
0107 
0108 
0109 
0110 #endif // _IGESGeom_TrimmedSurface_HeaderFile