Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-09 09:17:07

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 #include <StepData_Factors.hxx>
0024 
0025 class Geom_Axis1Placement;
0026 class Geom_Axis2Placement;
0027 class Geom_BoundedCurve;
0028 class Geom_BoundedSurface;
0029 class Geom_BSplineCurve;
0030 class Geom_BSplineSurface;
0031 class Geom_CartesianPoint;
0032 class Geom_Circle;
0033 class Geom_Conic;
0034 class Geom_ConicalSurface;
0035 class Geom_Curve;
0036 class Geom_CylindricalSurface;
0037 class Geom_Direction;
0038 class Geom_ElementarySurface;
0039 class Geom_Ellipse;
0040 class Geom_Hyperbola;
0041 class Geom_Line;
0042 class Geom_Parabola;
0043 class Geom_Plane;
0044 class Geom_RectangularTrimmedSurface;
0045 class Geom_SphericalSurface;
0046 class Geom_Surface;
0047 class Geom_SurfaceOfLinearExtrusion;
0048 class Geom_SurfaceOfRevolution;
0049 class Geom_SweptSurface;
0050 class Geom_ToroidalSurface;
0051 class Geom_TrimmedCurve;
0052 class Geom_VectorWithMagnitude;
0053 
0054 class Geom2d_AxisPlacement;
0055 class Geom2d_BoundedCurve;
0056 class Geom2d_BSplineCurve;
0057 class Geom2d_CartesianPoint;
0058 class Geom2d_Circle;
0059 class Geom2d_Conic;
0060 class Geom2d_Curve;
0061 class Geom2d_Direction;
0062 class Geom2d_Ellipse;
0063 class Geom2d_Hyperbola;
0064 class Geom2d_Line;
0065 class Geom2d_Parabola;
0066 class Geom2d_VectorWithMagnitude;
0067 
0068 class gp_Trsf;
0069 class gp_Trsf2d;
0070 
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   Standard_EXPORT static Handle(Geom_Axis1Placement) MakeAxis1Placement(
0117     const Handle(StepGeom_Axis1Placement)& SA,
0118     const StepData_Factors&                theLocalFactors = StepData_Factors());
0119   Standard_EXPORT static Handle(Geom_Axis2Placement) MakeAxis2Placement(
0120     const Handle(StepGeom_Axis2Placement3d)& SA,
0121     const StepData_Factors&                  theLocalFactors = StepData_Factors());
0122   Standard_EXPORT static Handle(Geom_Axis2Placement) MakeAxis2Placement(
0123     const Handle(StepGeom_SuParameters)& SP);
0124   Standard_EXPORT static Handle(Geom2d_AxisPlacement) MakeAxisPlacement(
0125     const Handle(StepGeom_Axis2Placement2d)& SA,
0126     const StepData_Factors&                  theLocalFactors = StepData_Factors());
0127   Standard_EXPORT static Handle(Geom_BoundedCurve) MakeBoundedCurve(
0128     const Handle(StepGeom_BoundedCurve)& SC,
0129     const StepData_Factors&              theLocalFactors = StepData_Factors());
0130   Standard_EXPORT static Handle(Geom2d_BoundedCurve) MakeBoundedCurve2d(
0131     const Handle(StepGeom_BoundedCurve)& SC,
0132     const StepData_Factors&              theLocalFactors = StepData_Factors());
0133   Standard_EXPORT static Handle(Geom_BoundedSurface) MakeBoundedSurface(
0134     const Handle(StepGeom_BoundedSurface)& SS,
0135     const StepData_Factors&                theLocalFactors = StepData_Factors());
0136   Standard_EXPORT static Handle(Geom_BSplineCurve) MakeBSplineCurve(
0137     const Handle(StepGeom_BSplineCurve)& SC,
0138     const StepData_Factors&              theLocalFactors = StepData_Factors());
0139   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakeBSplineCurve2d(
0140     const Handle(StepGeom_BSplineCurve)& SC,
0141     const StepData_Factors&              theLocalFactors = StepData_Factors());
0142   Standard_EXPORT static Handle(Geom_BSplineSurface) MakeBSplineSurface(
0143     const Handle(StepGeom_BSplineSurface)& SS,
0144     const StepData_Factors&                theLocalFactors = StepData_Factors());
0145   Standard_EXPORT static Handle(Geom_CartesianPoint) MakeCartesianPoint(
0146     const Handle(StepGeom_CartesianPoint)& SP,
0147     const StepData_Factors&                theLocalFactors = StepData_Factors());
0148   Standard_EXPORT static Handle(Geom2d_CartesianPoint) MakeCartesianPoint2d(
0149     const Handle(StepGeom_CartesianPoint)& SP,
0150     const StepData_Factors&                theLocalFactors = StepData_Factors());
0151   Standard_EXPORT static Handle(Geom_Circle) MakeCircle(
0152     const Handle(StepGeom_Circle)& SC,
0153     const StepData_Factors&        theLocalFactors = StepData_Factors());
0154   Standard_EXPORT static Handle(Geom2d_Circle) MakeCircle2d(
0155     const Handle(StepGeom_Circle)& SC,
0156     const StepData_Factors&        theLocalFactors = StepData_Factors());
0157   Standard_EXPORT static Handle(Geom_Conic) MakeConic(
0158     const Handle(StepGeom_Conic)& SC,
0159     const StepData_Factors&       theLocalFactors = StepData_Factors());
0160   Standard_EXPORT static Handle(Geom2d_Conic) MakeConic2d(
0161     const Handle(StepGeom_Conic)& SC,
0162     const StepData_Factors&       theLocalFactors = StepData_Factors());
0163   Standard_EXPORT static Handle(Geom_ConicalSurface) MakeConicalSurface(
0164     const Handle(StepGeom_ConicalSurface)& SS,
0165     const StepData_Factors&                theLocalFactors = StepData_Factors());
0166   Standard_EXPORT static Handle(Geom_Curve) MakeCurve(
0167     const Handle(StepGeom_Curve)& SC,
0168     const StepData_Factors&       theLocalFactors = StepData_Factors());
0169   Standard_EXPORT static Handle(Geom2d_Curve) MakeCurve2d(
0170     const Handle(StepGeom_Curve)& SC,
0171     const StepData_Factors&       theLocalFactors = StepData_Factors());
0172   Standard_EXPORT static Handle(Geom_CylindricalSurface) MakeCylindricalSurface(
0173     const Handle(StepGeom_CylindricalSurface)& SS,
0174     const StepData_Factors&                    theLocalFactors = StepData_Factors());
0175   Standard_EXPORT static Handle(Geom_Direction) MakeDirection(const Handle(StepGeom_Direction)& SD);
0176   Standard_EXPORT static Handle(Geom2d_Direction) MakeDirection2d(
0177     const Handle(StepGeom_Direction)& SD);
0178   Standard_EXPORT static Handle(Geom_ElementarySurface) MakeElementarySurface(
0179     const Handle(StepGeom_ElementarySurface)& SS,
0180     const StepData_Factors&                   theLocalFactors = StepData_Factors());
0181   Standard_EXPORT static Handle(Geom_Ellipse) MakeEllipse(
0182     const Handle(StepGeom_Ellipse)& SC,
0183     const StepData_Factors&         theLocalFactors = StepData_Factors());
0184   Standard_EXPORT static Handle(Geom2d_Ellipse) MakeEllipse2d(
0185     const Handle(StepGeom_Ellipse)& SC,
0186     const StepData_Factors&         theLocalFactors = StepData_Factors());
0187   Standard_EXPORT static Handle(Geom_Hyperbola) MakeHyperbola(
0188     const Handle(StepGeom_Hyperbola)& SC,
0189     const StepData_Factors&           theLocalFactors = StepData_Factors());
0190   Standard_EXPORT static Handle(Geom2d_Hyperbola) MakeHyperbola2d(
0191     const Handle(StepGeom_Hyperbola)& SC,
0192     const StepData_Factors&           theLocalFactors = StepData_Factors());
0193   Standard_EXPORT static Handle(Geom_Line) MakeLine(
0194     const Handle(StepGeom_Line)& SC,
0195     const StepData_Factors&      theLocalFactors = StepData_Factors());
0196   Standard_EXPORT static Handle(Geom2d_Line) MakeLine2d(
0197     const Handle(StepGeom_Line)& SC,
0198     const StepData_Factors&      theLocalFactors = StepData_Factors());
0199   Standard_EXPORT static Handle(Geom_Parabola) MakeParabola(
0200     const Handle(StepGeom_Parabola)& SC,
0201     const StepData_Factors&          theLocalFactors = StepData_Factors());
0202   Standard_EXPORT static Handle(Geom2d_Parabola) MakeParabola2d(
0203     const Handle(StepGeom_Parabola)& SC,
0204     const StepData_Factors&          theLocalFactors = StepData_Factors());
0205   Standard_EXPORT static Handle(Geom_Plane) MakePlane(
0206     const Handle(StepGeom_Plane)& SP,
0207     const StepData_Factors&       theLocalFactors = StepData_Factors());
0208   Standard_EXPORT static Handle(Geom_BSplineCurve) MakePolyline(
0209     const Handle(StepGeom_Polyline)& SPL,
0210     const StepData_Factors&          theLocalFactors = StepData_Factors());
0211   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakePolyline2d(
0212     const Handle(StepGeom_Polyline)& SPL,
0213     const StepData_Factors&          theLocalFactors = StepData_Factors());
0214   Standard_EXPORT static Handle(Geom_RectangularTrimmedSurface) MakeRectangularTrimmedSurface(
0215     const Handle(StepGeom_RectangularTrimmedSurface)& SS,
0216     const StepData_Factors&                           theLocalFactors = StepData_Factors());
0217   Standard_EXPORT static Handle(Geom_SphericalSurface) MakeSphericalSurface(
0218     const Handle(StepGeom_SphericalSurface)& SS,
0219     const StepData_Factors&                  theLocalFactors = StepData_Factors());
0220   Standard_EXPORT static Handle(Geom_Surface) MakeSurface(
0221     const Handle(StepGeom_Surface)& SS,
0222     const StepData_Factors&         theLocalFactors = StepData_Factors());
0223   Standard_EXPORT static Handle(Geom_SurfaceOfLinearExtrusion) MakeSurfaceOfLinearExtrusion(
0224     const Handle(StepGeom_SurfaceOfLinearExtrusion)& SS,
0225     const StepData_Factors&                          theLocalFactors = StepData_Factors());
0226   Standard_EXPORT static Handle(Geom_SurfaceOfRevolution) MakeSurfaceOfRevolution(
0227     const Handle(StepGeom_SurfaceOfRevolution)& SS,
0228     const StepData_Factors&                     theLocalFactors = StepData_Factors());
0229   Standard_EXPORT static Handle(Geom_SweptSurface) MakeSweptSurface(
0230     const Handle(StepGeom_SweptSurface)& SS,
0231     const StepData_Factors&              theLocalFactors = StepData_Factors());
0232   Standard_EXPORT static Handle(Geom_ToroidalSurface) MakeToroidalSurface(
0233     const Handle(StepGeom_ToroidalSurface)& SS,
0234     const StepData_Factors&                 theLocalFactors = StepData_Factors());
0235   Standard_EXPORT static Standard_Boolean MakeTransformation2d(
0236     const Handle(StepGeom_CartesianTransformationOperator2d)& SCTO,
0237     gp_Trsf2d&                                                CT,
0238     const StepData_Factors&                                   theLocalFactors = StepData_Factors());
0239   Standard_EXPORT static Standard_Boolean MakeTransformation3d(
0240     const Handle(StepGeom_CartesianTransformationOperator3d)& SCTO,
0241     gp_Trsf&                                                  CT,
0242     const StepData_Factors&                                   theLocalFactors = StepData_Factors());
0243   Standard_EXPORT static Handle(Geom_TrimmedCurve) MakeTrimmedCurve(
0244     const Handle(StepGeom_TrimmedCurve)& SC,
0245     const StepData_Factors&              theLocalFactors = StepData_Factors());
0246   Standard_EXPORT static Handle(Geom2d_BSplineCurve) MakeTrimmedCurve2d(
0247     const Handle(StepGeom_TrimmedCurve)& SC,
0248     const StepData_Factors&              theLocalFactors = StepData_Factors());
0249   Standard_EXPORT static Handle(Geom_VectorWithMagnitude) MakeVectorWithMagnitude(
0250     const Handle(StepGeom_Vector)& SV,
0251     const StepData_Factors&        theLocalFactors = StepData_Factors());
0252   Standard_EXPORT static Handle(Geom2d_VectorWithMagnitude) MakeVectorWithMagnitude2d(
0253     const Handle(StepGeom_Vector)& SV);
0254   Standard_EXPORT static Handle(TColStd_HArray1OfReal) MakeYprRotation(
0255     const StepKinematics_SpatialRotation&             SR,
0256     const Handle(StepRepr_GlobalUnitAssignedContext)& theCntxt);
0257 };
0258 
0259 #endif // _StepToGeom_HeaderFile