1 // Created on: 1999-02-12
2 // Created by: Andrey BETENEV
3 // Copyright (c) 1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _StepToTopoDS_TranslateCompositeCurve_HeaderFile
18 #define _StepToTopoDS_TranslateCompositeCurve_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopoDS_Wire.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <StepToTopoDS_Root.hxx>
27 class StepGeom_CompositeCurve;
28 class Transfer_TransientProcess;
29 class StepGeom_Surface;
34 //! Translate STEP entity composite_curve to TopoDS_Wire
35 //! If surface is given, the curve is assumed to lie on that
36 //! surface and in case if any segment of it is a
37 //! curve_on_surface, the pcurve for that segment will be taken.
38 //! Note: a segment of composite_curve may be itself
39 //! composite_curve. Only one-level protection against
40 //! cyclic references is implemented.
41 class StepToTopoDS_TranslateCompositeCurve : public StepToTopoDS_Root
49 Standard_EXPORT StepToTopoDS_TranslateCompositeCurve();
51 //! Translates standalone composite_curve
52 Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(const Handle(StepGeom_CompositeCurve)& CC, const Handle(Transfer_TransientProcess)& TP);
54 //! Translates composite_curve lying on surface
55 Standard_EXPORT StepToTopoDS_TranslateCompositeCurve(const Handle(StepGeom_CompositeCurve)& CC, const Handle(Transfer_TransientProcess)& TP, const Handle(StepGeom_Surface)& S, const Handle(Geom_Surface)& Surf);
57 //! Translates standalone composite_curve
58 Standard_EXPORT Standard_Boolean Init (const Handle(StepGeom_CompositeCurve)& CC, const Handle(Transfer_TransientProcess)& TP);
60 //! Translates composite_curve lying on surface
61 Standard_EXPORT Standard_Boolean Init (const Handle(StepGeom_CompositeCurve)& CC, const Handle(Transfer_TransientProcess)& TP, const Handle(StepGeom_Surface)& S, const Handle(Geom_Surface)& Surf);
63 //! Returns result of last translation or null wire if failed.
64 Standard_EXPORT const TopoDS_Wire& Value() const;
66 //! Returns True if composite_curve contains a segment with infinite parameters.
67 Standard_Boolean IsInfiniteSegment() const;
83 Standard_Boolean myInfiniteSegment;
89 #include <StepToTopoDS_TranslateCompositeCurve.lxx>
95 #endif // _StepToTopoDS_TranslateCompositeCurve_HeaderFile