Loading files
3d097a032This file is pinned to the selected release. Download the original to open it in your design tool.
// Created on: 1994-03-14
// Created by: s: Christophe GUYOT & Frederic UNTEREINER
// Copyright (c) 1994-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _IGESToBRep_BasicCurve_HeaderFile
#define _IGESToBRep_BasicCurve_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <IGESToBRep_CurveAndSurface.hxx>
class Geom_Curve;
class IGESData_IGESEntity;
class Geom2d_Curve;
class IGESGeom_BSplineCurve;
class IGESGeom_CircularArc;
class IGESGeom_ConicArc;
class Geom_BSplineCurve;
class IGESGeom_CopiousData;
class Geom2d_BSplineCurve;
class IGESGeom_Line;
class IGESGeom_SplineCurve;
class Geom_Transformation;
class IGESGeom_TransformationMatrix;
//! Provides methods to transfer basic geometric curves entities
//! from IGES to CASCADE.
//! These can be:
//! * Circular arc
//! * Conic arc
//! * Spline curve
//! * BSpline curve
//! * Line
//! * Copious data
//! * Point
//! * Transformation matrix
class IGESToBRep_BasicCurve : public IGESToBRep_CurveAndSurface
{
public:
DEFINE_STANDARD_ALLOC
//! Creates a tool BasicCurve ready to run, with
//! epsilons set to 1.E-04, TheModeTopo to True, the
//! optimization of the continuity to False.
Standard_EXPORT IGESToBRep_BasicCurve();
//! Creates a tool BasicCurve ready to run and sets its
//! fields as CS's.
Standard_EXPORT IGESToBRep_BasicCurve(const IGESToBRep_CurveAndSurface& CS);
//! Creates a tool BasicCurve ready to run.
Standard_EXPORT IGESToBRep_BasicCurve(const double eps,
const double epsGeom,
const double epsCoeff,
const bool mode,
const bool modeapprox,
const bool optimized);
//! Transfer a IGESEntity which answer True to the
//! member : IGESToBRep::IsBasicCurve(IGESEntity). If this
//! Entity could not be converted, this member returns a NullEntity.
Standard_EXPORT occ::handle<Geom_Curve> TransferBasicCurve(
const occ::handle<IGESData_IGESEntity>& start);
//! Transfert a IGESEntity which answer True to the
//! member : IGESToBRep::IsBasicCurve(IGESEntity).
//! The IGESEntity must be a curve UV and its associed TRSF must
//! be planar. If this Entity could not be converted, this member
//! returns a NullEntity.
Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dBasicCurve(
const occ::handle<IGESData_IGESEntity>& start);
Standard_EXPORT occ::handle<Geom_Curve> TransferBSplineCurve(
const occ::handle<IGESGeom_BSplineCurve>& start);
Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dBSplineCurve(
const occ::handle<IGESGeom_BSplineCurve>& start);
Standard_EXPORT occ::handle<Geom_Curve> TransferCircularArc(
const occ::handle<IGESGeom_CircularArc>& start);
Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dCircularArc(
const occ::handle<IGESGeom_CircularArc>& start);
Standard_EXPORT occ::handle<Geom_Curve> TransferConicArc(
const occ::handle<IGESGeom_ConicArc>& start);
Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dConicArc(
const occ::handle<IGESGeom_ConicArc>& start);
Standard_EXPORT occ::handle<Geom_BSplineCurve> TransferCopiousData(
const occ::handle<IGESGeom_CopiousData>& start);
Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Transfer2dCopiousData(
const occ::handle<IGESGeom_CopiousData>& start);
Standard_EXPORT occ::handle<Geom_Curve> TransferLine(const occ::handle<IGESGeom_Line>& start);
Standard_EXPORT occ::handle<Geom2d_Curve> Transfer2dLine(const occ::handle<IGESGeom_Line>& start);
Standard_EXPORT occ::handle<Geom_BSplineCurve> TransferSplineCurve(
const occ::handle<IGESGeom_SplineCurve>& start);
Standard_EXPORT occ::handle<Geom2d_BSplineCurve> Transfer2dSplineCurve(
const occ::handle<IGESGeom_SplineCurve>& start);
Standard_EXPORT occ::handle<Geom_Transformation> TransferTransformation(
const occ::handle<IGESGeom_TransformationMatrix>& start);
};
#endif // _IGESToBRep_BasicCurve_HeaderFile