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:
@@ -1,2 +1,6 @@
|
||||
TopBas_ListOfTestInterference.hxx
|
||||
TopBas_Interference.gxx
|
||||
TopBas_Interference.lxx
|
||||
TopBas_ListIteratorOfListOfTestInterference.hxx
|
||||
TopBas_ListOfTestInterference.hxx
|
||||
TopBas_TestInterference.hxx
|
||||
TopBas_TestInterference_0.cxx
|
||||
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1992-08-13
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- 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 TopBas
|
||||
|
||||
---Purpose: The TopBas package provides data structure for
|
||||
-- topological algorithms. THe data structures are
|
||||
-- used to store the intermediary dat and the results
|
||||
-- of the algorithms.
|
||||
--
|
||||
-- * Interference, List : An Interference is the
|
||||
-- topological representation of an intersection.
|
||||
-- The classes are generic in order to be independant
|
||||
-- of the data structure.
|
||||
|
||||
uses
|
||||
Standard,
|
||||
TCollection,
|
||||
TopAbs
|
||||
|
||||
is
|
||||
generic class Interference;
|
||||
|
||||
class TestInterference instantiates Interference from TopBas
|
||||
(Real from Standard,
|
||||
Integer from Standard);
|
||||
|
||||
imported ListOfTestInterference;
|
||||
|
||||
imported ListIteratorOfListOfTestInterference;
|
||||
|
||||
end TopBas;
|
||||
|
||||
|
@@ -1,114 +0,0 @@
|
||||
-- Created on: 1992-08-13
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- 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 Interference from TopBas (TheSubShape as any;
|
||||
TheShape as any)
|
||||
|
||||
---Purpose: An Interference is an Intersection on a Shape
|
||||
-- called the Reference, it contains :
|
||||
--
|
||||
-- * The Intersection : The SubShape describing the
|
||||
-- intersection. For example a Vertex.
|
||||
--
|
||||
-- * The Boundary : The Shape that generated the
|
||||
-- intersection with the referrence. For example an
|
||||
-- Edge.
|
||||
--
|
||||
-- * The Orientation : The orientation of the
|
||||
-- Intersection relative to the Boundary.
|
||||
--
|
||||
-- * The Transition : How the referrence crosses the
|
||||
-- Boundary at the Intersection.
|
||||
--
|
||||
-- * The BoundaryTransition : How the Referrence is
|
||||
-- on the boundary at the Intersection.
|
||||
--
|
||||
-- * Next : The Next Interference on the same
|
||||
-- Reference. Used to make lists.
|
||||
|
||||
|
||||
uses
|
||||
Orientation from TopAbs
|
||||
|
||||
is
|
||||
Create returns Interference;
|
||||
|
||||
Create(Inters : TheSubShape;
|
||||
Bound : TheShape;
|
||||
Orient : Orientation from TopAbs;
|
||||
Trans : Orientation from TopAbs;
|
||||
BTrans : Orientation from TopAbs) returns Interference;
|
||||
|
||||
Intersection(me : in out; I : TheSubShape)
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
Boundary(me : in out; B : TheShape)
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
Orientation(me : in out; O : Orientation from TopAbs)
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
Transition(me : in out; Tr : Orientation from TopAbs)
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
BoundaryTransition(me : in out; BTr : Orientation from TopAbs)
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
Intersection(me) returns TheSubShape
|
||||
---C++: inline
|
||||
---C++: return const &
|
||||
is static;
|
||||
|
||||
ChangeIntersection(me : in out) returns TheSubShape
|
||||
---C++: inline
|
||||
---C++: return &
|
||||
is static;
|
||||
|
||||
Boundary(me) returns TheShape
|
||||
---C++: inline
|
||||
---C++: return const &
|
||||
is static;
|
||||
|
||||
ChangeBoundary(me : in out) returns TheShape
|
||||
---C++: inline
|
||||
---C++: return &
|
||||
is static;
|
||||
|
||||
Orientation(me) returns Orientation from TopAbs
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
Transition(me) returns Orientation from TopAbs
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
BoundaryTransition(me) returns Orientation from TopAbs
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
fields
|
||||
myIntersection : TheSubShape;
|
||||
myBoundary : TheShape;
|
||||
myOrientation : Orientation from TopAbs;
|
||||
myTransition : Orientation from TopAbs;
|
||||
myBTransition : Orientation from TopAbs;
|
||||
|
||||
end Interference;
|
106
src/TopBas/TopBas_TestInterference.hxx
Normal file
106
src/TopBas/TopBas_TestInterference.hxx
Normal file
@@ -0,0 +1,106 @@
|
||||
// Created on: 1992-08-13
|
||||
// Created by: Remi LEQUETTE
|
||||
// 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.
|
||||
|
||||
#ifndef _TopBas_TestInterference_HeaderFile
|
||||
#define _TopBas_TestInterference_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
|
||||
|
||||
|
||||
class TopBas_TestInterference
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
Standard_EXPORT TopBas_TestInterference();
|
||||
|
||||
Standard_EXPORT TopBas_TestInterference(const Standard_Real& Inters, const Standard_Integer& Bound, const TopAbs_Orientation Orient, const TopAbs_Orientation Trans, const TopAbs_Orientation BTrans);
|
||||
|
||||
void Intersection (const Standard_Real& I);
|
||||
|
||||
void Boundary (const Standard_Integer& B);
|
||||
|
||||
void Orientation (const TopAbs_Orientation O);
|
||||
|
||||
void Transition (const TopAbs_Orientation Tr);
|
||||
|
||||
void BoundaryTransition (const TopAbs_Orientation BTr);
|
||||
|
||||
const Standard_Real& Intersection() const;
|
||||
|
||||
Standard_Real& ChangeIntersection();
|
||||
|
||||
const Standard_Integer& Boundary() const;
|
||||
|
||||
Standard_Integer& ChangeBoundary();
|
||||
|
||||
TopAbs_Orientation Orientation() const;
|
||||
|
||||
TopAbs_Orientation Transition() const;
|
||||
|
||||
TopAbs_Orientation BoundaryTransition() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Real myIntersection;
|
||||
Standard_Integer myBoundary;
|
||||
TopAbs_Orientation myOrientation;
|
||||
TopAbs_Orientation myTransition;
|
||||
TopAbs_Orientation myBTransition;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#define TheSubShape Standard_Real
|
||||
#define TheSubShape_hxx <Standard_Real.hxx>
|
||||
#define TheShape Standard_Integer
|
||||
#define TheShape_hxx <Standard_Integer.hxx>
|
||||
#define TopBas_Interference TopBas_TestInterference
|
||||
#define TopBas_Interference_hxx <TopBas_TestInterference.hxx>
|
||||
|
||||
#include <TopBas_Interference.lxx>
|
||||
|
||||
#undef TheSubShape
|
||||
#undef TheSubShape_hxx
|
||||
#undef TheShape
|
||||
#undef TheShape_hxx
|
||||
#undef TopBas_Interference
|
||||
#undef TopBas_Interference_hxx
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _TopBas_TestInterference_HeaderFile
|
28
src/TopBas/TopBas_TestInterference_0.cxx
Normal file
28
src/TopBas/TopBas_TestInterference_0.cxx
Normal file
@@ -0,0 +1,28 @@
|
||||
// Created on: 1992-08-13
|
||||
// Created by: Remi LEQUETTE
|
||||
// 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.
|
||||
|
||||
#include <TopBas_TestInterference.hxx>
|
||||
|
||||
|
||||
|
||||
#define TheSubShape Standard_Real
|
||||
#define TheSubShape_hxx <Standard_Real.hxx>
|
||||
#define TheShape Standard_Integer
|
||||
#define TheShape_hxx <Standard_Integer.hxx>
|
||||
#define TopBas_Interference TopBas_TestInterference
|
||||
#define TopBas_Interference_hxx <TopBas_TestInterference.hxx>
|
||||
#include <TopBas_Interference.gxx>
|
||||
|
Reference in New Issue
Block a user