0026377: Passing Handle objects as arguments to functions as non-const reference...
[occt.git] / src / IGESToBRep / IGESToBRep_TopoSurface.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-04-21
2// Created by: s: Christophe GUYOT & Frederic UNTEREINER
3// Copyright (c) 1994-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESToBRep_TopoSurface_HeaderFile
18#define _IGESToBRep_TopoSurface_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Real.hxx>
25#include <IGESToBRep_CurveAndSurface.hxx>
26#include <Standard_Boolean.hxx>
27class IGESToBRep_CurveAndSurface;
28class TopoDS_Shape;
29class IGESData_IGESEntity;
30class IGESGeom_RuledSurface;
31class IGESGeom_SurfaceOfRevolution;
32class IGESGeom_TabulatedCylinder;
33class IGESGeom_OffsetSurface;
34class IGESGeom_TrimmedSurface;
35class IGESGeom_BoundedSurface;
36class IGESGeom_Plane;
37class IGESSolid_PlaneSurface;
38class IGESBasic_SingleParent;
39class gp_Pln;
40class gp_Trsf;
41class gp_Trsf2d;
42
43
44//! Provides methods to transfer topologic surfaces entities
45//! from IGES to CASCADE.
46class IGESToBRep_TopoSurface : public IGESToBRep_CurveAndSurface
47{
48public:
49
50 DEFINE_STANDARD_ALLOC
51
52
53 //! Creates a tool TopoSurface ready to run, with
54 //! epsilons set to 1.E-04, TheModeTopo to True, the
55 //! optimization of the continuity to False.
56 Standard_EXPORT IGESToBRep_TopoSurface();
57
58 //! Creates a tool TopoSurface ready to run and sets its
59 //! fields as CS's.
60 Standard_EXPORT IGESToBRep_TopoSurface(const IGESToBRep_CurveAndSurface& CS);
61
62 //! Creates a tool TopoSurface ready to run.
63 Standard_EXPORT IGESToBRep_TopoSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
64
65 Standard_EXPORT TopoDS_Shape TransferTopoSurface (const Handle(IGESData_IGESEntity)& start);
66
67 Standard_EXPORT TopoDS_Shape TransferTopoBasicSurface (const Handle(IGESData_IGESEntity)& start);
68
69 Standard_EXPORT TopoDS_Shape TransferRuledSurface (const Handle(IGESGeom_RuledSurface)& start);
70
71 Standard_EXPORT TopoDS_Shape TransferSurfaceOfRevolution (const Handle(IGESGeom_SurfaceOfRevolution)& start);
72
73 Standard_EXPORT TopoDS_Shape TransferTabulatedCylinder (const Handle(IGESGeom_TabulatedCylinder)& start);
74
75 Standard_EXPORT TopoDS_Shape TransferOffsetSurface (const Handle(IGESGeom_OffsetSurface)& start);
76
77 Standard_EXPORT TopoDS_Shape TransferTrimmedSurface (const Handle(IGESGeom_TrimmedSurface)& start);
78
79 Standard_EXPORT TopoDS_Shape TransferBoundedSurface (const Handle(IGESGeom_BoundedSurface)& start);
80
81 Standard_EXPORT TopoDS_Shape TransferPlane (const Handle(IGESGeom_Plane)& start);
82
83 Standard_EXPORT TopoDS_Shape TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start);
84
85 Standard_EXPORT TopoDS_Shape TransferPerforate (const Handle(IGESBasic_SingleParent)& start);
86
87 Standard_EXPORT TopoDS_Shape ParamSurface (const Handle(IGESData_IGESEntity)& start, gp_Trsf2d& trans, Standard_Real& uFact);
88
89
90
91
92protected:
93
94
95
96
97
98private:
99
100
101 Standard_EXPORT TopoDS_Shape TransferPlaneParts (const Handle(IGESGeom_Plane)& start, gp_Pln& gplan, gp_Trsf& locat, const Standard_Boolean first);
102
103
104 Standard_Real TheULength;
105
106
107};
108
109
110
111
112
113
114
115#endif // _IGESToBRep_TopoSurface_HeaderFile