mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
8
src/Geom2dToIGES/FILES
Normal file
8
src/Geom2dToIGES/FILES
Normal file
@@ -0,0 +1,8 @@
|
||||
Geom2dToIGES_Geom2dCurve.cxx
|
||||
Geom2dToIGES_Geom2dCurve.hxx
|
||||
Geom2dToIGES_Geom2dEntity.cxx
|
||||
Geom2dToIGES_Geom2dEntity.hxx
|
||||
Geom2dToIGES_Geom2dPoint.cxx
|
||||
Geom2dToIGES_Geom2dPoint.hxx
|
||||
Geom2dToIGES_Geom2dVector.cxx
|
||||
Geom2dToIGES_Geom2dVector.hxx
|
@@ -1,36 +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.
|
||||
|
||||
package Geom2dToIGES
|
||||
|
||||
--- Purpose: Creation des entites geometriques de IGES
|
||||
-- a partir des entites de Geom2d.
|
||||
|
||||
uses Interface, IGESData, IGESBasic, IGESConvGeom, IGESGeom, IGESSolid, IGESToBRep,
|
||||
gp, Geom, Geom2d, GeomLProp, TColStd, TopoDS, TopTools,
|
||||
Transfer, TransferBRep, BRep, TCollection, ElCLib
|
||||
|
||||
is
|
||||
|
||||
-- classes du package
|
||||
|
||||
class Geom2dCurve;
|
||||
class Geom2dEntity;
|
||||
class Geom2dPoint;
|
||||
class Geom2dVector;
|
||||
|
||||
|
||||
end Geom2dToIGES;
|
@@ -1,73 +0,0 @@
|
||||
-- Created on: 1995-02-01
|
||||
-- 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 Geom2dCurve from Geom2dToIGES inherits Geom2dEntity from Geom2dToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Curve Entity from Geom2d
|
||||
-- To IGES. These can be :
|
||||
-- Curve
|
||||
-- . BoundedCurve
|
||||
-- * BSplineCurve
|
||||
-- * BezierCurve
|
||||
-- * TrimmedCurve
|
||||
-- . Conic
|
||||
-- * Circle
|
||||
-- * Ellipse
|
||||
-- * Hyperbloa
|
||||
-- * Line
|
||||
-- * Parabola
|
||||
-- . OffsetCurve
|
||||
|
||||
|
||||
uses
|
||||
|
||||
Curve from Geom2d,
|
||||
BoundedCurve from Geom2d,
|
||||
BSplineCurve from Geom2d,
|
||||
BezierCurve from Geom2d,
|
||||
TrimmedCurve from Geom2d,
|
||||
Conic from Geom2d,
|
||||
Circle from Geom2d,
|
||||
Ellipse from Geom2d,
|
||||
Hyperbola from Geom2d,
|
||||
Line from Geom2d,
|
||||
Parabola from Geom2d,
|
||||
OffsetCurve from Geom2d,
|
||||
IGESEntity from IGESData,
|
||||
Geom2dEntity from Geom2dToIGES
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create returns Geom2dCurve from Geom2dToIGES;
|
||||
|
||||
|
||||
Create(G2dE : Geom2dEntity from Geom2dToIGES)
|
||||
returns Geom2dCurve from Geom2dToIGES;
|
||||
---Purpose : Creates a tool Geom2dCurve ready to run and sets its
|
||||
-- fields as G2dE's.
|
||||
|
||||
Transfer2dCurve (me : in out;
|
||||
start : Curve from Geom2d;
|
||||
Udeb : Real from Standard;
|
||||
Ufin : Real from Standard)
|
||||
returns IGESEntity from IGESData;
|
||||
---Purpose : Transfert an Entity from Geom2d to IGES. If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
end Geom2dCurve;
|
||||
|
||||
|
@@ -17,22 +17,21 @@
|
||||
//#53 rln 24.12.98 CCI60005
|
||||
//#57 rln 25.12.98 avoid code duplication
|
||||
|
||||
#include <Geom2dToIGES_Geom2dCurve.ixx>
|
||||
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_BoundedCurve.hxx>
|
||||
#include <Geom2d_BSplineCurve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom2d_Conic.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Conic.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_Ellipse.hxx>
|
||||
#include <Geom2d_Hyperbola.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <Geom2d_Parabola.hxx>
|
||||
|
||||
//#include <Geom2dConvert.hxx>
|
||||
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2dToIGES_Geom2dCurve.hxx>
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
#include <GeomAPI.hxx>
|
||||
#include <GeomToIGES_GeomCurve.hxx>
|
||||
#include <gp.hxx>
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <gp_Ax22d.hxx>
|
||||
@@ -45,13 +44,12 @@
|
||||
#include <gp_Hypr2d.hxx>
|
||||
#include <gp_Parab.hxx>
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ToolLocation.hxx>
|
||||
|
||||
#include <IGESGeom_BSplineCurve.hxx>
|
||||
#include <IGESGeom_CircularArc.hxx>
|
||||
#include <IGESGeom_CompositeCurve.hxx>
|
||||
@@ -59,23 +57,16 @@
|
||||
#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 <Precision.hxx>
|
||||
|
||||
#include <GeomToIGES_GeomCurve.hxx>
|
||||
#include <GeomAPI.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
|
||||
|
||||
//#include <Geom2dConvert.hxx>
|
||||
//=============================================================================
|
||||
// Geom2dToIGES_Geom2dCurve
|
||||
//=============================================================================
|
||||
|
||||
Geom2dToIGES_Geom2dCurve::Geom2dToIGES_Geom2dCurve()
|
||||
:Geom2dToIGES_Geom2dEntity()
|
||||
{
|
||||
|
85
src/Geom2dToIGES/Geom2dToIGES_Geom2dCurve.hxx
Normal file
85
src/Geom2dToIGES/Geom2dToIGES_Geom2dCurve.hxx
Normal file
@@ -0,0 +1,85 @@
|
||||
// Created on: 1995-02-01
|
||||
// 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 _Geom2dToIGES_Geom2dCurve_HeaderFile
|
||||
#define _Geom2dToIGES_Geom2dCurve_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
class Geom2dToIGES_Geom2dEntity;
|
||||
class IGESData_IGESEntity;
|
||||
class Geom2d_Curve;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Curve Entity from Geom2d
|
||||
//! To IGES. These can be :
|
||||
//! Curve
|
||||
//! . BoundedCurve
|
||||
//! * BSplineCurve
|
||||
//! * BezierCurve
|
||||
//! * TrimmedCurve
|
||||
//! . Conic
|
||||
//! * Circle
|
||||
//! * Ellipse
|
||||
//! * Hyperbloa
|
||||
//! * Line
|
||||
//! * Parabola
|
||||
//! . OffsetCurve
|
||||
class Geom2dToIGES_Geom2dCurve : public Geom2dToIGES_Geom2dEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dCurve();
|
||||
|
||||
//! Creates a tool Geom2dCurve ready to run and sets its
|
||||
//! fields as G2dE's.
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dCurve(const Geom2dToIGES_Geom2dEntity& G2dE);
|
||||
|
||||
//! Transfert an Entity from Geom2d to IGES. If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) Transfer2dCurve (const Handle(Geom2d_Curve)& start, const Standard_Real Udeb, const Standard_Real Ufin);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Geom2dToIGES_Geom2dCurve_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 Geom2dEntity from Geom2dToIGES
|
||||
|
||||
|
||||
---Purpose : provides methods to transfer Geom2d entity from CASCADE to IGES.
|
||||
|
||||
uses
|
||||
|
||||
Real from Standard,
|
||||
IGESEntity from IGESData,
|
||||
IGESModel from IGESData
|
||||
|
||||
is
|
||||
|
||||
Create
|
||||
returns Geom2dEntity from Geom2dToIGES;
|
||||
---Purpose : Creates a tool Geom2dEntity
|
||||
|
||||
Create(GE : Geom2dEntity from Geom2dToIGES)
|
||||
returns Geom2dEntity from Geom2dToIGES;
|
||||
---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 millimeters.
|
||||
|
||||
fields
|
||||
|
||||
TheModel : IGESModel from IGESData ;
|
||||
|
||||
TheUnitFactor : Real from Standard;
|
||||
|
||||
end Geom2dEntity;
|
||||
|
@@ -16,21 +16,16 @@
|
||||
|
||||
//rln 06.01.98 new method SetUnit
|
||||
|
||||
|
||||
#include <Geom2dToIGES_Geom2dEntity.ixx>
|
||||
|
||||
#include <Geom2dToIGES_Geom2dCurve.hxx>
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
#include <Geom2dToIGES_Geom2dPoint.hxx>
|
||||
#include <Geom2dToIGES_Geom2dVector.hxx>
|
||||
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Geom2dToIGES_Geom2dEntity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Geom2dToIGES_Geom2dEntity::Geom2dToIGES_Geom2dEntity() :
|
||||
TheUnitFactor(0.)
|
||||
{
|
||||
|
81
src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.hxx
Normal file
81
src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.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 _Geom2dToIGES_Geom2dEntity_HeaderFile
|
||||
#define _Geom2dToIGES_Geom2dEntity_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
class IGESData_IGESModel;
|
||||
|
||||
|
||||
//! provides methods to transfer Geom2d entity from CASCADE to IGES.
|
||||
class Geom2dToIGES_Geom2dEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Creates a tool Geom2dEntity
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dEntity();
|
||||
|
||||
//! Creates a tool ready to run and sets its
|
||||
//! fields as GE's.
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dEntity(const Geom2dToIGES_Geom2dEntity& 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 millimeters.
|
||||
Standard_EXPORT Standard_Real GetUnit() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Handle(IGESData_IGESModel) TheModel;
|
||||
Standard_Real TheUnitFactor;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Geom2dToIGES_Geom2dEntity_HeaderFile
|
@@ -1,57 +0,0 @@
|
||||
-- Created on: 1995-02-01
|
||||
-- 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 Geom2dPoint from Geom2dToIGES inherits Geom2dEntity from Geom2dToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Point Entity from Geom2d
|
||||
-- to IGES . These are :
|
||||
-- . 2dPoint
|
||||
-- * 2dCartesianPoint
|
||||
|
||||
|
||||
uses
|
||||
|
||||
Point from Geom2d,
|
||||
CartesianPoint from Geom2d,
|
||||
Point from IGESGeom,
|
||||
Geom2dEntity from Geom2dToIGES
|
||||
|
||||
is
|
||||
|
||||
Create returns Geom2dPoint from Geom2dToIGES;
|
||||
|
||||
|
||||
Create(G2dE : Geom2dEntity from Geom2dToIGES)
|
||||
returns Geom2dPoint from Geom2dToIGES;
|
||||
---Purpose : Creates a tool Geom2dPoint ready to run and sets its
|
||||
-- fields as G2dE's.
|
||||
|
||||
Transfer2dPoint (me : in out;
|
||||
start : Point from Geom2d)
|
||||
returns Point from IGESGeom;
|
||||
---Purpose : Transfert a Point from Geom to IGES. If this
|
||||
-- Entity could not be converted, this member returns a NullEntity.
|
||||
|
||||
Transfer2dPoint (me : in out;
|
||||
start : CartesianPoint from Geom2d)
|
||||
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 Geom2dPoint;
|
||||
|
||||
|
@@ -14,20 +14,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Geom2dToIGES_Geom2dPoint.ixx>
|
||||
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <Geom2d_Point.hxx>
|
||||
#include <Geom2d_CartesianPoint.hxx>
|
||||
|
||||
#include <Geom2d_Point.hxx>
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
#include <Geom2dToIGES_Geom2dPoint.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESGeom_Point.hxx>
|
||||
|
||||
|
||||
//=============================================================================
|
||||
// Geom2dToIGES_Geom2dPoint
|
||||
//=============================================================================
|
||||
|
||||
Geom2dToIGES_Geom2dPoint::Geom2dToIGES_Geom2dPoint()
|
||||
:Geom2dToIGES_Geom2dEntity()
|
||||
{
|
||||
|
79
src/Geom2dToIGES/Geom2dToIGES_Geom2dPoint.hxx
Normal file
79
src/Geom2dToIGES/Geom2dToIGES_Geom2dPoint.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 1995-02-01
|
||||
// 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 _Geom2dToIGES_Geom2dPoint_HeaderFile
|
||||
#define _Geom2dToIGES_Geom2dPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
class Geom2dToIGES_Geom2dEntity;
|
||||
class IGESGeom_Point;
|
||||
class Geom2d_Point;
|
||||
class Geom2d_CartesianPoint;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Point Entity from Geom2d
|
||||
//! to IGES . These are :
|
||||
//! . 2dPoint
|
||||
//! * 2dCartesianPoint
|
||||
class Geom2dToIGES_Geom2dPoint : public Geom2dToIGES_Geom2dEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dPoint();
|
||||
|
||||
//! Creates a tool Geom2dPoint ready to run and sets its
|
||||
//! fields as G2dE's.
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dPoint(const Geom2dToIGES_Geom2dEntity& G2dE);
|
||||
|
||||
//! Transfert a Point from Geom to IGES. If this
|
||||
//! Entity could not be converted, this member returns a NullEntity.
|
||||
Standard_EXPORT Handle(IGESGeom_Point) Transfer2dPoint (const Handle(Geom2d_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) Transfer2dPoint (const Handle(Geom2d_CartesianPoint)& start);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Geom2dToIGES_Geom2dPoint_HeaderFile
|
@@ -1,64 +0,0 @@
|
||||
-- Created on: 1995-02-01
|
||||
-- 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 Geom2dVector from Geom2dToIGES inherits Geom2dEntity from Geom2dToIGES
|
||||
|
||||
---Purpose: This class implements the transfer of the Vector from Geom2d
|
||||
-- to IGES . These can be :
|
||||
-- . Vector
|
||||
-- * Direction
|
||||
-- * VectorWithMagnitude
|
||||
|
||||
uses
|
||||
|
||||
Vector from Geom2d,
|
||||
VectorWithMagnitude from Geom2d,
|
||||
Direction from Geom2d,
|
||||
Direction from IGESGeom,
|
||||
Geom2dEntity from Geom2dToIGES
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create returns Geom2dVector from Geom2dToIGES;
|
||||
|
||||
|
||||
Create(G2dE : Geom2dEntity from Geom2dToIGES)
|
||||
returns Geom2dVector from Geom2dToIGES;
|
||||
---Purpose : Creates a tool Geom2dVector ready to run and sets its
|
||||
-- fields as G2dE's.
|
||||
|
||||
Transfer2dVector (me : in out;
|
||||
start : Vector from Geom2d)
|
||||
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.
|
||||
|
||||
|
||||
Transfer2dVector (me : in out;
|
||||
start : VectorWithMagnitude from Geom2d)
|
||||
returns Direction from IGESGeom;
|
||||
|
||||
|
||||
Transfer2dVector (me : in out;
|
||||
start : Direction from Geom2d)
|
||||
returns Direction from IGESGeom;
|
||||
|
||||
|
||||
end Geom2dVector;
|
||||
|
||||
|
@@ -14,22 +14,19 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Geom2dToIGES_Geom2dVector.ixx>
|
||||
|
||||
#include <Geom2d_Direction.hxx>
|
||||
#include <Geom2d_Vector.hxx>
|
||||
#include <Geom2d_VectorWithMagnitude.hxx>
|
||||
#include <Geom2d_Direction.hxx>
|
||||
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
#include <Geom2dToIGES_Geom2dVector.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
#include <IGESGeom_Direction.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
//=============================================================================
|
||||
// Geom2dToIGES_Geom2dVector
|
||||
//=============================================================================
|
||||
|
||||
Geom2dToIGES_Geom2dVector::Geom2dToIGES_Geom2dVector()
|
||||
:Geom2dToIGES_Geom2dEntity()
|
||||
{
|
||||
|
82
src/Geom2dToIGES/Geom2dToIGES_Geom2dVector.hxx
Normal file
82
src/Geom2dToIGES/Geom2dToIGES_Geom2dVector.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1995-02-01
|
||||
// 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 _Geom2dToIGES_Geom2dVector_HeaderFile
|
||||
#define _Geom2dToIGES_Geom2dVector_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Geom2dToIGES_Geom2dEntity.hxx>
|
||||
class Geom2dToIGES_Geom2dEntity;
|
||||
class IGESGeom_Direction;
|
||||
class Geom2d_Vector;
|
||||
class Geom2d_VectorWithMagnitude;
|
||||
class Geom2d_Direction;
|
||||
|
||||
|
||||
//! This class implements the transfer of the Vector from Geom2d
|
||||
//! to IGES . These can be :
|
||||
//! . Vector
|
||||
//! * Direction
|
||||
//! * VectorWithMagnitude
|
||||
class Geom2dToIGES_Geom2dVector : public Geom2dToIGES_Geom2dEntity
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dVector();
|
||||
|
||||
//! Creates a tool Geom2dVector ready to run and sets its
|
||||
//! fields as G2dE's.
|
||||
Standard_EXPORT Geom2dToIGES_Geom2dVector(const Geom2dToIGES_Geom2dEntity& G2dE);
|
||||
|
||||
//! 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) Transfer2dVector (const Handle(Geom2d_Vector)& start);
|
||||
|
||||
Standard_EXPORT Handle(IGESGeom_Direction) Transfer2dVector (const Handle(Geom2d_VectorWithMagnitude)& start);
|
||||
|
||||
Standard_EXPORT Handle(IGESGeom_Direction) Transfer2dVector (const Handle(Geom2d_Direction)& start);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Geom2dToIGES_Geom2dVector_HeaderFile
|
Reference in New Issue
Block a user