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

10
src/IntStart/FILES Normal file
View File

@@ -0,0 +1,10 @@
IntStart_PathPoint.gxx
IntStart_PathPoint.lxx
IntStart_SearchInside.gxx
IntStart_SearchInside.lxx
IntStart_SearchOnBoundaries.gxx
IntStart_SearchOnBoundaries.lxx
IntStart_Segment.gxx
IntStart_Segment.lxx
IntStart_SITopolTool.cxx
IntStart_SITopolTool.hxx

View File

@@ -1,48 +0,0 @@
-- Created on: 1992-09-04
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-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 IntStart
---Purpose: This package provides generic algorithms to
-- find specific points (points on boundaries
-- and points inside a surface) used as starting
-- points for marching algorithms.
---Level: Internal
--
-- All the methods of the classes of this package are Internal.
--
uses Standard, MMgt, TCollection, StdFail, TopAbs, GeomAbs, gp, IntSurf, math
is
generic class Segment;
generic class PathPoint;
generic class SearchOnBoundaries, ThePathPoint, SequenceOfPathPoint,
TheSegment, SequenceOfSegment;
deferred class SITopolTool;
generic class SearchInside;
end IntStart;

View File

@@ -1,127 +0,0 @@
-- Created on: 1992-10-22
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-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.
generic class PathPoint from IntStart
(TheVertex as any;
TheArc as any)
---Purpose: This class describes a point on an arc which
-- solution intersection between 2 surfaces.
uses Pnt from gp,
Vec from gp,
Dir2d from gp
raises DomainError from Standard
is
Create
returns PathPoint from IntStart;
Create(P: Pnt from gp; Tol: Real from Standard;
V: TheVertex; A: TheArc; Parameter: Real from Standard)
returns PathPoint from IntStart;
Create(P: Pnt from gp; Tol: Real from Standard;
A: TheArc; Parameter: Real from Standard)
returns PathPoint from IntStart;
SetValue(me: in out; P: Pnt from gp; Tol: Real from Standard;
V: TheVertex; A: TheArc;
Parameter: Real from Standard)
---C++: inline
is static;
SetValue(me: in out; P: Pnt from gp; Tol: Real from Standard;
A: TheArc; Parameter: Real from Standard)
---C++: inline
is static;
Value(me)
returns Pnt from gp
---C++: return const&
---C++: inline
is static;
Tolerance(me)
returns Real from Standard
---C++: inline
is static;
IsNew(me)
returns Boolean from Standard
---C++: inline
is static;
Vertex(me)
returns any TheVertex
---C++: return const&
---C++: inline
raises DomainError from Standard
is static;
Arc(me)
returns any TheArc
---C++: return const&
---C++: inline
is static;
Parameter(me)
returns Real from Standard
---C++: inline
raises DomainError from Standard
is static;
fields
point : Pnt from gp;
tol : Real from Standard;
isnew : Boolean from Standard;
vtx : TheVertex;
arc : TheArc;
param : Real from Standard;
end PathPoint;

View File

@@ -1,38 +0,0 @@
-- Created on: 1994-03-30
-- Created by: Jacques GOUSSARD
-- 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.
deferred class SITopolTool from IntStart
---Purpose: template class for a topological tool.
-- This tool is linked with the surface on which
-- the classification has to be made.
inherits TShared from MMgt
uses State from TopAbs,
Pnt2d from gp
is
Classify(me: mutable; P: Pnt2d from gp; Tol: Real from Standard)
returns State from TopAbs
is deferred;
end SITopolTool;

View File

@@ -12,4 +12,7 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IntStart_SITopolTool.ixx>
#include <gp_Pnt2d.hxx>
#include <IntStart_SITopolTool.hxx>
#include <Standard_Type.hxx>

View File

@@ -0,0 +1,66 @@
// Created on: 1994-03-30
// Created by: Jacques GOUSSARD
// 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 _IntStart_SITopolTool_HeaderFile
#define _IntStart_SITopolTool_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <MMgt_TShared.hxx>
#include <TopAbs_State.hxx>
#include <Standard_Real.hxx>
class gp_Pnt2d;
class IntStart_SITopolTool;
DEFINE_STANDARD_HANDLE(IntStart_SITopolTool, MMgt_TShared)
//! template class for a topological tool.
//! This tool is linked with the surface on which
//! the classification has to be made.
class IntStart_SITopolTool : public MMgt_TShared
{
public:
Standard_EXPORT virtual TopAbs_State Classify (const gp_Pnt2d& P, const Standard_Real Tol) = 0;
DEFINE_STANDARD_RTTI(IntStart_SITopolTool,MMgt_TShared)
protected:
private:
};
#endif // _IntStart_SITopolTool_HeaderFile

View File

@@ -1,105 +0,0 @@
-- Created on: 1992-05-15
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-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.
generic class SearchInside from IntStart (
ThePSurface as any;
ThePSurfaceTool as any;
TheTopolTool as Transient; -- as SITopolTool from IntStart
TheSITool as any;
TheFunction as any)
---Purpose:
uses InteriorPoint from IntSurf,
SequenceOfInteriorPoint from IntSurf
raises NotDone from StdFail,
OutOfRange from Standard
is
Create
returns SearchInside from IntStart;
Create (F: in out TheFunction; Surf: ThePSurface; T: TheTopolTool;
Epsilon : Real from Standard)
returns SearchInside from IntStart;
Perform(me: in out; F: in out TheFunction; Surf: ThePSurface;
T: TheTopolTool;
Epsilon: Real from Standard)
is static;
Perform(me: in out; F: in out TheFunction; Surf: ThePSurface;
UStart,VStart: Real from Standard)
is static;
IsDone(me)
returns Boolean
---C++: inline
is static;
NbPoints(me)
---Purpose: Returns the number of points.
-- The exception NotDone if raised if IsDone
-- returns False.
returns Integer
---C++: inline
raises NotDone from StdFail
is static;
Value(me; Index: Integer)
---Purpose: Returns the point of range Index.
-- The exception NotDone if raised if IsDone
-- returns False.
-- The exception OutOfRange if raised if
-- Index <= 0 or Index > NbPoints.
returns InteriorPoint from IntSurf
---C++: return const&
---C++: inline
raises NotDone from StdFail,
OutOfRange from Standard
is static;
fields
done : Boolean from Standard;
list : SequenceOfInteriorPoint from IntSurf;
end SearchInside;

View File

@@ -1,176 +0,0 @@
-- Created on: 1992-09-04
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-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.
generic class SearchOnBoundaries from IntStart (
TheVertex as any;
TheArc as any;
TheArcTool as any;
TheSOBTool as any;
TheTopolTool as Transient;
TheFunction as any)
---Purpose: This class implements algorithmes to find the intersection
-- points and curves between the arcs of restriction
-- of a surface (parametric or implicit), used through
-- the classes TheArcTool, TheSOBTool and TheTopolTool,
-- and an implicit surface (natural quadric : Pln, Cylinder,
-- Cone, Sphere from gp)..
raises NotDone from StdFail,
OutOfRange from Standard,
ConstructionError from Standard
class ThePathPoint instantiates PathPoint from IntStart
(TheVertex,TheArc);
class SequenceOfPathPoint instantiates Sequence from TCollection
(ThePathPoint);
class TheSegment instantiates Segment from IntStart
(TheVertex,
TheArc,
ThePathPoint);
class SequenceOfSegment instantiates Sequence from TCollection
(TheSegment);
is
Create
---Purpose: Empty constructor.
returns SearchOnBoundaries from IntStart;
Perform(me : in out;
F : in out TheFunction;
Domain: TheTopolTool;
TolBoundary,TolTangency : Real from Standard;
RecheckOnRegularity : Boolean from Standard = Standard_False)
---Purpose: Algorithm to find the points and parts of curves of Domain
-- (domain of of restriction of a surface) which verify
-- F = 0.
-- TolBoundary defines if a curve is on Q.
-- TolTangency defines if a point is on Q.
raises ConstructionError from Standard
-- The exception ConstructionError is raised if one of the bounds
-- of an arc of the domain is infinite. See the method Bounds
-- of the class SOBTool.
is static;
IsDone(me)
---Purpose: Returns True if the calculus was successful.
returns Boolean from Standard
---C++: inline
is static;
AllArcSolution(me)
---Purpose: Returns true if all arc of the Arcs are solution (inside
-- the surface).
-- An exception is raised if IsDone returns False.
returns Boolean from Standard
---C++: inline
raises NotDone from StdFail
is static;
NbPoints(me)
---Purpose: Returns the number of resulting points.
-- An exception is raised if IsDone returns False (NotDone).
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
is static;
Point(me; Index: Integer from Standard)
---Purpose: Returns the resulting point of range Index.
-- The exception NotDone is raised if IsDone() returns
-- False.
-- The exception OutOfRange is raised if
-- Index <= 0 or Index > NbPoints.
returns ThePathPoint from IntStart
---C++: return const&
---C++: inline
raises NotDone from StdFail,
OutOfRange from Standard
is static;
NbSegments(me)
---Purpose: Returns the number of the resulting segments.
-- An exception is raised if IsDone returns False (NotDone).
returns Integer from Standard
---C++: inline
raises NotDone from StdFail
is static;
Segment(me; Index: Integer from Standard)
---Purpose: Returns the resulting segment of range Index.
-- The exception NotDone is raised if IsDone() returns
-- False.
-- The exception OutOfRange is raised if
-- Index <= 0 or Index > NbPoints.
returns TheSegment from IntStart
---C++: return const&
---C++: inline
raises NotDone from StdFail,
OutOfRange from Standard
is static;
fields
done : Boolean from Standard;
all : Boolean from Standard;
sseg : SequenceOfSegment from IntStart;
spnt : SequenceOfPathPoint from IntStart;
end SearchOnBoundaries;

View File

@@ -1,128 +0,0 @@
-- Created on: 1992-04-14
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-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.
generic class Segment from IntStart
(TheVertex as any;
TheArc as any;
ThePathPoint as any) -- as PathPoint from IntStart (TheVertex,TheArc)
---Purpose: This class defines the intersection between two implicit
-- surfaces A and B, when this intersection is a part of an
-- arc of restriction .
-- It can be bounded or semi infinite;
-- the extremities of these curves are vertices(ThepathPoint).
raises DomainError from Standard
is
Create
---Purpose: Empty constructor.
returns Segment;
SetValue(me: in out; A: TheArc)
---Purpose: Defines the concerned arc.
---C++: inline
is static;
SetLimitPoint(me: in out; V: ThePathPoint; First: Boolean)
---Purpose: Defines the first point or the last point,
-- depending on the value of the boolean First.
is static;
Curve(me)
---Purpose: Returns the geometric curve on the surface 's domain
-- which is solution.
returns any TheArc
---C++: return const&
---C++: inline
is static;
HasFirstPoint(me)
---Purpose: Returns True if there is a vertex (ThePathPoint) defining
-- the lowest valid parameter on the arc.
returns Boolean from Standard
---C++: inline
is static;
FirstPoint(me)
---Purpose: Returns the first point.
returns ThePathPoint
---C++: return const&
---C++: inline
raises DomainError from Standard
is static;
HasLastPoint(me)
---Purpose: Returns True if there is a vertex (ThePathPoint) defining
-- the greatest valid parameter on the arc.
returns Boolean from Standard
---C++: inline
is static;
LastPoint(me)
---Purpose: Returns the last point.
returns ThePathPoint
---C++: return const&
---C++: inline
raises DomainError from Standard
is static;
fields
arc : TheArc;
hasfp : Boolean from Standard;
thefp : ThePathPoint;
haslp : Boolean from Standard;
thelp : ThePathPoint;
end Segment;