Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 09:16:09

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 //! Translate STEP entity composite_curve to TopoDS_Wire
0032 //! If surface is given, the curve is assumed to lie on that
0033 //! surface and in case if any segment of it is a
0034 //! curve_on_surface, the pcurve for that segment will be taken.
0035 //! Note: a segment of composite_curve may be itself
0036 //! composite_curve. Only one-level protection against
0037 //! cyclic references is implemented.
0038 class StepToTopoDS_TranslateCompositeCurve : public StepToTopoDS_Root
0039 {
0040 public:
0041   DEFINE_STANDARD_ALLOC
0042 
0043   //! Empty constructor
0044   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve();
0045 
0046   //! Translates standalone composite_curve
0047   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(
0048     const occ::handle<StepGeom_CompositeCurve>&   CC,
0049     const occ::handle<Transfer_TransientProcess>& TP,
0050     const StepData_Factors&                       theLocalFactors = StepData_Factors());
0051 
0052   //! Translates composite_curve lying on surface
0053   Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(
0054     const occ::handle<StepGeom_CompositeCurve>&   CC,
0055     const occ::handle<Transfer_TransientProcess>& TP,
0056     const occ::handle<StepGeom_Surface>&          S,
0057     const occ::handle<Geom_Surface>&              Surf,
0058     const StepData_Factors&                       theLocalFactors = StepData_Factors());
0059 
0060   //! Translates standalone composite_curve
0061   Standard_EXPORT bool Init(const occ::handle<StepGeom_CompositeCurve>&   CC,
0062                             const occ::handle<Transfer_TransientProcess>& TP,
0063                             const StepData_Factors& theLocalFactors = StepData_Factors());
0064 
0065   //! Translates composite_curve lying on surface
0066   Standard_EXPORT bool Init(const occ::handle<StepGeom_CompositeCurve>&   CC,
0067                             const occ::handle<Transfer_TransientProcess>& TP,
0068                             const occ::handle<StepGeom_Surface>&          S,
0069                             const occ::handle<Geom_Surface>&              Surf,
0070                             const StepData_Factors& theLocalFactors = StepData_Factors());
0071 
0072   //! Returns result of last translation or null wire if failed.
0073   Standard_EXPORT const TopoDS_Wire& Value() const;
0074 
0075   //! Returns True if composite_curve contains a segment with infinite parameters.
0076   bool IsInfiniteSegment() const;
0077 
0078 private:
0079   TopoDS_Wire myWire;
0080   bool        myInfiniteSegment;
0081 };
0082 
0083 #include <StepToTopoDS_TranslateCompositeCurve.lxx>
0084 
0085 #endif // _StepToTopoDS_TranslateCompositeCurve_HeaderFile