mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
10
src/GeomToIGES/FILES
Normal file
10
src/GeomToIGES/FILES
Normal file
@@ -0,0 +1,10 @@
|
||||
GeomToIGES_GeomCurve.cxx
|
||||
GeomToIGES_GeomCurve.hxx
|
||||
GeomToIGES_GeomEntity.cxx
|
||||
GeomToIGES_GeomEntity.hxx
|
||||
GeomToIGES_GeomPoint.cxx
|
||||
GeomToIGES_GeomPoint.hxx
|
||||
GeomToIGES_GeomSurface.cxx
|
||||
GeomToIGES_GeomSurface.hxx
|
||||
GeomToIGES_GeomVector.cxx
|
||||
GeomToIGES_GeomVector.hxx
|
@@ -1,36 +0,0 @@
|
||||
-- Created on: 1994-11-16
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- 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.
|
||||
|
||||
package GeomToIGES
|
||||
|
||||
--- Purpose: Creation des entites geometriques de IGES
|
||||
-- a partir des entites de Geom .
|
||||
|
||||
uses Interface, IGESData, IGESBasic, IGESConvGeom, IGESGeom, IGESSolid, IGESToBRep,
|
||||
gp, Geom, Geom2d, GeomConvert, GeomLProp, TColStd, TopoDS, TopTools,
|
||||
Transfer, TransferBRep, BRep, TCollection, ElCLib
|
||||
|
||||
is
|
||||
|
||||
-- classes du package
|
||||
|
||||
class GeomCurve;
|
||||
class GeomEntity;
|
||||
class GeomPoint;
|
||||
class GeomSurface;
|
||||
class GeomVector;
|
||||
|
||||
end GeomToIGES;
|
@@ -1,152 +0,0 @@
|
||||
-- Created on: 1994-11-17
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- 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.
|
||||
|
||||
class GeomCurve from GeomToIGES inherits GeomEntity from GeomToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Curve Entity from Geom
|
||||
-- To IGES. These can be :
|
||||
-- Curve
|
||||
-- . BoundedCurve
|
||||
-- * BSplineCurve
|
||||
-- * BezierCurve
|
||||
-- * TrimmedCurve
|
||||
-- . Conic
|
||||
-- * Circle
|
||||
-- * Ellipse
|
||||
-- * Hyperbloa
|
||||
-- * Line
|
||||
-- * Parabola
|
||||
-- . OffsetCurve
|
||||
|
||||
|
||||
uses
|
||||
|
||||
Curve from Geom,
|
||||
BoundedCurve from Geom,
|
||||
BSplineCurve from Geom,
|
||||
BezierCurve from Geom,
|
||||
TrimmedCurve from Geom,
|
||||
Conic from Geom,
|
||||
Circle from Geom,
|
||||
Ellipse from Geom,
|
||||
Hyperbola from Geom,
|
||||
Line from Geom,
|
||||
Parabola from Geom,
|
||||
OffsetCurve from Geom,
|
||||
IGESEntity from IGESData,
|
||||
GeomEntity from GeomToIGES
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create returns GeomCurve from GeomToIGES;
|
||||
|
||||
|
||||
Create(GE : GeomEntity from GeomToIGES)
|
||||
returns GeomCurve from GeomToIGES;
|
||||
---Purpose : Creates a tool GeomCurve ready to run and sets its
|
||||
-- fields as GE's.
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Curve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
---Purpose : Transfert a GeometryEntity which answer True to the
|
||||
-- member : BRepToIGES::IsGeomCurve(Geometry). If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : BoundedCurve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : BSplineCurve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : BezierCurve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : TrimmedCurve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Conic from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Circle from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Ellipse from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Hyperbola from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Line from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : Parabola from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCurve (me : in out;
|
||||
start : OffsetCurve from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
end GeomCurve;
|
||||
|
||||
|
@@ -21,26 +21,23 @@
|
||||
//:l5 abv 14.01.99: CTS22022-1: protection against exceptions in Segment()
|
||||
//:q3 abv 17.03.99: PRO17828: using GeomConvert_ApproxCurve for converting circle to bspline
|
||||
|
||||
#include <GeomToIGES_GeomCurve.ixx>
|
||||
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <BSplCLib.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_BoundedCurve.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <Geom_Conic.hxx>
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_Conic.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Ellipse.hxx>
|
||||
#include <Geom_Hyperbola.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
#include <Geom_Parabola.hxx>
|
||||
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomConvert.hxx>
|
||||
|
||||
#include <GeomConvert_ApproxCurve.hxx>
|
||||
#include <GeomToIGES_GeomCurve.hxx>
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <gp.hxx>
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <gp_Ax3.hxx>
|
||||
@@ -56,12 +53,9 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <IGESConvGeom_GeomBuilder.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ToolLocation.hxx>
|
||||
|
||||
#include <IGESGeom_BSplineCurve.hxx>
|
||||
#include <IGESGeom_CircularArc.hxx>
|
||||
#include <IGESGeom_CompositeCurve.hxx>
|
||||
@@ -69,34 +63,27 @@
|
||||
#include <IGESGeom_CopiousData.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_Line.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
#include <IGESGeom_OffsetCurve.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <Precision.hxx>
|
||||
|
||||
#include <TColgp_HArray1OfXYZ.hxx>
|
||||
#include <ShapeCustom_BSplineRestriction.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
|
||||
#include <TColgp_HArray1OfXYZ.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <BSplCLib.hxx>
|
||||
#include <GeomConvert_ApproxCurve.hxx>
|
||||
|
||||
#include <ShapeCustom_BSplineRestriction.hxx>
|
||||
|
||||
// Pour toutes les courbes infinies soit
|
||||
// Udeb <= -Precision::Infinite() et/ou Ufin >= Precision::Infinite()
|
||||
// on choisit arbitrairement de les construire entre
|
||||
// Udeb = -Precision::Infinite() et Ufin = Precision::Infinite()
|
||||
|
||||
//=============================================================================
|
||||
// GeomToIGES_GeomCurve
|
||||
//=============================================================================
|
||||
|
||||
GeomToIGES_GeomCurve::GeomToIGES_GeomCurve()
|
||||
:GeomToIGES_GeomEntity()
|
||||
{
|
||||
|
119
src/GeomToIGES/GeomToIGES_GeomCurve.hxx
Normal file
119
src/GeomToIGES/GeomToIGES_GeomCurve.hxx
Normal file
@@ -0,0 +1,119 @@
|
||||
// Created on: 1994-11-17
|
||||
// Created by: Marie Jose MARTZ
|
||||
// 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 _GeomToIGES_GeomCurve_HeaderFile
|
||||
#define _GeomToIGES_GeomCurve_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
class GeomToIGES_GeomEntity;
|
||||
class IGESData_IGESEntity;
|
||||
class Geom_Curve;
|
||||
class Geom_BoundedCurve;
|
||||
class Geom_BSplineCurve;
|
||||
class Geom_BezierCurve;
|
||||
class Geom_TrimmedCurve;
|
||||
class Geom_Conic;
|
||||
class Geom_Circle;
|
||||
class Geom_Ellipse;
|
||||
class Geom_Hyperbola;
|
||||
class Geom_Line;
|
||||
class Geom_Parabola;
|
||||
class Geom_OffsetCurve;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Curve Entity from Geom
|
||||
//! To IGES. These can be :
|
||||
//! Curve
|
||||
//! . BoundedCurve
|
||||
//! * BSplineCurve
|
||||
//! * BezierCurve
|
||||
//! * TrimmedCurve
|
||||
//! . Conic
|
||||
//! * Circle
|
||||
//! * Ellipse
|
||||
//! * Hyperbloa
|
||||
//! * Line
|
||||
//! * Parabola
|
||||
//! . OffsetCurve
|
||||
class GeomToIGES_GeomCurve : public GeomToIGES_GeomEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT GeomToIGES_GeomCurve();
|
||||
|
||||
//! Creates a tool GeomCurve ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT GeomToIGES_GeomCurve(const GeomToIGES_GeomEntity& GE);
|
||||
|
||||
//! Transfert a GeometryEntity which answer True to the
|
||||
//! member : BRepToIGES::IsGeomCurve(Geometry). If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Curve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BoundedCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BSplineCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BezierCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_TrimmedCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Conic)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Circle)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Ellipse)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Hyperbola)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Line)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Parabola)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_OffsetCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomToIGES_GeomCurve_HeaderFile
|
@@ -1,61 +0,0 @@
|
||||
-- Created on: 1995-09-13
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- Copyright (c) 1995-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.
|
||||
|
||||
class GeomEntity from GeomToIGES
|
||||
|
||||
|
||||
---Purpose : provides methods to transfer Geom entity from CASCADE to IGES.
|
||||
|
||||
uses
|
||||
|
||||
Real from Standard,
|
||||
IGESEntity from IGESData,
|
||||
IGESModel from IGESData
|
||||
|
||||
is
|
||||
|
||||
Create
|
||||
returns GeomEntity from GeomToIGES;
|
||||
---Purpose : Creates a tool GeomEntity
|
||||
|
||||
Create(GE : GeomEntity from GeomToIGES)
|
||||
returns GeomEntity from GeomToIGES;
|
||||
---Purpose : Creates a tool ready to run and sets its
|
||||
-- fields as GE's.
|
||||
|
||||
SetModel(me : in out; model : IGESModel from IGESData);
|
||||
---Purpose : Set the value of "TheModel"
|
||||
|
||||
GetModel(me)
|
||||
returns IGESModel from IGESData;
|
||||
---Purpose : Returns the value of "TheModel"
|
||||
|
||||
SetUnit(me: in out; unit: Real);
|
||||
---Purpose : Sets the value of the UnitFlag
|
||||
|
||||
GetUnit(me)
|
||||
returns Real from Standard;
|
||||
---Purpose : Returns the value of the UnitFlag of the header of the model
|
||||
-- in meters.
|
||||
|
||||
fields
|
||||
|
||||
TheModel : IGESModel from IGESData ;
|
||||
|
||||
TheUnitFactor : Real from Standard;
|
||||
|
||||
end GeomEntity;
|
||||
|
@@ -16,17 +16,13 @@
|
||||
|
||||
//rln 06.01.98 new method SetUnit
|
||||
|
||||
|
||||
#include <GeomToIGES_GeomEntity.ixx>
|
||||
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : GeomToIGES_GeomEntity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
GeomToIGES_GeomEntity::GeomToIGES_GeomEntity()
|
||||
{
|
||||
}
|
||||
|
81
src/GeomToIGES/GeomToIGES_GeomEntity.hxx
Normal file
81
src/GeomToIGES/GeomToIGES_GeomEntity.hxx
Normal file
@@ -0,0 +1,81 @@
|
||||
// Created on: 1995-09-13
|
||||
// Created by: Marie Jose MARTZ
|
||||
// Copyright (c) 1995-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 _GeomToIGES_GeomEntity_HeaderFile
|
||||
#define _GeomToIGES_GeomEntity_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
class IGESData_IGESModel;
|
||||
|
||||
|
||||
//! provides methods to transfer Geom entity from CASCADE to IGES.
|
||||
class GeomToIGES_GeomEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Creates a tool GeomEntity
|
||||
Standard_EXPORT GeomToIGES_GeomEntity();
|
||||
|
||||
//! Creates a tool ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT GeomToIGES_GeomEntity(const GeomToIGES_GeomEntity& GE);
|
||||
|
||||
//! Set the value of "TheModel"
|
||||
Standard_EXPORT void SetModel (const Handle(IGESData_IGESModel)& model);
|
||||
|
||||
//! Returns the value of "TheModel"
|
||||
Standard_EXPORT Handle(IGESData_IGESModel) GetModel() const;
|
||||
|
||||
//! Sets the value of the UnitFlag
|
||||
Standard_EXPORT void SetUnit (const Standard_Real unit);
|
||||
|
||||
//! Returns the value of the UnitFlag of the header of the model
|
||||
//! in meters.
|
||||
Standard_EXPORT Standard_Real GetUnit() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Handle(IGESData_IGESModel) TheModel;
|
||||
Standard_Real TheUnitFactor;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomToIGES_GeomEntity_HeaderFile
|
@@ -1,57 +0,0 @@
|
||||
-- Created on: 1994-11-16
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- 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.
|
||||
|
||||
class GeomPoint from GeomToIGES inherits GeomEntity from GeomToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Point Entity from Geom
|
||||
-- to IGES . These are :
|
||||
-- . Point
|
||||
-- * CartesianPoint
|
||||
|
||||
|
||||
uses
|
||||
|
||||
Point from Geom,
|
||||
CartesianPoint from Geom,
|
||||
Point from IGESGeom,
|
||||
GeomEntity from GeomToIGES
|
||||
|
||||
is
|
||||
|
||||
Create returns GeomPoint from GeomToIGES;
|
||||
|
||||
|
||||
Create(GE : GeomEntity from GeomToIGES)
|
||||
returns GeomPoint from GeomToIGES;
|
||||
---Purpose : Creates a tool GeomPoint ready to run and sets its
|
||||
-- fields as GE's.
|
||||
|
||||
TransferPoint (me : in out;
|
||||
start : Point from Geom)
|
||||
returns Point from IGESGeom;
|
||||
---Purpose : Transfert a Point from Geom to IGES. If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
TransferPoint (me : in out;
|
||||
start : CartesianPoint from Geom)
|
||||
returns Point from IGESGeom;
|
||||
---Purpose : Transfert a CartesianPoint from Geom to IGES. If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
|
||||
end GeomPoint;
|
||||
|
||||
|
@@ -15,22 +15,18 @@
|
||||
// prise en compte de l'unite choisi par l'utilisateur
|
||||
// pour l'ecriture du fichier IGES.
|
||||
|
||||
#include <GeomToIGES_GeomPoint.ixx>
|
||||
|
||||
#include <Geom_CartesianPoint.hxx>
|
||||
#include <Geom_Point.hxx>
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <GeomToIGES_GeomPoint.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <Geom_Point.hxx>
|
||||
|
||||
#include <IGESGeom_Point.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// GeomToIGES_GeomPoint
|
||||
//=============================================================================
|
||||
|
||||
GeomToIGES_GeomPoint::GeomToIGES_GeomPoint
|
||||
(const GeomToIGES_GeomEntity& GE)
|
||||
:GeomToIGES_GeomEntity(GE)
|
||||
|
79
src/GeomToIGES/GeomToIGES_GeomPoint.hxx
Normal file
79
src/GeomToIGES/GeomToIGES_GeomPoint.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 1994-11-16
|
||||
// Created by: Marie Jose MARTZ
|
||||
// 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 _GeomToIGES_GeomPoint_HeaderFile
|
||||
#define _GeomToIGES_GeomPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
class GeomToIGES_GeomEntity;
|
||||
class IGESGeom_Point;
|
||||
class Geom_Point;
|
||||
class Geom_CartesianPoint;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Point Entity from Geom
|
||||
//! to IGES . These are :
|
||||
//! . Point
|
||||
//! * CartesianPoint
|
||||
class GeomToIGES_GeomPoint : public GeomToIGES_GeomEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT GeomToIGES_GeomPoint();
|
||||
|
||||
//! Creates a tool GeomPoint ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT GeomToIGES_GeomPoint(const GeomToIGES_GeomEntity& GE);
|
||||
|
||||
//! Transfert a Point from Geom to IGES. If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESGeom_Point) TransferPoint (const Handle(Geom_Point)& start);
|
||||
|
||||
//! Transfert a CartesianPoint from Geom to IGES. If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESGeom_Point) TransferPoint (const Handle(Geom_CartesianPoint)& start);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomToIGES_GeomPoint_HeaderFile
|
@@ -1,276 +0,0 @@
|
||||
-- Created on: 1994-11-17
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- 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.
|
||||
|
||||
class GeomSurface from GeomToIGES inherits GeomEntity from GeomToIGES
|
||||
|
||||
|
||||
---Purpose: This class implements the transfer of the Surface Entity from Geom
|
||||
-- To IGES. These can be :
|
||||
-- . BoundedSurface
|
||||
-- * BSplineSurface
|
||||
-- * BezierSurface
|
||||
-- * RectangularTrimmedSurface
|
||||
-- . ElementarySurface
|
||||
-- * Plane
|
||||
-- * CylindricalSurface
|
||||
-- * ConicalSurface
|
||||
-- * SphericalSurface
|
||||
-- * ToroidalSurface
|
||||
-- . SweptSurface
|
||||
-- * SurfaceOfLinearExtrusion
|
||||
-- * SurfaceOfRevolution
|
||||
-- . OffsetSurface
|
||||
|
||||
|
||||
uses
|
||||
|
||||
Real from Standard,
|
||||
Surface from Geom,
|
||||
BoundedSurface from Geom,
|
||||
BSplineSurface from Geom,
|
||||
BezierSurface from Geom,
|
||||
RectangularTrimmedSurface from Geom,
|
||||
ElementarySurface from Geom,
|
||||
Plane from Geom,
|
||||
CylindricalSurface from Geom,
|
||||
ConicalSurface from Geom,
|
||||
SphericalSurface from Geom,
|
||||
ToroidalSurface from Geom,
|
||||
SweptSurface from Geom,
|
||||
SurfaceOfLinearExtrusion from Geom,
|
||||
SurfaceOfRevolution from Geom,
|
||||
OffsetSurface from Geom,
|
||||
IGESEntity from IGESData,
|
||||
GeomEntity from GeomToIGES
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create returns GeomSurface from GeomToIGES;
|
||||
|
||||
|
||||
Create(GE : GeomEntity from GeomToIGES)
|
||||
returns GeomSurface from GeomToIGES;
|
||||
---Purpose: Creates a tool GeomSurface ready to run and sets its
|
||||
-- fields as GE's.
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : Surface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
---Purpose: Transfert a GeometryEntity which answer True to the
|
||||
-- member : BRepToIGES::IsGeomSurface(Geometry). If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : BoundedSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : BSplineSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : BezierSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : RectangularTrimmedSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : ElementarySurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : Plane from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : CylindricalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : ConicalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : SphericalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : ToroidalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : SweptSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : SurfaceOfLinearExtrusion from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : SurfaceOfRevolution from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSurface (me : in out;
|
||||
start : OffsetSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
-- Methods for translating sufraces in BRep IGES
|
||||
|
||||
|
||||
TransferPlaneSurface (me : in out;
|
||||
start : Plane from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferCylindricalSurface(me : in out;
|
||||
start: CylindricalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferConicalSurface(me : in out;
|
||||
start: ConicalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferSphericalSurface(me : in out;
|
||||
start: SphericalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
|
||||
TransferToroidalSurface(me : in out;
|
||||
start: ToroidalSurface from Geom;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard;
|
||||
Vdeb : Real from Standard;
|
||||
Vfin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
|
||||
-- Methods for setting and obtaining fields.
|
||||
|
||||
Length(me) returns Real;
|
||||
---Purpose: Returns the value of "TheLength"
|
||||
|
||||
GetBRepMode(me) returns Boolean from Standard;
|
||||
---Purpose: Returns Brep mode flag.
|
||||
|
||||
SetBRepMode(me: in out; flag: Boolean from Standard);
|
||||
---Purpose: Sets BRep mode flag.
|
||||
|
||||
GetAnalyticMode(me) returns Boolean from Standard;
|
||||
---Purpose: Returns flag for writing elementary surfaces
|
||||
|
||||
SetAnalyticMode(me: in out; flag: Boolean from Standard);
|
||||
---Purpose: Setst flag for writing elementary surfaces
|
||||
|
||||
fields
|
||||
|
||||
TheLength : Real from Standard;
|
||||
myBRepMode: Boolean from Standard;
|
||||
myAnalytic: Boolean from Standard;
|
||||
|
||||
end GeomSurface;
|
@@ -18,21 +18,17 @@
|
||||
//S4181 pdn 20.04.99 implementing of writing IGES elementary surfaces.
|
||||
//szv#10:PRO19566:05Oct99 workaround against weights array loss
|
||||
|
||||
#include <GeomToIGES_GeomSurface.ixx>
|
||||
#include <GeomToIGES_GeomCurve.hxx>
|
||||
#include <GeomToIGES_GeomPoint.hxx>
|
||||
#include <GeomToIGES_GeomVector.hxx>
|
||||
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <gce_MakeLin.hxx>
|
||||
#include <Geom_BezierSurface.hxx>
|
||||
#include <Geom_BoundedSurface.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <Geom_CartesianPoint.hxx>
|
||||
#include <Geom_ConicalSurface.hxx>
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_ConicalSurface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_CylindricalSurface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Direction.hxx>
|
||||
#include <Geom_ElementarySurface.hxx>
|
||||
#include <Geom_Geometry.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_OffsetSurface.hxx>
|
||||
@@ -45,35 +41,14 @@
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_SweptSurface.hxx>
|
||||
#include <Geom_ToroidalSurface.hxx>
|
||||
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomConvert.hxx>
|
||||
|
||||
#include <GeomLProp_SLProps.hxx>
|
||||
|
||||
#include <IGESConvGeom_GeomBuilder.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_BSplineSurface.hxx>
|
||||
#include <IGESGeom_CircularArc.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_Direction.hxx>
|
||||
#include <IGESGeom_Line.hxx>
|
||||
#include <IGESGeom_OffsetSurface.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
#include <IGESGeom_RuledSurface.hxx>
|
||||
#include <IGESGeom_SurfaceOfRevolution.hxx>
|
||||
#include <IGESGeom_TabulatedCylinder.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
|
||||
#include <IGESSolid_PlaneSurface.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <gce_MakeLin.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomCurve.hxx>
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <GeomToIGES_GeomPoint.hxx>
|
||||
#include <GeomToIGES_GeomSurface.hxx>
|
||||
#include <GeomToIGES_GeomVector.hxx>
|
||||
#include <gp.hxx>
|
||||
#include <gp_Ax1.hxx>
|
||||
#include <gp_Ax3.hxx>
|
||||
@@ -87,28 +62,39 @@
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <IGESConvGeom_GeomBuilder.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_BSplineSurface.hxx>
|
||||
#include <IGESGeom_CircularArc.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_Direction.hxx>
|
||||
#include <IGESGeom_Line.hxx>
|
||||
#include <IGESGeom_OffsetSurface.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
#include <IGESGeom_RuledSurface.hxx>
|
||||
#include <IGESGeom_SurfaceOfRevolution.hxx>
|
||||
#include <IGESGeom_TabulatedCylinder.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
#include <IGESSolid_ConicalSurface.hxx>
|
||||
#include <IGESSolid_CylindricalSurface.hxx>
|
||||
#include <IGESSolid_PlaneSurface.hxx>
|
||||
#include <IGESSolid_SphericalSurface.hxx>
|
||||
#include <IGESSolid_ToroidalSurface.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
#include <Precision.hxx>
|
||||
|
||||
#include <ShapeAnalysis.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <TColgp_HArray2OfXYZ.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <TColStd_HArray2OfReal.hxx>
|
||||
#include <IGESSolid_CylindricalSurface.hxx>
|
||||
#include <IGESSolid_ConicalSurface.hxx>
|
||||
#include <IGESSolid_SphericalSurface.hxx>
|
||||
#include <IGESSolid_ToroidalSurface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Geom_ElementarySurface.hxx>
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// GeomToIGES_GeomSurface
|
||||
//=============================================================================
|
||||
|
||||
GeomToIGES_GeomSurface::GeomToIGES_GeomSurface()
|
||||
:GeomToIGES_GeomEntity()
|
||||
{
|
||||
|
159
src/GeomToIGES/GeomToIGES_GeomSurface.hxx
Normal file
159
src/GeomToIGES/GeomToIGES_GeomSurface.hxx
Normal file
@@ -0,0 +1,159 @@
|
||||
// Created on: 1994-11-17
|
||||
// Created by: Marie Jose MARTZ
|
||||
// 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 _GeomToIGES_GeomSurface_HeaderFile
|
||||
#define _GeomToIGES_GeomSurface_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
class GeomToIGES_GeomEntity;
|
||||
class IGESData_IGESEntity;
|
||||
class Geom_Surface;
|
||||
class Geom_BoundedSurface;
|
||||
class Geom_BSplineSurface;
|
||||
class Geom_BezierSurface;
|
||||
class Geom_RectangularTrimmedSurface;
|
||||
class Geom_ElementarySurface;
|
||||
class Geom_Plane;
|
||||
class Geom_CylindricalSurface;
|
||||
class Geom_ConicalSurface;
|
||||
class Geom_SphericalSurface;
|
||||
class Geom_ToroidalSurface;
|
||||
class Geom_SweptSurface;
|
||||
class Geom_SurfaceOfLinearExtrusion;
|
||||
class Geom_SurfaceOfRevolution;
|
||||
class Geom_OffsetSurface;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Surface Entity from Geom
|
||||
//! To IGES. These can be :
|
||||
//! . BoundedSurface
|
||||
//! * BSplineSurface
|
||||
//! * BezierSurface
|
||||
//! * RectangularTrimmedSurface
|
||||
//! . ElementarySurface
|
||||
//! * Plane
|
||||
//! * CylindricalSurface
|
||||
//! * ConicalSurface
|
||||
//! * SphericalSurface
|
||||
//! * ToroidalSurface
|
||||
//! . SweptSurface
|
||||
//! * SurfaceOfLinearExtrusion
|
||||
//! * SurfaceOfRevolution
|
||||
//! . OffsetSurface
|
||||
class GeomToIGES_GeomSurface : public GeomToIGES_GeomEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT GeomToIGES_GeomSurface();
|
||||
|
||||
//! Creates a tool GeomSurface ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT GeomToIGES_GeomSurface(const GeomToIGES_GeomEntity& GE);
|
||||
|
||||
//! Transfert a GeometryEntity which answer True to the
|
||||
//! member : BRepToIGES::IsGeomSurface(Geometry). If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_Surface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BoundedSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BSplineSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_BezierSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_RectangularTrimmedSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ElementarySurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_Plane)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_CylindricalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ConicalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SphericalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_ToroidalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SweptSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SurfaceOfLinearExtrusion)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_SurfaceOfRevolution)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSurface (const Handle(Geom_OffsetSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferPlaneSurface (const Handle(Geom_Plane)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferCylindricalSurface (const Handle(Geom_CylindricalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferConicalSurface (const Handle(Geom_ConicalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferSphericalSurface (const Handle(Geom_SphericalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) TransferToroidalSurface (const Handle(Geom_ToroidalSurface)& start, const Standard_Real Udeb, const Standard_Real Ufin, const Standard_Real Vdeb, const Standard_Real Vfin);
|
||||
|
||||
//! Returns the value of "TheLength"
|
||||
Standard_EXPORT Standard_Real Length() const;
|
||||
|
||||
//! Returns Brep mode flag.
|
||||
Standard_EXPORT Standard_Boolean GetBRepMode() const;
|
||||
|
||||
//! Sets BRep mode flag.
|
||||
Standard_EXPORT void SetBRepMode (const Standard_Boolean flag);
|
||||
|
||||
//! Returns flag for writing elementary surfaces
|
||||
Standard_EXPORT Standard_Boolean GetAnalyticMode() const;
|
||||
|
||||
//! Setst flag for writing elementary surfaces
|
||||
Standard_EXPORT void SetAnalyticMode (const Standard_Boolean flag);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Real TheLength;
|
||||
Standard_Boolean myBRepMode;
|
||||
Standard_Boolean myAnalytic;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomToIGES_GeomSurface_HeaderFile
|
@@ -1,63 +0,0 @@
|
||||
-- Created on: 1994-11-18
|
||||
-- Created by: Marie Jose MARTZ
|
||||
-- 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.
|
||||
|
||||
class GeomVector from GeomToIGES inherits GeomEntity from GeomToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Vector from Geom
|
||||
-- to IGES . These can be :
|
||||
-- . Vector
|
||||
-- * Direction
|
||||
-- * VectorWithMagnitude
|
||||
|
||||
uses
|
||||
|
||||
Vector from Geom,
|
||||
VectorWithMagnitude from Geom,
|
||||
Direction from Geom,
|
||||
Direction from IGESGeom,
|
||||
GeomEntity from GeomToIGES
|
||||
|
||||
is
|
||||
|
||||
Create returns GeomVector from GeomToIGES;
|
||||
|
||||
|
||||
Create(GE : GeomEntity from GeomToIGES)
|
||||
returns GeomVector from GeomToIGES;
|
||||
---Purpose : Creates a tool GeomVector ready to run and sets its
|
||||
-- fields as GE's.
|
||||
|
||||
TransferVector (me : in out;
|
||||
start : Vector from Geom)
|
||||
returns Direction from IGESGeom;
|
||||
---Purpose : Transfert a GeometryEntity which answer True to the
|
||||
-- member : BRepToIGES::IsGeomVector(Geometry). If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
|
||||
TransferVector (me : in out;
|
||||
start : VectorWithMagnitude from Geom)
|
||||
returns Direction from IGESGeom;
|
||||
|
||||
|
||||
TransferVector (me : in out;
|
||||
start : Direction from Geom)
|
||||
returns Direction from IGESGeom;
|
||||
|
||||
|
||||
end GeomVector;
|
||||
|
||||
|
@@ -15,33 +15,27 @@
|
||||
// prise en compte de l'unite choisi par l'utilisateur
|
||||
// pour l'ecriture du fichier IGES.
|
||||
|
||||
#include <GeomToIGES_GeomVector.ixx>
|
||||
|
||||
#include <Geom_Direction.hxx>
|
||||
#include <Geom_Vector.hxx>
|
||||
#include <Geom_VectorWithMagnitude.hxx>
|
||||
#include <Geom_Direction.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
#include <GeomToIGES_GeomVector.hxx>
|
||||
#include <gp_Dir.hxx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ToolLocation.hxx>
|
||||
|
||||
#include <IGESGeom_CopiousData.hxx>
|
||||
#include <IGESGeom_Direction.hxx>
|
||||
#include <IGESGeom_Line.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// GeomToIGES_GeomVector
|
||||
//=============================================================================
|
||||
|
||||
GeomToIGES_GeomVector::GeomToIGES_GeomVector()
|
||||
:GeomToIGES_GeomEntity()
|
||||
{
|
||||
|
82
src/GeomToIGES/GeomToIGES_GeomVector.hxx
Normal file
82
src/GeomToIGES/GeomToIGES_GeomVector.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1994-11-18
|
||||
// Created by: Marie Jose MARTZ
|
||||
// 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 _GeomToIGES_GeomVector_HeaderFile
|
||||
#define _GeomToIGES_GeomVector_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomEntity.hxx>
|
||||
class GeomToIGES_GeomEntity;
|
||||
class IGESGeom_Direction;
|
||||
class Geom_Vector;
|
||||
class Geom_VectorWithMagnitude;
|
||||
class Geom_Direction;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Vector from Geom
|
||||
//! to IGES . These can be :
|
||||
//! . Vector
|
||||
//! * Direction
|
||||
//! * VectorWithMagnitude
|
||||
class GeomToIGES_GeomVector : public GeomToIGES_GeomEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT GeomToIGES_GeomVector();
|
||||
|
||||
//! Creates a tool GeomVector ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT GeomToIGES_GeomVector(const GeomToIGES_GeomEntity& GE);
|
||||
|
||||
//! Transfert a GeometryEntity which answer True to the
|
||||
//! member : BRepToIGES::IsGeomVector(Geometry). If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESGeom_Direction) TransferVector (const Handle(Geom_Vector)& start);
|
||||
|
||||
Standard_EXPORT Handle(IGESGeom_Direction) TransferVector (const Handle(Geom_VectorWithMagnitude)& start);
|
||||
|
||||
Standard_EXPORT Handle(IGESGeom_Direction) TransferVector (const Handle(Geom_Direction)& start);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomToIGES_GeomVector_HeaderFile
|
Reference in New Issue
Block a user