1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +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

View File

@@ -1,27 +0,0 @@
-- Created on: 1996-02-16
-- Created by: Philippe MANGIN
-- Copyright (c) 1996-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 DrawFairCurve
---Purpose: Batten and MVC to display
uses FairCurve, DrawTrSurf, Draw, gp
is
class Batten;
class MinimalVariation;
end DrawFairCurve;

View File

@@ -1,44 +0,0 @@
-- Created on: 1996-02-16
-- Created by: Philippe MANGIN
-- Copyright (c) 1996-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 Batten from DrawFairCurve inherits BSplineCurve2d from DrawTrSurf
---Purpose: Interactive Draw object of type "Batten"
uses Batten from FairCurve,
BSplineCurve2d from DrawTrSurf,
Pnt2d from gp
is
Create(TheBatten : Address)
returns Batten from DrawFairCurve;
Compute(me:mutable);
SetPoint(me: mutable; Side : Integer; Point : Pnt2d);
SetAngle(me: mutable; Side : Integer; Angle : Real);
SetSliding(me: mutable; Length : Real);
SetHeight(me: mutable; Heigth : Real);
SetSlope(me: mutable; Slope : Real);
GetAngle(me; Side : Integer) returns Real;
GetSliding(me) returns Real;
FreeSliding(me:mutable);
FreeAngle(me:mutable; Side : Integer);
Dump(me; S : in out OStream)
---Purpose: For variable dump.
is redefined;
fields
MyBatten : Address is protected;
end Batten;

View File

@@ -14,12 +14,14 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DrawFairCurve_Batten.ixx>
#include <FairCurve_Batten.hxx>
#include <DrawFairCurve_Batten.hxx>
#include <FairCurve_AnalysisCode.hxx>
#include <GeomTools_Curve2dSet.hxx>
#include <FairCurve_Batten.hxx>
#include <Geom2d_BSplineCurve.hxx>
#include <GeomTools_Curve2dSet.hxx>
#include <gp_Pnt2d.hxx>
#include <Standard_Type.hxx>
DrawFairCurve_Batten::DrawFairCurve_Batten(const Standard_Address TheBatten)
: DrawTrSurf_BSplineCurve2d( ((FairCurve_Batten*)TheBatten)->Curve()),

View File

@@ -0,0 +1,90 @@
// Created on: 1996-02-16
// Created by: Philippe MANGIN
// Copyright (c) 1996-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 _DrawFairCurve_Batten_HeaderFile
#define _DrawFairCurve_Batten_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Address.hxx>
#include <DrawTrSurf_BSplineCurve2d.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_OStream.hxx>
class gp_Pnt2d;
class DrawFairCurve_Batten;
DEFINE_STANDARD_HANDLE(DrawFairCurve_Batten, DrawTrSurf_BSplineCurve2d)
//! Interactive Draw object of type "Batten"
class DrawFairCurve_Batten : public DrawTrSurf_BSplineCurve2d
{
public:
Standard_EXPORT DrawFairCurve_Batten(const Standard_Address TheBatten);
Standard_EXPORT void Compute();
Standard_EXPORT void SetPoint (const Standard_Integer Side, const gp_Pnt2d& Point);
Standard_EXPORT void SetAngle (const Standard_Integer Side, const Standard_Real Angle);
Standard_EXPORT void SetSliding (const Standard_Real Length);
Standard_EXPORT void SetHeight (const Standard_Real Heigth);
Standard_EXPORT void SetSlope (const Standard_Real Slope);
Standard_EXPORT Standard_Real GetAngle (const Standard_Integer Side) const;
Standard_EXPORT Standard_Real GetSliding() const;
Standard_EXPORT void FreeSliding();
Standard_EXPORT void FreeAngle (const Standard_Integer Side);
//! For variable dump.
Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DrawFairCurve_Batten,DrawTrSurf_BSplineCurve2d)
protected:
Standard_Address MyBatten;
private:
};
#endif // _DrawFairCurve_Batten_HeaderFile

View File

@@ -1,35 +0,0 @@
-- Created on: 1996-04-12
-- Created by: Philippe MANGIN
-- Copyright (c) 1996-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 MinimalVariation from DrawFairCurve inherits Batten from DrawFairCurve
---Purpose: Interactive Draw object of type "MVC"
uses MinimalVariation from FairCurve
is
Create(TheMVC : Address)
returns MinimalVariation from DrawFairCurve;
SetCurvature(me: mutable; Side : Integer; Rho : Real);
SetPhysicalRatio(me: mutable; Ratio : Real);
GetCurvature(me; Side : Integer) returns Real;
GetPhysicalRatio(me) returns Real;
FreeCurvature(me: mutable; Side : Integer);
end MinimalVariation;

View File

@@ -12,10 +12,11 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DrawFairCurve_MinimalVariation.ixx>
#include <FairCurve_MinimalVariation.hxx>
#include <Draw_ColorKind.hxx>
#include <DrawFairCurve_MinimalVariation.hxx>
#include <FairCurve_MinimalVariation.hxx>
#include <Standard_Type.hxx>
DrawFairCurve_MinimalVariation::DrawFairCurve_MinimalVariation(const Standard_Address TheMVC)
: DrawFairCurve_Batten(TheMVC)

View File

@@ -0,0 +1,74 @@
// Created on: 1996-04-12
// Created by: Philippe MANGIN
// Copyright (c) 1996-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 _DrawFairCurve_MinimalVariation_HeaderFile
#define _DrawFairCurve_MinimalVariation_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <DrawFairCurve_Batten.hxx>
#include <Standard_Address.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
class DrawFairCurve_MinimalVariation;
DEFINE_STANDARD_HANDLE(DrawFairCurve_MinimalVariation, DrawFairCurve_Batten)
//! Interactive Draw object of type "MVC"
class DrawFairCurve_MinimalVariation : public DrawFairCurve_Batten
{
public:
Standard_EXPORT DrawFairCurve_MinimalVariation(const Standard_Address TheMVC);
Standard_EXPORT void SetCurvature (const Standard_Integer Side, const Standard_Real Rho);
Standard_EXPORT void SetPhysicalRatio (const Standard_Real Ratio);
Standard_EXPORT Standard_Real GetCurvature (const Standard_Integer Side) const;
Standard_EXPORT Standard_Real GetPhysicalRatio() const;
Standard_EXPORT void FreeCurvature (const Standard_Integer Side);
DEFINE_STANDARD_RTTI(DrawFairCurve_MinimalVariation,DrawFairCurve_Batten)
protected:
private:
};
#endif // _DrawFairCurve_MinimalVariation_HeaderFile

4
src/DrawFairCurve/FILES Normal file
View File

@@ -0,0 +1,4 @@
DrawFairCurve_Batten.cxx
DrawFairCurve_Batten.hxx
DrawFairCurve_MinimalVariation.cxx
DrawFairCurve_MinimalVariation.hxx