1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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

8
src/Sweep/FILES Normal file
View File

@@ -0,0 +1,8 @@
Sweep_NumShape.cxx
Sweep_NumShape.hxx
Sweep_NumShape.lxx
Sweep_NumShapeIterator.cxx
Sweep_NumShapeIterator.hxx
Sweep_NumShapeIterator.lxx
Sweep_NumShapeTool.cxx
Sweep_NumShapeTool.hxx

View File

@@ -1,45 +0,0 @@
-- Created on: 1993-01-08
-- Created by: Philippe DAUTRY
-- Copyright (c) 1993-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 Sweep
---Purpose: This package contains generic classes usefull to create
-- swept 3D primitives.
uses
Standard,
TCollection,
TColStd,
TopAbs
is
--
-- The following classes provides a directing topology for the
-- LinearRegularSweep. This is the topology of an open or
-- closed loop of edges.
--
class NumShape;
class NumShapeTool;
class NumShapeIterator;
end Sweep;

View File

@@ -1,100 +0,0 @@
-- Created on: 1993-02-03
-- Created by: Laurent BOURESCHE
-- Copyright (c) 1993-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 NumShape from Sweep
---Purpose: Gives a simple indexed representation of a
-- Directing Edge topology.
uses
ShapeEnum from TopAbs,
Orientation from TopAbs
is
Create returns NumShape from Sweep;
---Purpose: Creates a dummy indexed edge.
Create (Index : Integer;
Type : ShapeEnum from TopAbs;
Closed : Boolean = Standard_False;
BegInf : Boolean = Standard_False;
EndInf : Boolean = Standard_False)
returns NumShape from Sweep;
---Purpose: Creates a new simple indexed edge.
--
-- For an Edge : Index is the number of vertices (0,
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
-- is a closed edge, BegInf is true if the Edge is
-- infinite at the begenning, EndInf is true if the
-- edge is infinite at the end.
--
-- For a Vertex : Index is the index of the vertex in
-- the edge (1 or 2), Type is TopAbsVERTEX, all the
-- other fields have no meanning.
Init (me : in out;
Index : Integer;
Type : ShapeEnum from TopAbs;
Closed : Boolean = Standard_False;
BegInf : Boolean = Standard_False;
EndInf : Boolean = Standard_False)
---Purpose: Reinitialize a simple indexed edge.
--
-- For an Edge : Index is the number of vertices (0,
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
-- is a closed edge, BegInf is true if the Edge is
-- infinite at the begenning, EndInf is true if the
-- edge is infinite at the end.
--
-- For a Vertex : Index is the index of the vertex in
-- the edge (1 or 2), Type is TopAbsVERTEX, Closed is
-- true if it is the vertex of a closed edge, all the
-- other fields have no meanning.
is static;
Index(me) returns Integer
---C++: inline
is static;
Type(me) returns ShapeEnum from TopAbs
---C++: inline
is static;
Closed(me) returns Boolean
---C++: inline
is static;
BegInfinite(me) returns Boolean
---C++: inline
is static;
EndInfinite(me) returns Boolean
---C++: inline
is static;
Orientation(me) returns Orientation from TopAbs
is static;
fields
myType : ShapeEnum from TopAbs;
myIndex : Integer;
myClosed : Boolean;
myBegInf : Boolean;
myEndInf : Boolean;
end NumShape;

View File

@@ -14,14 +14,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Sweep_NumShape.ixx>
#include <Sweep_NumShape.hxx>
//=======================================================================
//function : Sweep_NumShape
//purpose :
//=======================================================================
Sweep_NumShape::Sweep_NumShape():
myType(TopAbs_SHAPE),
myIndex(0),

View File

@@ -0,0 +1,110 @@
// Created on: 1993-02-03
// Created by: Laurent BOURESCHE
// Copyright (c) 1993-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 _Sweep_NumShape_HeaderFile
#define _Sweep_NumShape_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <TopAbs_Orientation.hxx>
//! Gives a simple indexed representation of a
//! Directing Edge topology.
class Sweep_NumShape
{
public:
DEFINE_STANDARD_ALLOC
//! Creates a dummy indexed edge.
Standard_EXPORT Sweep_NumShape();
//! Creates a new simple indexed edge.
//!
//! For an Edge : Index is the number of vertices (0,
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
//! is a closed edge, BegInf is true if the Edge is
//! infinite at the begenning, EndInf is true if the
//! edge is infinite at the end.
//!
//! For a Vertex : Index is the index of the vertex in
//! the edge (1 or 2), Type is TopAbsVERTEX, all the
//! other fields have no meanning.
Standard_EXPORT Sweep_NumShape(const Standard_Integer Index, const TopAbs_ShapeEnum Type, const Standard_Boolean Closed = Standard_False, const Standard_Boolean BegInf = Standard_False, const Standard_Boolean EndInf = Standard_False);
//! Reinitialize a simple indexed edge.
//!
//! For an Edge : Index is the number of vertices (0,
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
//! is a closed edge, BegInf is true if the Edge is
//! infinite at the begenning, EndInf is true if the
//! edge is infinite at the end.
//!
//! For a Vertex : Index is the index of the vertex in
//! the edge (1 or 2), Type is TopAbsVERTEX, Closed is
//! true if it is the vertex of a closed edge, all the
//! other fields have no meanning.
Standard_EXPORT void Init (const Standard_Integer Index, const TopAbs_ShapeEnum Type, const Standard_Boolean Closed = Standard_False, const Standard_Boolean BegInf = Standard_False, const Standard_Boolean EndInf = Standard_False);
Standard_Integer Index() const;
TopAbs_ShapeEnum Type() const;
Standard_Boolean Closed() const;
Standard_Boolean BegInfinite() const;
Standard_Boolean EndInfinite() const;
Standard_EXPORT TopAbs_Orientation Orientation() const;
protected:
private:
TopAbs_ShapeEnum myType;
Standard_Integer myIndex;
Standard_Boolean myClosed;
Standard_Boolean myBegInf;
Standard_Boolean myEndInf;
};
#include <Sweep_NumShape.lxx>
#endif // _Sweep_NumShape_HeaderFile

View File

@@ -1,77 +0,0 @@
-- Created on: 1993-06-02
-- Created by: Laurent BOURESCHE
-- Copyright (c) 1993-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 NumShapeIterator from Sweep
---Purpose: This class provides iteration services required by
-- the Swept Primitives for a Directing NumShape
-- Line.
--
uses
NumShape from Sweep,
Orientation from TopAbs
raises
NoMoreObject from Standard,
NoSuchObject from Standard
is
Create returns NumShapeIterator from Sweep;
Init(me : in out; aShape: NumShape from Sweep)
---Purpose: Resest the NumShapeIterator on sub-shapes of <aShape>.
is static;
More(me) returns Boolean
---Purpose: Returns True if there is a current sub-shape.
--
---C++: inline
is static;
Next(me : in out)
---Purpose: Moves to the next sub-shape.
raises
NoMoreObject from Standard
is static;
Value(me) returns NumShape from Sweep
---Purpose: Returns the current sub-shape.
raises
NoSuchObject from Standard
---C++: return const &
---C++: inline
is static;
Orientation(me) returns Orientation from TopAbs
---Purpose: Returns the orientation of the current sub-shape.
raises
NoSuchObject from Standard
---C++: inline
is static;
fields
myNumShape : NumShape from Sweep;
myCurrentNumShape : NumShape from Sweep;
myCurrentRange : Integer from Standard;
myMore : Boolean from Standard;
myCurrentOrientation : Orientation from TopAbs;
end NumShapeIterator;

View File

@@ -14,13 +14,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Sweep_NumShapeIterator.ixx>
#include <Standard_NoMoreObject.hxx>
#include <Standard_NoSuchObject.hxx>
#include <Sweep_NumShape.hxx>
#include <Sweep_NumShapeIterator.hxx>
//=======================================================================
//function : Sweep_NumShapeIterator
//purpose :
//=======================================================================
Sweep_NumShapeIterator::Sweep_NumShapeIterator():
myNumShape(0,TopAbs_SHAPE),
myCurrentNumShape(0,TopAbs_SHAPE)

View File

@@ -0,0 +1,89 @@
// Created on: 1993-06-02
// Created by: Laurent BOURESCHE
// Copyright (c) 1993-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 _Sweep_NumShapeIterator_HeaderFile
#define _Sweep_NumShapeIterator_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Sweep_NumShape.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <TopAbs_Orientation.hxx>
class Standard_NoMoreObject;
class Standard_NoSuchObject;
class Sweep_NumShape;
//! This class provides iteration services required by
//! the Swept Primitives for a Directing NumShape
//! Line.
class Sweep_NumShapeIterator
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT Sweep_NumShapeIterator();
//! Resest the NumShapeIterator on sub-shapes of <aShape>.
Standard_EXPORT void Init (const Sweep_NumShape& aShape);
//! Returns True if there is a current sub-shape.
Standard_Boolean More() const;
//! Moves to the next sub-shape.
Standard_EXPORT void Next();
//! Returns the current sub-shape.
const Sweep_NumShape& Value() const;
//! Returns the orientation of the current sub-shape.
TopAbs_Orientation Orientation() const;
protected:
private:
Sweep_NumShape myNumShape;
Sweep_NumShape myCurrentNumShape;
Standard_Integer myCurrentRange;
Standard_Boolean myMore;
TopAbs_Orientation myCurrentOrientation;
};
#include <Sweep_NumShapeIterator.lxx>
#endif // _Sweep_NumShapeIterator_HeaderFile

View File

@@ -1,79 +0,0 @@
-- Created on: 1993-06-02
-- Created by: Laurent BOURESCHE
-- Copyright (c) 1993-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 NumShapeTool from Sweep
---Purpose: This class provides the indexation and type analysis
-- services required by the NumShape Directing Shapes of
-- Swept Primitives.
--
uses
NumShape from Sweep,
ShapeEnum from TopAbs,
Orientation from TopAbs
raises
OutOfRange from Standard
is
Create(aShape: NumShape from Sweep);
---Purpose: Create a new NumShapeTool with <aShape>. The Tool
-- must prepare an indexation for all the subshapes
-- of this shape.
NbShapes(me) returns Integer
---Purpose: Returns the number of subshapes in the shape.
is static;
Index(me; aShape : NumShape from Sweep) returns Integer
---Purpose: Returns the index of <aShape>.
is static;
Shape(me; anIndex : Integer from Standard) returns NumShape from Sweep
---Purpose: Returns the Shape at index anIndex
is static;
Type(me; aShape : NumShape from Sweep) returns ShapeEnum from TopAbs
---Purpose: Returns the type of <aShape>.
is static;
Orientation(me; aShape : NumShape from Sweep)
returns Orientation from TopAbs
---Purpose: Returns the orientation of <aShape>.
is static;
HasFirstVertex(me) returns Boolean from Standard
---Purpose: Returns true if there is a First Vertex in the Shape.
is static;
HasLastVertex(me) returns Boolean from Standard
---Purpose: Returns true if there is a Last Vertex in the Shape.
is static;
FirstVertex(me) returns NumShape from Sweep
---Purpose: Returns the first vertex.
is static;
LastVertex(me) returns NumShape from Sweep
---Purpose: Returns the last vertex.
is static;
fields
myNumShape : NumShape from Sweep;
end NumShapeTool from Sweep;

View File

@@ -14,14 +14,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Sweep_NumShapeTool.ixx>
#include <Standard_ConstructionError.hxx>
#include <Standard_OutOfRange.hxx>
#include <Sweep_NumShape.hxx>
#include <Sweep_NumShapeTool.hxx>
//=======================================================================
//function : Sweep_NumShapeTool
//purpose :
//=======================================================================
Sweep_NumShapeTool::Sweep_NumShapeTool(const Sweep_NumShape& aShape) :
myNumShape(aShape)
{

View File

@@ -0,0 +1,99 @@
// Created on: 1993-06-02
// Created by: Laurent BOURESCHE
// Copyright (c) 1993-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 _Sweep_NumShapeTool_HeaderFile
#define _Sweep_NumShapeTool_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Sweep_NumShape.hxx>
#include <Standard_Integer.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <TopAbs_Orientation.hxx>
#include <Standard_Boolean.hxx>
class Standard_OutOfRange;
class Sweep_NumShape;
//! This class provides the indexation and type analysis
//! services required by the NumShape Directing Shapes of
//! Swept Primitives.
class Sweep_NumShapeTool
{
public:
DEFINE_STANDARD_ALLOC
//! Create a new NumShapeTool with <aShape>. The Tool
//! must prepare an indexation for all the subshapes
//! of this shape.
Standard_EXPORT Sweep_NumShapeTool(const Sweep_NumShape& aShape);
//! Returns the number of subshapes in the shape.
Standard_EXPORT Standard_Integer NbShapes() const;
//! Returns the index of <aShape>.
Standard_EXPORT Standard_Integer Index (const Sweep_NumShape& aShape) const;
//! Returns the Shape at index anIndex
Standard_EXPORT Sweep_NumShape Shape (const Standard_Integer anIndex) const;
//! Returns the type of <aShape>.
Standard_EXPORT TopAbs_ShapeEnum Type (const Sweep_NumShape& aShape) const;
//! Returns the orientation of <aShape>.
Standard_EXPORT TopAbs_Orientation Orientation (const Sweep_NumShape& aShape) const;
//! Returns true if there is a First Vertex in the Shape.
Standard_EXPORT Standard_Boolean HasFirstVertex() const;
//! Returns true if there is a Last Vertex in the Shape.
Standard_EXPORT Standard_Boolean HasLastVertex() const;
//! Returns the first vertex.
Standard_EXPORT Sweep_NumShape FirstVertex() const;
//! Returns the last vertex.
Standard_EXPORT Sweep_NumShape LastVertex() const;
protected:
private:
Sweep_NumShape myNumShape;
};
#endif // _Sweep_NumShapeTool_HeaderFile