1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

2
src/UnitsMethods/FILES Normal file
View File

@@ -0,0 +1,2 @@
UnitsMethods.cxx
UnitsMethods.hxx

View File

@@ -1,73 +0,0 @@
-- Created on: 1994-09-29
-- Created by: Dieter THIEMANN
-- 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 UnitsMethods
uses
Standard, Geom, Geom2d
is
InitializeFactors(LengthFactor : Real from Standard;
PlaneAngleFactor : Real from Standard;
SolidAngleFactor : Real from Standard);
---Purpose: Initializes the 3 factors for the conversion of
-- units
LengthFactor
returns Real from Standard;
PlaneAngleFactor
returns Real from Standard;
SolidAngleFactor
returns Real from Standard;
Set3dConversion(B : Boolean from Standard);
Convert3d
returns Boolean from Standard;
RadianToDegree(C : Curve from Geom2d;
S : Surface from Geom)
returns Curve from Geom2d;
DegreeToRadian(C : Curve from Geom2d;
S : Surface from Geom)
returns Curve from Geom2d;
MirrorPCurve(C : Curve from Geom2d)
returns Curve from Geom2d;
GetLengthFactorValue (param: Integer) returns Real;
---Purpose: Returns value of unit encoded by parameter param
-- (integer value denoting unit, as described in IGES
-- standard) in millimeters
GetCasCadeLengthUnit returns Real;
---Purpose: Returns value of current internal unit for CASCADE
-- in millemeters
SetCasCadeLengthUnit (param: Integer);
---Purpose: Sets value of current internal unit for CASCADE
-- by parameter param (integer value denoting unit,
-- as described in IGES standard)
-- GetCasCadeLengthUnit() will then return value
-- equal to GetLengthFactorValue(param)
end UnitsMethods;

View File

@@ -11,30 +11,30 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <UnitsMethods.ixx>
#include <Geom_Plane.hxx>
#include <Geom_Surface.hxx>
#include <Geom_ConicalSurface.hxx>
#include <Geom_CylindricalSurface.hxx>
#include <Geom_SphericalSurface.hxx>
#include <Geom_ToroidalSurface.hxx>
#include <Geom_SurfaceOfRevolution.hxx>
#include <Geom2dConvert.hxx>
#include <Geom2d_BoundedCurve.hxx>
#include <Geom2d_BSplineCurve.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_Parabola.hxx>
#include <Geom2dConvert.hxx>
#include <Geom_ConicalSurface.hxx>
#include <Geom_CylindricalSurface.hxx>
#include <Geom_Plane.hxx>
#include <Geom_SphericalSurface.hxx>
#include <Geom_Surface.hxx>
#include <Geom_SurfaceOfRevolution.hxx>
#include <Geom_ToroidalSurface.hxx>
#include <gp.hxx>
#include <gp_GTrsf2d.hxx>
#include <gp_Trsf2d.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Dir2d.hxx>
#include <Geom2d_Conic.hxx>
#include <Geom2d_BoundedCurve.hxx>
#include <gp_GTrsf2d.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Trsf2d.hxx>
#include <UnitsMethods.hxx>
static Standard_Real theLengthFactor = 1.;
static Standard_Real thePlaneAngleFactor = 1.;

View File

@@ -0,0 +1,98 @@
// Created on: 1994-09-29
// Created by: Dieter THIEMANN
// 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 _UnitsMethods_HeaderFile
#define _UnitsMethods_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Geom2d_Curve;
class Geom_Surface;
class UnitsMethods
{
public:
DEFINE_STANDARD_ALLOC
//! Initializes the 3 factors for the conversion of
//! units
Standard_EXPORT static void InitializeFactors (const Standard_Real LengthFactor, const Standard_Real PlaneAngleFactor, const Standard_Real SolidAngleFactor);
Standard_EXPORT static Standard_Real LengthFactor();
Standard_EXPORT static Standard_Real PlaneAngleFactor();
Standard_EXPORT static Standard_Real SolidAngleFactor();
Standard_EXPORT static void Set3dConversion (const Standard_Boolean B);
Standard_EXPORT static Standard_Boolean Convert3d();
Standard_EXPORT static Handle(Geom2d_Curve) RadianToDegree (const Handle(Geom2d_Curve)& C, const Handle(Geom_Surface)& S);
Standard_EXPORT static Handle(Geom2d_Curve) DegreeToRadian (const Handle(Geom2d_Curve)& C, const Handle(Geom_Surface)& S);
Standard_EXPORT static Handle(Geom2d_Curve) MirrorPCurve (const Handle(Geom2d_Curve)& C);
//! Returns value of unit encoded by parameter param
//! (integer value denoting unit, as described in IGES
//! standard) in millimeters
Standard_EXPORT static Standard_Real GetLengthFactorValue (const Standard_Integer param);
//! Returns value of current internal unit for CASCADE
//! in millemeters
Standard_EXPORT static Standard_Real GetCasCadeLengthUnit();
//! Sets value of current internal unit for CASCADE
//! by parameter param (integer value denoting unit,
//! as described in IGES standard)
//! GetCasCadeLengthUnit() will then return value
//! equal to GetLengthFactorValue(param)
Standard_EXPORT static void SetCasCadeLengthUnit (const Standard_Integer param);
protected:
private:
};
#endif // _UnitsMethods_HeaderFile