Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:40

0001 // Created on: 1994-02-18
0002 // Created by: Bruno DUMORTIER
0003 // Copyright (c) 1994-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 _GeomFill_SectionGenerator_HeaderFile
0018 #define _GeomFill_SectionGenerator_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TColStd_HArray1OfReal.hxx>
0025 #include <GeomFill_Profiler.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 #include <TColStd_Array1OfInteger.hxx>
0029 #include <TColgp_Array1OfPnt.hxx>
0030 #include <TColgp_Array1OfVec.hxx>
0031 #include <TColgp_Array1OfPnt2d.hxx>
0032 #include <TColgp_Array1OfVec2d.hxx>
0033 
0034 
0035 //! gives  the  functions  needed  for  instantiation from
0036 //! AppSurf in AppBlend.   Allow  to  evaluate  a  surface
0037 //! passing by all the curves if the Profiler.
0038 class GeomFill_SectionGenerator  : public GeomFill_Profiler
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   Standard_EXPORT GeomFill_SectionGenerator();
0046   
0047   Standard_EXPORT void SetParam (const Handle(TColStd_HArray1OfReal)& Params);
0048   
0049   Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) const;
0050   
0051   Standard_EXPORT void Knots (TColStd_Array1OfReal& TKnots) const;
0052   
0053   Standard_EXPORT void Mults (TColStd_Array1OfInteger& TMults) const;
0054   
0055   //! Used for the first and last section
0056   //! The method returns Standard_True if the derivatives
0057   //! are computed, otherwise it returns Standard_False.
0058   Standard_EXPORT Standard_Boolean Section (const Standard_Integer P, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfPnt2d& Poles2d, TColgp_Array1OfVec2d& DPoles2d, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths) const;
0059   
0060   Standard_EXPORT void Section (const Standard_Integer P, TColgp_Array1OfPnt& Poles, TColgp_Array1OfPnt2d& Poles2d, TColStd_Array1OfReal& Weigths) const;
0061   
0062   //! Returns  the parameter of   Section<P>, to impose  it for the
0063   //! approximation.
0064   Standard_EXPORT Standard_Real Parameter (const Standard_Integer P) const;
0065 
0066 
0067 
0068 
0069 protected:
0070 
0071 
0072 
0073   Handle(TColStd_HArray1OfReal) myParams;
0074 
0075 
0076 private:
0077 
0078 
0079 
0080 
0081 
0082 };
0083 
0084 
0085 
0086 
0087 
0088 
0089 
0090 #endif // _GeomFill_SectionGenerator_HeaderFile