Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1994-11-17
0002 // Created by: Marie Jose MARTZ
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 _GeomToIGES_GeomSurface_HeaderFile
0018 #define _GeomToIGES_GeomSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomToIGES_GeomEntity.hxx>
0025 class IGESData_IGESEntity;
0026 class Geom_Surface;
0027 class Geom_BoundedSurface;
0028 class Geom_BSplineSurface;
0029 class Geom_BezierSurface;
0030 class Geom_RectangularTrimmedSurface;
0031 class Geom_ElementarySurface;
0032 class Geom_Plane;
0033 class Geom_CylindricalSurface;
0034 class Geom_ConicalSurface;
0035 class Geom_SphericalSurface;
0036 class Geom_ToroidalSurface;
0037 class Geom_SweptSurface;
0038 class Geom_SurfaceOfLinearExtrusion;
0039 class Geom_SurfaceOfRevolution;
0040 class Geom_OffsetSurface;
0041 
0042 
0043 //! This class implements the transfer of the Surface Entity from Geom
0044 //! To IGES. These can be :
0045 //! . BoundedSurface
0046 //! * BSplineSurface
0047 //! * BezierSurface
0048 //! * RectangularTrimmedSurface
0049 //! . ElementarySurface
0050 //! * Plane
0051 //! * CylindricalSurface
0052 //! * ConicalSurface
0053 //! * SphericalSurface
0054 //! * ToroidalSurface
0055 //! . SweptSurface
0056 //! * SurfaceOfLinearExtrusion
0057 //! * SurfaceOfRevolution
0058 //! . OffsetSurface
0059 class GeomToIGES_GeomSurface  : public GeomToIGES_GeomEntity
0060 {
0061 public:
0062 
0063   DEFINE_STANDARD_ALLOC
0064 
0065   
0066   Standard_EXPORT GeomToIGES_GeomSurface();
0067   
0068   //! Creates a tool GeomSurface ready to run and sets its
0069   //! fields as GE's.
0070   Standard_EXPORT GeomToIGES_GeomSurface(const GeomToIGES_GeomEntity& GE);
0071   
0072   //! Transfert  a  GeometryEntity which  answer True  to  the
0073   //! member : BRepToIGES::IsGeomSurface(Geometry).  If this
0074   //! Entity could not be converted, this member returns a NullEntity.
0075   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_Surface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0076   
0077   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BoundedSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0078   
0079   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BSplineSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0080   
0081   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BezierSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0082   
0083   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_RectangularTrimmedSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0084   
0085   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ElementarySurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0086   
0087   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_Plane)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0088   
0089   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_CylindricalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0090   
0091   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ConicalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0092   
0093   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SphericalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0094   
0095   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ToroidalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0096   
0097   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SweptSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0098   
0099   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SurfaceOfLinearExtrusion)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0100   
0101   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SurfaceOfRevolution)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0102   
0103   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_OffsetSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0104   
0105   Standard_EXPORT Handle(IGESData_IGESEntity) TransferPlaneSurface (const Handle(Geom_Plane)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0106   
0107   Standard_EXPORT Handle(IGESData_IGESEntity) TransferCylindricalSurface (const Handle(Geom_CylindricalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0108   
0109   Standard_EXPORT Handle(IGESData_IGESEntity) TransferConicalSurface (const Handle(Geom_ConicalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0110   
0111   Standard_EXPORT Handle(IGESData_IGESEntity) TransferSphericalSurface (const Handle(Geom_SphericalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0112   
0113   Standard_EXPORT Handle(IGESData_IGESEntity) TransferToroidalSurface (const Handle(Geom_ToroidalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
0114   
0115   //! Returns the value of "TheLength"
0116   Standard_EXPORT Standard_Real Length() const;
0117   
0118   //! Returns Brep mode flag.
0119   Standard_EXPORT Standard_Boolean GetBRepMode() const;
0120   
0121   //! Sets BRep mode flag.
0122   Standard_EXPORT void SetBRepMode (const Standard_Boolean flag);
0123   
0124   //! Returns flag for writing elementary surfaces
0125   Standard_EXPORT Standard_Boolean GetAnalyticMode() const;
0126   
0127   //! Setst flag for writing elementary surfaces
0128   Standard_EXPORT void SetAnalyticMode (const Standard_Boolean flag);
0129 
0130 
0131 
0132 
0133 protected:
0134 
0135 
0136 
0137 
0138 
0139 private:
0140 
0141 
0142 
0143   Standard_Real TheLength;
0144   Standard_Boolean myBRepMode;
0145   Standard_Boolean myAnalytic;
0146 
0147 
0148 };
0149 
0150 
0151 
0152 
0153 
0154 
0155 
0156 #endif // _GeomToIGES_GeomSurface_HeaderFile