Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1994-03-09
0002 // Created by: Isabelle GRIGNON
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 _ChFiDS_Stripe_HeaderFile
0018 #define _ChFiDS_Stripe_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <ChFiDS_HData.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <TopAbs_Orientation.hxx>
0026 #include <Standard_Transient.hxx>
0027 class ChFiDS_Spine;
0028 class Geom2d_Curve;
0029 
0030 
0031 class ChFiDS_Stripe;
0032 DEFINE_STANDARD_HANDLE(ChFiDS_Stripe, Standard_Transient)
0033 
0034 //! Data characterising a band of fillet.
0035 class ChFiDS_Stripe : public Standard_Transient
0036 {
0037 
0038 public:
0039 
0040   
0041   Standard_EXPORT ChFiDS_Stripe();
0042   
0043   //! Reset everything except Spine.
0044   Standard_EXPORT void Reset();
0045   
0046     const Handle(ChFiDS_HData)& SetOfSurfData() const;
0047   
0048     const Handle(ChFiDS_Spine)& Spine() const;
0049   
0050     TopAbs_Orientation OrientationOnFace1() const;
0051   
0052     TopAbs_Orientation OrientationOnFace2() const;
0053   
0054     Standard_Integer Choix() const;
0055   
0056     Handle(ChFiDS_HData)& ChangeSetOfSurfData();
0057   
0058     Handle(ChFiDS_Spine)& ChangeSpine();
0059   
0060     void OrientationOnFace1 (const TopAbs_Orientation Or1);
0061   
0062     void OrientationOnFace2 (const TopAbs_Orientation Or2);
0063   
0064     void Choix (const Standard_Integer C);
0065   
0066     void FirstParameters (Standard_Real& Pdeb, Standard_Real& Pfin) const;
0067   
0068     void LastParameters (Standard_Real& Pdeb, Standard_Real& Pfin) const;
0069   
0070     void ChangeFirstParameters (const Standard_Real Pdeb, const Standard_Real Pfin);
0071   
0072     void ChangeLastParameters (const Standard_Real Pdeb, const Standard_Real Pfin);
0073   
0074     Standard_Integer FirstCurve() const;
0075   
0076     Standard_Integer LastCurve() const;
0077   
0078     void ChangeFirstCurve (const Standard_Integer Index);
0079   
0080     void ChangeLastCurve (const Standard_Integer Index);
0081   
0082     const Handle(Geom2d_Curve)& FirstPCurve() const;
0083   
0084     const Handle(Geom2d_Curve)& LastPCurve() const;
0085   
0086     Handle(Geom2d_Curve)& ChangeFirstPCurve();
0087   
0088     Handle(Geom2d_Curve)& ChangeLastPCurve();
0089   
0090     TopAbs_Orientation FirstPCurveOrientation() const;
0091   
0092     TopAbs_Orientation LastPCurveOrientation() const;
0093   
0094     void FirstPCurveOrientation (const TopAbs_Orientation O);
0095   
0096     void LastPCurveOrientation (const TopAbs_Orientation O);
0097   
0098     Standard_Integer IndexFirstPointOnS1() const;
0099   
0100     Standard_Integer IndexFirstPointOnS2() const;
0101   
0102     Standard_Integer IndexLastPointOnS1() const;
0103   
0104     Standard_Integer IndexLastPointOnS2() const;
0105   
0106     void ChangeIndexFirstPointOnS1 (const Standard_Integer Index);
0107   
0108     void ChangeIndexFirstPointOnS2 (const Standard_Integer Index);
0109   
0110     void ChangeIndexLastPointOnS1 (const Standard_Integer Index);
0111   
0112     void ChangeIndexLastPointOnS2 (const Standard_Integer Index);
0113   
0114   Standard_EXPORT void Parameters (const Standard_Boolean First, Standard_Real& Pdeb, Standard_Real& Pfin) const;
0115   
0116   Standard_EXPORT void SetParameters (const Standard_Boolean First, const Standard_Real Pdeb, const Standard_Real Pfin);
0117   
0118   Standard_EXPORT Standard_Integer Curve (const Standard_Boolean First) const;
0119   
0120   Standard_EXPORT void SetCurve (const Standard_Integer Index, const Standard_Boolean First);
0121   
0122   Standard_EXPORT const Handle(Geom2d_Curve)& PCurve (const Standard_Boolean First) const;
0123   
0124   Standard_EXPORT Handle(Geom2d_Curve)& ChangePCurve (const Standard_Boolean First);
0125   
0126   Standard_EXPORT TopAbs_Orientation Orientation (const Standard_Integer OnS) const;
0127   
0128   Standard_EXPORT void SetOrientation (const TopAbs_Orientation Or, const Standard_Integer OnS);
0129   
0130   Standard_EXPORT TopAbs_Orientation Orientation (const Standard_Boolean First) const;
0131   
0132   Standard_EXPORT void SetOrientation (const TopAbs_Orientation Or, const Standard_Boolean First);
0133   
0134   Standard_EXPORT Standard_Integer IndexPoint (const Standard_Boolean First, const Standard_Integer OnS) const;
0135   
0136   Standard_EXPORT void SetIndexPoint (const Standard_Integer Index, const Standard_Boolean First, const Standard_Integer OnS);
0137   
0138   Standard_EXPORT Standard_Integer SolidIndex() const;
0139   
0140   Standard_EXPORT void SetSolidIndex (const Standard_Integer Index);
0141   
0142   //! Set nb of SurfData's at end put in DS
0143   Standard_EXPORT void InDS (const Standard_Boolean First, const Standard_Integer Nb = 1);
0144   
0145   //! Returns nb of SurfData's at end being in DS
0146   Standard_EXPORT Standard_Integer IsInDS (const Standard_Boolean First) const;
0147 
0148 
0149 
0150 
0151   DEFINE_STANDARD_RTTIEXT(ChFiDS_Stripe,Standard_Transient)
0152 
0153 protected:
0154 
0155 
0156 
0157 
0158 private:
0159 
0160 
0161   Standard_Real pardeb1;
0162   Standard_Real parfin1;
0163   Standard_Real pardeb2;
0164   Standard_Real parfin2;
0165   Handle(ChFiDS_Spine) mySpine;
0166   Handle(ChFiDS_HData) myHdata;
0167   Handle(Geom2d_Curve) pcrv1;
0168   Handle(Geom2d_Curve) pcrv2;
0169   Standard_Integer myChoix;
0170   Standard_Integer indexOfSolid;
0171   Standard_Integer indexOfcurve1;
0172   Standard_Integer indexOfcurve2;
0173   Standard_Integer indexfirstPOnS1;
0174   Standard_Integer indexlastPOnS1;
0175   Standard_Integer indexfirstPOnS2;
0176   Standard_Integer indexlastPOnS2;
0177   Standard_Integer begfilled;
0178   Standard_Integer endfilled;
0179   TopAbs_Orientation myOr1;
0180   TopAbs_Orientation myOr2;
0181   TopAbs_Orientation orcurv1;
0182   TopAbs_Orientation orcurv2;
0183 
0184 
0185 };
0186 
0187 
0188 #include <ChFiDS_Stripe.lxx>
0189 
0190 
0191 
0192 
0193 
0194 #endif // _ChFiDS_Stripe_HeaderFile