Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1996-08-27
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1996-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 _AppBlend_Approx_HeaderFile
0018 #define _AppBlend_Approx_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <TColgp_Array2OfPnt.hxx>
0026 #include <TColStd_Array2OfReal.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 #include <TColStd_Array1OfInteger.hxx>
0029 #include <TColgp_Array1OfPnt2d.hxx>
0030 
0031 
0032 //! Bspline approximation of a surface.
0033 class AppBlend_Approx 
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   Standard_EXPORT virtual Standard_Boolean IsDone() const = 0;
0041   
0042   Standard_EXPORT virtual void SurfShape (Standard_Integer& UDegree, Standard_Integer& VDegree, Standard_Integer& NbUPoles, Standard_Integer& NbVPoles, Standard_Integer& NbUKnots, Standard_Integer& NbVKnots) const = 0;
0043   
0044   Standard_EXPORT virtual void Surface (TColgp_Array2OfPnt& TPoles, TColStd_Array2OfReal& TWeights, TColStd_Array1OfReal& TUKnots, TColStd_Array1OfReal& TVKnots, TColStd_Array1OfInteger& TUMults, TColStd_Array1OfInteger& TVMults) const = 0;
0045   
0046   Standard_EXPORT virtual Standard_Integer UDegree() const = 0;
0047   
0048   Standard_EXPORT virtual Standard_Integer VDegree() const = 0;
0049   
0050   Standard_EXPORT virtual const TColgp_Array2OfPnt& SurfPoles() const = 0;
0051   
0052   Standard_EXPORT virtual const TColStd_Array2OfReal& SurfWeights() const = 0;
0053   
0054   Standard_EXPORT virtual const TColStd_Array1OfReal& SurfUKnots() const = 0;
0055   
0056   Standard_EXPORT virtual const TColStd_Array1OfReal& SurfVKnots() const = 0;
0057   
0058   Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfUMults() const = 0;
0059   
0060   Standard_EXPORT virtual const TColStd_Array1OfInteger& SurfVMults() const = 0;
0061   
0062   Standard_EXPORT virtual Standard_Integer NbCurves2d() const = 0;
0063   
0064   Standard_EXPORT virtual void Curves2dShape (Standard_Integer& Degree, Standard_Integer& NbPoles, Standard_Integer& NbKnots) const = 0;
0065   
0066   Standard_EXPORT virtual void Curve2d (const Standard_Integer Index, TColgp_Array1OfPnt2d& TPoles, TColStd_Array1OfReal& TKnots, TColStd_Array1OfInteger& TMults) const = 0;
0067   
0068   Standard_EXPORT virtual Standard_Integer Curves2dDegree() const = 0;
0069   
0070   Standard_EXPORT virtual const TColgp_Array1OfPnt2d& Curve2dPoles (const Standard_Integer Index) const = 0;
0071   
0072   Standard_EXPORT virtual const TColStd_Array1OfReal& Curves2dKnots() const = 0;
0073   
0074   Standard_EXPORT virtual const TColStd_Array1OfInteger& Curves2dMults() const = 0;
0075   
0076   Standard_EXPORT virtual void TolReached (Standard_Real& Tol3d, Standard_Real& Tol2d) const = 0;
0077   
0078   Standard_EXPORT virtual Standard_Real TolCurveOnSurf (const Standard_Integer Index) const = 0;
0079   Standard_EXPORT virtual ~AppBlend_Approx();
0080 
0081 
0082 
0083 
0084 protected:
0085 
0086 
0087 
0088 
0089 
0090 private:
0091 
0092 
0093 
0094 
0095 
0096 };
0097 
0098 
0099 
0100 
0101 
0102 
0103 
0104 #endif // _AppBlend_Approx_HeaderFile