Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1999-02-12
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 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 _StepToTopoDS_TranslateCompositeCurve_HeaderFile
0018 #define _StepToTopoDS_TranslateCompositeCurve_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDS_Wire.hxx>
0025 #include <StepToTopoDS_Root.hxx>
0026 class StepGeom_CompositeCurve;
0027 class Transfer_TransientProcess;
0028 class StepGeom_Surface;
0029 class Geom_Surface;
0030 
0031 
0032 //! Translate STEP entity composite_curve to TopoDS_Wire
0033 //! If surface is given, the curve is assumed to lie on that
0034 //! surface and in case if any segment of it is a
0035 //! curve_on_surface, the pcurve for that segment will be taken.
0036 //! Note: a segment of composite_curve may be itself
0037 //! composite_curve. Only one-level protection against
0038 //! cyclic references is implemented.
0039 class StepToTopoDS_TranslateCompositeCurve  : public StepToTopoDS_Root
0040 {
0041 public:
0042 
0043   DEFINE_STANDARD_ALLOC
0044 
0045   
0046   //! Empty constructor
0047   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve();
0048   
0049   //! Translates standalone composite_curve
0050   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(const Handle(StepGeom_CompositeCurve)& CC,
0051                                                        const Handle(Transfer_TransientProcess)& TP,
0052                                                        const StepData_Factors& theLocalFactors);
0053   
0054   //! Translates composite_curve lying on surface
0055   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(const Handle(StepGeom_CompositeCurve)& CC,
0056                                                        const Handle(Transfer_TransientProcess)& TP,
0057                                                        const Handle(StepGeom_Surface)& S,
0058                                                        const Handle(Geom_Surface)& Surf,
0059                                                        const StepData_Factors& theLocalFactors);
0060   
0061   //! Translates standalone composite_curve
0062   Standard_EXPORT Standard_Boolean Init (const Handle(StepGeom_CompositeCurve)& CC,
0063                                          const Handle(Transfer_TransientProcess)& TP,
0064                                          const StepData_Factors& theLocalFactors);
0065   
0066   //! Translates composite_curve lying on surface
0067   Standard_EXPORT Standard_Boolean Init (const Handle(StepGeom_CompositeCurve)& CC,
0068                                          const Handle(Transfer_TransientProcess)& TP,
0069                                          const Handle(StepGeom_Surface)& S,
0070                                          const Handle(Geom_Surface)& Surf,
0071                                          const StepData_Factors& theLocalFactors);
0072   
0073   //! Returns result of last translation or null wire if failed.
0074   Standard_EXPORT const TopoDS_Wire& Value() const;
0075   
0076   //! Returns True if composite_curve contains a segment with infinite parameters.
0077     Standard_Boolean IsInfiniteSegment() const;
0078 
0079 
0080 
0081 
0082 protected:
0083 
0084 
0085 
0086 
0087 
0088 private:
0089 
0090 
0091 
0092   TopoDS_Wire myWire;
0093   Standard_Boolean myInfiniteSegment;
0094 
0095 
0096 };
0097 
0098 
0099 #include <StepToTopoDS_TranslateCompositeCurve.lxx>
0100 
0101 
0102 
0103 
0104 
0105 #endif // _StepToTopoDS_TranslateCompositeCurve_HeaderFile