Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1998-06-23
0002 // Created by: Stephanie HUMEAU
0003 // Copyright (c) 1998-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_GuideTrihedronAC_HeaderFile
0018 #define _GeomFill_GuideTrihedronAC_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <GeomFill_TrihedronWithGuide.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <GeomAbs_Shape.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 class Approx_CurvlinFunc;
0028 class GeomFill_TrihedronLaw;
0029 class gp_Vec;
0030 
0031 
0032 class GeomFill_GuideTrihedronAC;
0033 DEFINE_STANDARD_HANDLE(GeomFill_GuideTrihedronAC, GeomFill_TrihedronWithGuide)
0034 
0035 //! Trihedron in  the  case of a sweeping along a guide  curve.
0036 //! defined by curviline  absciss
0037 class GeomFill_GuideTrihedronAC : public GeomFill_TrihedronWithGuide
0038 {
0039 
0040 public:
0041 
0042   
0043   Standard_EXPORT GeomFill_GuideTrihedronAC(const Handle(Adaptor3d_Curve)& guide);
0044   
0045   //! initialize curve of trihedron law
0046   //! @return Standard_True
0047   Standard_EXPORT virtual Standard_Boolean SetCurve (const Handle(Adaptor3d_Curve)& C) Standard_OVERRIDE;
0048   
0049   Standard_EXPORT virtual Handle(GeomFill_TrihedronLaw) Copy() const Standard_OVERRIDE;
0050   
0051   Standard_EXPORT virtual Handle(Adaptor3d_Curve) Guide() const Standard_OVERRIDE;
0052   
0053   Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& Normal, gp_Vec& BiNormal) Standard_OVERRIDE;
0054   
0055   Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& BiNormal, gp_Vec& DBiNormal) Standard_OVERRIDE;
0056   
0057   Standard_EXPORT virtual Standard_Boolean D2 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& D2Tangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& D2Normal, gp_Vec& BiNormal, gp_Vec& DBiNormal, gp_Vec& D2BiNormal) Standard_OVERRIDE;
0058   
0059   //! Returns  the number  of  intervals for  continuity
0060   //! <S>.
0061   //! May be one if Continuity(me) >= <S>
0062   Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
0063   
0064   //! Stores in <T> the  parameters bounding the intervals
0065   //! of continuity <S>.
0066   //!
0067   //! The array must provide  enough room to  accommodate
0068   //! for the parameters. i.e. T.Length() > NbIntervals()
0069   Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
0070   
0071   //! Sets the bounds of the parametric interval on
0072   //! the function
0073   //! This determines the derivatives in these values if the
0074   //! function is not Cn.
0075   Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE;
0076   
0077   //! Get average value of M(t) and V(t) it is usfull to
0078   //! make fast approximation of rational  surfaces.
0079   Standard_EXPORT virtual void GetAverageLaw (gp_Vec& ATangent, gp_Vec& ANormal, gp_Vec& ABiNormal) Standard_OVERRIDE;
0080   
0081   //! Say if the law is Constant
0082   Standard_EXPORT virtual Standard_Boolean IsConstant() const Standard_OVERRIDE;
0083   
0084   //! Say if the law is defined, only by the 3d Geometry of
0085   //! the set Curve
0086   //! Return False by Default.
0087   Standard_EXPORT virtual Standard_Boolean IsOnlyBy3dCurve() const Standard_OVERRIDE;
0088   
0089   Standard_EXPORT virtual void Origine (const Standard_Real OrACR1, const Standard_Real OrACR2) Standard_OVERRIDE;
0090 
0091 
0092 
0093 
0094   DEFINE_STANDARD_RTTIEXT(GeomFill_GuideTrihedronAC,GeomFill_TrihedronWithGuide)
0095 
0096 protected:
0097 
0098 
0099 
0100 
0101 private:
0102 
0103 
0104   Handle(Approx_CurvlinFunc) myGuideAC;
0105   Standard_Real Lguide;
0106   Handle(Approx_CurvlinFunc) myCurveAC;
0107   Standard_Real L;
0108   Handle(Adaptor3d_Curve) myCurve;
0109   Standard_Real UTol;
0110   Standard_Real STol;
0111   Standard_Real Orig1;
0112   Standard_Real Orig2;
0113 
0114 
0115 };
0116 
0117 
0118 
0119 
0120 
0121 
0122 
0123 #endif // _GeomFill_GuideTrihedronAC_HeaderFile