Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1996-04-09
0002 // Created by: Joelle CHAUVET
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 _AdvApp2Var_Iso_HeaderFile
0018 #define _AdvApp2Var_Iso_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomAbs_IsoType.hxx>
0025 #include <Standard_Real.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Standard_Boolean.hxx>
0028 #include <TColStd_HArray1OfReal.hxx>
0029 #include <TColStd_HArray2OfReal.hxx>
0030 #include <AdvApp2Var_EvaluatorFunc2Var.hxx>
0031 class AdvApp2Var_Context;
0032 class AdvApp2Var_Node;
0033 
0034 //! used to store constraints on a line U = Ui or V = Vj
0035 class AdvApp2Var_Iso : public Standard_Transient
0036 {
0037   DEFINE_STANDARD_RTTIEXT(AdvApp2Var_Iso, Standard_Transient)
0038 public:
0039 
0040   Standard_EXPORT AdvApp2Var_Iso();
0041   
0042   Standard_EXPORT AdvApp2Var_Iso(const GeomAbs_IsoType type, const Standard_Integer iu, const Standard_Integer iv);
0043   
0044   Standard_EXPORT AdvApp2Var_Iso(const GeomAbs_IsoType type, const Standard_Real cte, const Standard_Real Ufirst, const Standard_Real Ulast, const Standard_Real Vfirst, const Standard_Real Vlast, const Standard_Integer pos, const Standard_Integer iu, const Standard_Integer iv);
0045   
0046   Standard_EXPORT Standard_Boolean IsApproximated() const;
0047   
0048   Standard_EXPORT Standard_Boolean HasResult() const;
0049   
0050   Standard_EXPORT void MakeApprox (const AdvApp2Var_Context& Conditions, const Standard_Real a, const Standard_Real b, const Standard_Real c, const Standard_Real d, const AdvApp2Var_EvaluatorFunc2Var& func, AdvApp2Var_Node& NodeBegin, AdvApp2Var_Node& NodeEnd);
0051   
0052   Standard_EXPORT void ChangeDomain (const Standard_Real a, const Standard_Real b);
0053   
0054   Standard_EXPORT void ChangeDomain (const Standard_Real a, const Standard_Real b, const Standard_Real c, const Standard_Real d);
0055   
0056   Standard_EXPORT void SetConstante (const Standard_Real newcte);
0057   
0058   Standard_EXPORT void SetPosition (const Standard_Integer newpos);
0059   
0060   Standard_EXPORT void ResetApprox();
0061   
0062   Standard_EXPORT void OverwriteApprox();
0063   
0064   Standard_EXPORT GeomAbs_IsoType Type() const;
0065   
0066   Standard_EXPORT Standard_Real Constante() const;
0067   
0068   Standard_EXPORT Standard_Real T0() const;
0069   
0070   Standard_EXPORT Standard_Real T1() const;
0071   
0072   Standard_EXPORT Standard_Real U0() const;
0073   
0074   Standard_EXPORT Standard_Real U1() const;
0075   
0076   Standard_EXPORT Standard_Real V0() const;
0077   
0078   Standard_EXPORT Standard_Real V1() const;
0079   
0080   Standard_EXPORT Standard_Integer UOrder() const;
0081   
0082   Standard_EXPORT Standard_Integer VOrder() const;
0083   
0084   Standard_EXPORT Standard_Integer Position() const;
0085   
0086   Standard_EXPORT Standard_Integer NbCoeff() const;
0087   
0088   Standard_EXPORT const Handle(TColStd_HArray1OfReal)& Polynom() const;
0089   
0090   Standard_EXPORT Handle(TColStd_HArray1OfReal) SomTab() const;
0091   
0092   Standard_EXPORT Handle(TColStd_HArray1OfReal) DifTab() const;
0093   
0094   Standard_EXPORT Handle(TColStd_HArray2OfReal) MaxErrors() const;
0095   
0096   Standard_EXPORT Handle(TColStd_HArray2OfReal) MoyErrors() const;
0097 
0098 private:
0099 
0100   AdvApp2Var_Iso(const AdvApp2Var_Iso& Other);
0101   AdvApp2Var_Iso& operator= (const AdvApp2Var_Iso& theOther);
0102 
0103 private:
0104 
0105   GeomAbs_IsoType myType;
0106   Standard_Real myConstPar;
0107   Standard_Real myU0;
0108   Standard_Real myU1;
0109   Standard_Real myV0;
0110   Standard_Real myV1;
0111   Standard_Integer myPosition;
0112   Standard_Integer myExtremOrder;
0113   Standard_Integer myDerivOrder;
0114   Standard_Integer myNbCoeff;
0115   Standard_Boolean myApprIsDone;
0116   Standard_Boolean myHasResult;
0117   Handle(TColStd_HArray1OfReal) myEquation;
0118   Handle(TColStd_HArray2OfReal) myMaxErrors;
0119   Handle(TColStd_HArray2OfReal) myMoyErrors;
0120   Handle(TColStd_HArray1OfReal) mySomTab;
0121   Handle(TColStd_HArray1OfReal) myDifTab;
0122 
0123 };
0124 
0125 #endif // _AdvApp2Var_Iso_HeaderFile