Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:15

0001 // Created on: 1993-06-11
0002 // Created by: Martine LANGLOIS
0003 // Copyright (c) 1993-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 _StepToGeom_HeaderFile
0018 #define _StepToGeom_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 class Geom_Axis1Placement;
0025 class Geom_Axis2Placement;
0026 class Geom_BoundedCurve;
0027 class Geom_BoundedSurface;
0028 class Geom_BSplineCurve;
0029 class Geom_BSplineSurface;
0030 class Geom_CartesianPoint;
0031 class Geom_Circle;
0032 class Geom_Conic;
0033 class Geom_ConicalSurface;
0034 class Geom_Curve;
0035 class Geom_CylindricalSurface;
0036 class Geom_Direction;
0037 class Geom_ElementarySurface;
0038 class Geom_Ellipse;
0039 class Geom_Hyperbola;
0040 class Geom_Line;
0041 class Geom_Parabola;
0042 class Geom_Plane;
0043 class Geom_RectangularTrimmedSurface;
0044 class Geom_SphericalSurface;
0045 class Geom_Surface;
0046 class Geom_SurfaceOfLinearExtrusion;
0047 class Geom_SurfaceOfRevolution;
0048 class Geom_SweptSurface;
0049 class Geom_ToroidalSurface;
0050 class Geom_TrimmedCurve;
0051 class Geom_VectorWithMagnitude;
0052 
0053 class Geom2d_AxisPlacement;
0054 class Geom2d_BoundedCurve;
0055 class Geom2d_BSplineCurve;
0056 class Geom2d_CartesianPoint;
0057 class Geom2d_Circle;
0058 class Geom2d_Conic;
0059 class Geom2d_Curve;
0060 class Geom2d_Direction;
0061 class Geom2d_Ellipse;
0062 class Geom2d_Hyperbola;
0063 class Geom2d_Line;
0064 class Geom2d_Parabola;
0065 class Geom2d_VectorWithMagnitude;
0066 
0067 class gp_Trsf;
0068 class gp_Trsf2d;
0069 
0070 class StepData_Factors;
0071 class StepGeom_Axis1Placement;
0072 class StepGeom_Axis2Placement2d;
0073 class StepGeom_Axis2Placement3d;
0074 class StepGeom_BoundedCurve;
0075 class StepGeom_BoundedSurface;
0076 class StepGeom_BSplineCurve;
0077 class StepGeom_CartesianPoint;
0078 class StepGeom_Direction;
0079 
0080 class StepGeom_BSplineSurface;
0081 class StepGeom_Circle;
0082 class StepGeom_Conic;
0083 class StepGeom_ConicalSurface;
0084 class StepGeom_Curve;
0085 class StepGeom_CylindricalSurface;
0086 class StepGeom_ElementarySurface;
0087 class StepGeom_Ellipse;
0088 class StepGeom_Hyperbola;
0089 class StepGeom_Line;
0090 class StepGeom_Parabola;
0091 class StepGeom_Plane;
0092 class StepGeom_Polyline;
0093 class StepGeom_RectangularTrimmedSurface;
0094 class StepGeom_SphericalSurface;
0095 class StepGeom_Surface;
0096 class StepGeom_SurfaceOfLinearExtrusion;
0097 class StepGeom_SurfaceOfRevolution;
0098 class StepGeom_SweptSurface;
0099 class StepGeom_ToroidalSurface;
0100 class StepGeom_CartesianTransformationOperator2d;
0101 class StepGeom_CartesianTransformationOperator3d;
0102 class StepGeom_TrimmedCurve;
0103 class StepGeom_Vector;
0104 class StepGeom_SuParameters;
0105 class StepKinematics_SpatialRotation;
0106 class StepRepr_GlobalUnitAssignedContext;
0107 class TColStd_HArray1OfReal;
0108 
0109 //! This class provides static methods to convert STEP geometric entities to OCCT.
0110 //! The methods returning handles will return null handle in case of error.
0111 //! The methods returning boolean will return True if succeeded and False if error.
0112 
0113 class StepToGeom
0114 {
0115 public:
0116 
0117   Standard_EXPORT static Handle(Geom_Axis1Placement) MakeAxis1Placement (const Handle(StepGeom_Axis1Placement)& SA,
0118                                                                          const StepData_Factors& theLocalFactors);
0119   Standard_EXPORT static Handle(Geom_Axis2Placement) MakeAxis2Placement (const Handle(StepGeom_Axis2Placement3d)& SA,
0120                                                                          const StepData_Factors& theLocalFactors);
0121   Standard_EXPORT static Handle(Geom_Axis2Placement) MakeAxis2Placement (const Handle(StepGeom_SuParameters)& SP);
0122   Standard_EXPORT static Handle(Geom2d_AxisPlacement) MakeAxisPlacement (const Handle(StepGeom_Axis2Placement2d)& SA,
0123                                                                          const StepData_Factors& theLocalFactors);
0124   Standard_EXPORT static Handle(Geom_BoundedCurve) MakeBoundedCurve (const Handle(StepGeom_BoundedCurve)& SC,
0125                                                                      const StepData_Factors& theLocalFactors);
0126   Standard_EXPORT static Handle(Geom2d_BoundedCurve) MakeBoundedCurve2d (const Handle(StepGeom_BoundedCurve)& SC,
0127                                                                          const StepData_Factors& theLocalFactors);
0128   Standard_EXPORT static Handle(Geom_BoundedSurface) MakeBoundedSurface (const Handle(StepGeom_BoundedSurface)& SS,
0129                                                                          const StepData_Factors& theLocalFactors);
0130   Standard_EXPORT static Handle(Geom_BSplineCurve) MakeBSplineCurve (const Handle(StepGeom_BSplineCurve)& SC,
0131                                                                      const StepData_Factors& theLocalFactors);
0132   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakeBSplineCurve2d (const Handle(StepGeom_BSplineCurve)& SC,
0133                                                                          const StepData_Factors& theLocalFactors);
0134   Standard_EXPORT static Handle(Geom_BSplineSurface) MakeBSplineSurface (const Handle(StepGeom_BSplineSurface)& SS,
0135                                                                          const StepData_Factors& theLocalFactors);
0136   Standard_EXPORT static Handle(Geom_CartesianPoint) MakeCartesianPoint (const Handle(StepGeom_CartesianPoint)& SP,
0137                                                                          const StepData_Factors& theLocalFactors);
0138   Standard_EXPORT static Handle(Geom2d_CartesianPoint) MakeCartesianPoint2d (const Handle(StepGeom_CartesianPoint)& SP,
0139                                                                              const StepData_Factors& theLocalFactors);
0140   Standard_EXPORT static Handle(Geom_Circle) MakeCircle (const Handle(StepGeom_Circle)& SC,
0141                                                          const StepData_Factors& theLocalFactors);
0142   Standard_EXPORT static Handle(Geom2d_Circle) MakeCircle2d (const Handle(StepGeom_Circle)& SC,
0143                                                              const StepData_Factors& theLocalFactors);
0144   Standard_EXPORT static Handle(Geom_Conic) MakeConic (const Handle(StepGeom_Conic)& SC,
0145                                                        const StepData_Factors& theLocalFactors);
0146   Standard_EXPORT static Handle(Geom2d_Conic) MakeConic2d (const Handle(StepGeom_Conic)& SC,
0147                                                            const StepData_Factors& theLocalFactors);
0148   Standard_EXPORT static Handle(Geom_ConicalSurface) MakeConicalSurface (const Handle(StepGeom_ConicalSurface)& SS,
0149                                                                          const StepData_Factors& theLocalFactors);
0150   Standard_EXPORT static Handle(Geom_Curve) MakeCurve (const Handle(StepGeom_Curve)& SC,
0151                                                        const StepData_Factors& theLocalFactors);
0152   Standard_EXPORT static Handle(Geom2d_Curve) MakeCurve2d (const Handle(StepGeom_Curve)& SC,
0153                                                            const StepData_Factors& theLocalFactors);
0154   Standard_EXPORT static Handle(Geom_CylindricalSurface) MakeCylindricalSurface (const Handle(StepGeom_CylindricalSurface)& SS,
0155                                                                                  const StepData_Factors& theLocalFactors);
0156   Standard_EXPORT static Handle(Geom_Direction) MakeDirection (const Handle(StepGeom_Direction)& SD);
0157   Standard_EXPORT static Handle(Geom2d_Direction) MakeDirection2d (const Handle(StepGeom_Direction)& SD);
0158   Standard_EXPORT static Handle(Geom_ElementarySurface) MakeElementarySurface (const Handle(StepGeom_ElementarySurface)& SS,
0159                                                                                const StepData_Factors& theLocalFactors);
0160   Standard_EXPORT static Handle(Geom_Ellipse) MakeEllipse (const Handle(StepGeom_Ellipse)& SC,
0161                                                            const StepData_Factors& theLocalFactors);
0162   Standard_EXPORT static Handle(Geom2d_Ellipse) MakeEllipse2d (const Handle(StepGeom_Ellipse)& SC,
0163                                                                const StepData_Factors& theLocalFactors);
0164   Standard_EXPORT static Handle(Geom_Hyperbola) MakeHyperbola (const Handle(StepGeom_Hyperbola)& SC,
0165                                                                const StepData_Factors& theLocalFactors);
0166   Standard_EXPORT static Handle(Geom2d_Hyperbola) MakeHyperbola2d (const Handle(StepGeom_Hyperbola)& SC,
0167                                                                    const StepData_Factors& theLocalFactors);
0168   Standard_EXPORT static Handle(Geom_Line) MakeLine (const Handle(StepGeom_Line)& SC,
0169                                                      const StepData_Factors& theLocalFactors);
0170   Standard_EXPORT static Handle(Geom2d_Line) MakeLine2d (const Handle(StepGeom_Line)& SC,
0171                                                          const StepData_Factors& theLocalFactors);
0172   Standard_EXPORT static Handle(Geom_Parabola) MakeParabola (const Handle(StepGeom_Parabola)& SC,
0173                                                              const StepData_Factors& theLocalFactors);
0174   Standard_EXPORT static Handle(Geom2d_Parabola) MakeParabola2d (const Handle(StepGeom_Parabola)& SC,
0175                                                                  const StepData_Factors& theLocalFactors);
0176   Standard_EXPORT static Handle(Geom_Plane) MakePlane (const Handle(StepGeom_Plane)& SP,
0177                                                        const StepData_Factors& theLocalFactors);
0178   Standard_EXPORT static Handle(Geom_BSplineCurve) MakePolyline (const Handle(StepGeom_Polyline)& SPL,
0179                                                                  const StepData_Factors& theLocalFactors);
0180   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakePolyline2d (const Handle(StepGeom_Polyline)& SPL,
0181                                                                      const StepData_Factors& theLocalFactors);
0182   Standard_EXPORT static Handle(Geom_RectangularTrimmedSurface) MakeRectangularTrimmedSurface (const Handle(StepGeom_RectangularTrimmedSurface)& SS,
0183                                                                                                const StepData_Factors& theLocalFactors);
0184   Standard_EXPORT static Handle(Geom_SphericalSurface) MakeSphericalSurface (const Handle(StepGeom_SphericalSurface)& SS,
0185                                                                              const StepData_Factors& theLocalFactors);
0186   Standard_EXPORT static Handle(Geom_Surface) MakeSurface (const Handle(StepGeom_Surface)& SS,
0187                                                            const StepData_Factors& theLocalFactors);
0188   Standard_EXPORT static Handle(Geom_SurfaceOfLinearExtrusion) MakeSurfaceOfLinearExtrusion (const Handle(StepGeom_SurfaceOfLinearExtrusion)& SS,
0189                                                                                              const StepData_Factors& theLocalFactors);
0190   Standard_EXPORT static Handle(Geom_SurfaceOfRevolution) MakeSurfaceOfRevolution (const Handle(StepGeom_SurfaceOfRevolution)& SS,
0191                                                                                    const StepData_Factors& theLocalFactors);
0192   Standard_EXPORT static Handle(Geom_SweptSurface) MakeSweptSurface (const Handle(StepGeom_SweptSurface)& SS,
0193                                                                      const StepData_Factors& theLocalFactors);
0194   Standard_EXPORT static Handle(Geom_ToroidalSurface) MakeToroidalSurface (const Handle(StepGeom_ToroidalSurface)& SS,
0195                                                                            const StepData_Factors& theLocalFactors);
0196   Standard_EXPORT static Standard_Boolean MakeTransformation2d (const Handle(StepGeom_CartesianTransformationOperator2d)& SCTO, gp_Trsf2d& CT,
0197                                                                 const StepData_Factors& theLocalFactors);
0198   Standard_EXPORT static Standard_Boolean MakeTransformation3d (const Handle(StepGeom_CartesianTransformationOperator3d)& SCTO, gp_Trsf& CT,
0199                                                                 const StepData_Factors& theLocalFactors);
0200   Standard_EXPORT static Handle(Geom_TrimmedCurve) MakeTrimmedCurve (const Handle(StepGeom_TrimmedCurve)& SC,
0201                                                                      const StepData_Factors& theLocalFactors);
0202   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakeTrimmedCurve2d (const Handle(StepGeom_TrimmedCurve)& SC,
0203                                                                          const StepData_Factors& theLocalFactors);
0204   Standard_EXPORT static Handle(Geom_VectorWithMagnitude) MakeVectorWithMagnitude (const Handle(StepGeom_Vector)& SV,
0205                                                                                    const StepData_Factors& theLocalFactors);
0206   Standard_EXPORT static Handle(Geom2d_VectorWithMagnitude) MakeVectorWithMagnitude2d (const Handle(StepGeom_Vector)& SV);
0207   Standard_EXPORT static Handle(TColStd_HArray1OfReal) MakeYprRotation(const StepKinematics_SpatialRotation& SR, const Handle(StepRepr_GlobalUnitAssignedContext)& theCntxt);
0208 };
0209 
0210 #endif // _StepToGeom_HeaderFile