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:
15
src/GccInt/FILES
Normal file
15
src/GccInt/FILES
Normal file
@@ -0,0 +1,15 @@
|
||||
GccInt_BCirc.cxx
|
||||
GccInt_BCirc.hxx
|
||||
GccInt_BElips.cxx
|
||||
GccInt_BElips.hxx
|
||||
GccInt_BHyper.cxx
|
||||
GccInt_BHyper.hxx
|
||||
GccInt_Bisec.cxx
|
||||
GccInt_Bisec.hxx
|
||||
GccInt_BLine.cxx
|
||||
GccInt_BLine.hxx
|
||||
GccInt_BParab.cxx
|
||||
GccInt_BParab.hxx
|
||||
GccInt_BPoint.cxx
|
||||
GccInt_BPoint.hxx
|
||||
GccInt_IType.hxx
|
@@ -1,46 +0,0 @@
|
||||
-- Created on: 1991-03-22
|
||||
-- Created by: Philippe DAUTRY
|
||||
-- Copyright (c) 1991-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 GccInt
|
||||
|
||||
---Purpose: This package implements the services needed by the
|
||||
-- toolkit Gcc to use curves other than lines or circles.
|
||||
-- This package is also used for intersections and
|
||||
-- bisecting curves.
|
||||
|
||||
uses gp,
|
||||
MMgt,
|
||||
Standard
|
||||
|
||||
is
|
||||
|
||||
enumeration IType is Lin, Cir, Ell, Par, Hpr, Pnt;
|
||||
|
||||
deferred class Bisec;
|
||||
|
||||
class BCirc;
|
||||
|
||||
class BElips;
|
||||
|
||||
class BLine;
|
||||
|
||||
class BParab;
|
||||
|
||||
class BPoint;
|
||||
|
||||
class BHyper;
|
||||
|
||||
end GccInt;
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BCirc from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
|
||||
---Purpose: Describes a circle as a bisecting curve between two 2D
|
||||
-- geometric objects (such as circles or points).
|
||||
|
||||
uses Circ2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
is
|
||||
|
||||
Create(Circ : Circ2d) returns BCirc;
|
||||
---Purpose: Constructs a bisecting curve whose geometry is the 2D circle Circ.
|
||||
|
||||
Circle(me) returns Circ2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D circle which is the geometry of this bisecting curve.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
---Purpose: Returns GccInt_Cir, which is the type of any GccInt_BCirc bisecting curve.
|
||||
|
||||
fields
|
||||
|
||||
cir : Circ2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BCirc;
|
||||
|
||||
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BCirc.ixx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <GccInt_BCirc.hxx>
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BCirc::
|
||||
GccInt_BCirc(const gp_Circ2d& Circ) {
|
||||
|
73
src/GccInt/GccInt_BCirc.hxx
Normal file
73
src/GccInt/GccInt_BCirc.hxx
Normal file
@@ -0,0 +1,73 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BCirc_HeaderFile
|
||||
#define _GccInt_BCirc_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Circ2d;
|
||||
|
||||
|
||||
class GccInt_BCirc;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BCirc, GccInt_Bisec)
|
||||
|
||||
//! Describes a circle as a bisecting curve between two 2D
|
||||
//! geometric objects (such as circles or points).
|
||||
class GccInt_BCirc : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Constructs a bisecting curve whose geometry is the 2D circle Circ.
|
||||
Standard_EXPORT GccInt_BCirc(const gp_Circ2d& Circ);
|
||||
|
||||
//! Returns a 2D circle which is the geometry of this bisecting curve.
|
||||
Standard_EXPORT virtual gp_Circ2d Circle() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Cir, which is the type of any GccInt_BCirc bisecting curve.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BCirc,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Circ2d cir;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BCirc_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BElips from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
|
||||
---Purpose: Describes an ellipse as a bisecting curve between two
|
||||
-- 2D geometric objects (such as circles or points).
|
||||
|
||||
uses Elips2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
is
|
||||
|
||||
Create(Ellipse : Elips2d) returns BElips;
|
||||
---Purpose:
|
||||
-- Constructs a bisecting curve whose geometry is the 2D ellipse Ellipse.
|
||||
|
||||
Ellipse(me) returns Elips2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D ellipse which is the geometry of this bisecting curve.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
---Purpose: Returns GccInt_Ell, which is the type of any GccInt_BElips bisecting curve.
|
||||
|
||||
fields
|
||||
|
||||
eli : Elips2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BElips;
|
||||
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BElips.ixx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <GccInt_BElips.hxx>
|
||||
#include <gp_Elips2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BElips::
|
||||
GccInt_BElips(const gp_Elips2d& Ellipse) {
|
||||
|
74
src/GccInt/GccInt_BElips.hxx
Normal file
74
src/GccInt/GccInt_BElips.hxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BElips_HeaderFile
|
||||
#define _GccInt_BElips_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Elips2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Elips2d;
|
||||
|
||||
|
||||
class GccInt_BElips;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BElips, GccInt_Bisec)
|
||||
|
||||
//! Describes an ellipse as a bisecting curve between two
|
||||
//! 2D geometric objects (such as circles or points).
|
||||
class GccInt_BElips : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
//! Constructs a bisecting curve whose geometry is the 2D ellipse Ellipse.
|
||||
Standard_EXPORT GccInt_BElips(const gp_Elips2d& Ellipse);
|
||||
|
||||
//! Returns a 2D ellipse which is the geometry of this bisecting curve.
|
||||
Standard_EXPORT virtual gp_Elips2d Ellipse() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Ell, which is the type of any GccInt_BElips bisecting curve.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BElips,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Elips2d eli;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BElips_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BHyper from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
|
||||
---Purpose: Describes a hyperbola as a bisecting curve between two
|
||||
-- 2D geometric objects (such as circles or points).
|
||||
|
||||
uses Hypr2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
is
|
||||
|
||||
Create(Hyper : Hypr2d from gp) returns BHyper;
|
||||
---Purpose:
|
||||
-- Constructs a bisecting curve whose geometry is the 2D hyperbola Hyper.
|
||||
|
||||
Hyperbola(me) returns Hypr2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D hyperbola which is the geometry of this bisecting curve.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
---Purpose: Returns GccInt_Hpr, which is the type of any GccInt_BHyper bisecting curve.
|
||||
|
||||
fields
|
||||
|
||||
hyp : Hypr2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BHyper;
|
||||
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BHyper.ixx>
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
|
||||
#include <GccInt_BHyper.hxx>
|
||||
#include <gp_Hypr2d.hxx>
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BHyper::
|
||||
GccInt_BHyper(const gp_Hypr2d& Hyper) {
|
||||
|
74
src/GccInt/GccInt_BHyper.hxx
Normal file
74
src/GccInt/GccInt_BHyper.hxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BHyper_HeaderFile
|
||||
#define _GccInt_BHyper_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Hypr2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Hypr2d;
|
||||
|
||||
|
||||
class GccInt_BHyper;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BHyper, GccInt_Bisec)
|
||||
|
||||
//! Describes a hyperbola as a bisecting curve between two
|
||||
//! 2D geometric objects (such as circles or points).
|
||||
class GccInt_BHyper : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
//! Constructs a bisecting curve whose geometry is the 2D hyperbola Hyper.
|
||||
Standard_EXPORT GccInt_BHyper(const gp_Hypr2d& Hyper);
|
||||
|
||||
//! Returns a 2D hyperbola which is the geometry of this bisecting curve.
|
||||
Standard_EXPORT virtual gp_Hypr2d Hyperbola() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Hpr, which is the type of any GccInt_BHyper bisecting curve.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BHyper,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Hypr2d hyp;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BHyper_HeaderFile
|
@@ -1,45 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BLine from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
---Purpose: Describes a line as a bisecting curve between two 2D
|
||||
-- geometric objects (such as lines, circles or points).
|
||||
|
||||
uses Lin2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create(Line : Lin2d) returns BLine;
|
||||
---Purpose: Constructs a bisecting line whose geometry is the 2D line Line.
|
||||
|
||||
Line(me) returns Lin2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D line which is the geometry of this bisecting line.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
---Purpose: Returns GccInt_Lin, which is the type of any GccInt_BLine bisecting line.
|
||||
|
||||
fields
|
||||
|
||||
lin : Lin2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BLine;
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BLine.ixx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <GccInt_BLine.hxx>
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BLine::
|
||||
GccInt_BLine(const gp_Lin2d& Line) {
|
||||
|
73
src/GccInt/GccInt_BLine.hxx
Normal file
73
src/GccInt/GccInt_BLine.hxx
Normal file
@@ -0,0 +1,73 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BLine_HeaderFile
|
||||
#define _GccInt_BLine_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Lin2d;
|
||||
|
||||
|
||||
class GccInt_BLine;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BLine, GccInt_Bisec)
|
||||
|
||||
//! Describes a line as a bisecting curve between two 2D
|
||||
//! geometric objects (such as lines, circles or points).
|
||||
class GccInt_BLine : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Constructs a bisecting line whose geometry is the 2D line Line.
|
||||
Standard_EXPORT GccInt_BLine(const gp_Lin2d& Line);
|
||||
|
||||
//! Returns a 2D line which is the geometry of this bisecting line.
|
||||
Standard_EXPORT virtual gp_Lin2d Line() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Lin, which is the type of any GccInt_BLine bisecting line.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BLine,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Lin2d lin;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BLine_HeaderFile
|
@@ -1,46 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BParab from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
|
||||
---Purpose: Describes a parabola as a bisecting curve between two
|
||||
-- 2D geometric objects (such as lines, circles or points).
|
||||
|
||||
uses Parab2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
is
|
||||
|
||||
Create(Parab : Parab2d) returns BParab;
|
||||
---Purpose: Constructs a bisecting curve whose geometry is the 2D parabola Parab.
|
||||
|
||||
Parabola(me) returns Parab2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D parabola which is the geometry of this bisecting curve.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
---Purpose: Returns GccInt_Par, which is the type of any GccInt_BParab bisecting curve.
|
||||
|
||||
fields
|
||||
|
||||
par : Parab2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BParab;
|
||||
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BParab.ixx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <GccInt_BParab.hxx>
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BParab::
|
||||
GccInt_BParab(const gp_Parab2d& Parab) {
|
||||
|
73
src/GccInt/GccInt_BParab.hxx
Normal file
73
src/GccInt/GccInt_BParab.hxx
Normal file
@@ -0,0 +1,73 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BParab_HeaderFile
|
||||
#define _GccInt_BParab_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Parab2d;
|
||||
|
||||
|
||||
class GccInt_BParab;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BParab, GccInt_Bisec)
|
||||
|
||||
//! Describes a parabola as a bisecting curve between two
|
||||
//! 2D geometric objects (such as lines, circles or points).
|
||||
class GccInt_BParab : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Constructs a bisecting curve whose geometry is the 2D parabola Parab.
|
||||
Standard_EXPORT GccInt_BParab(const gp_Parab2d& Parab);
|
||||
|
||||
//! Returns a 2D parabola which is the geometry of this bisecting curve.
|
||||
Standard_EXPORT virtual gp_Parab2d Parabola() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Par, which is the type of any GccInt_BParab bisecting curve.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BParab,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Parab2d par;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BParab_HeaderFile
|
@@ -1,45 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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 BPoint from GccInt
|
||||
|
||||
inherits Bisec from GccInt
|
||||
---Purpose: Describes a point as a bisecting object between two 2D geometric objects.
|
||||
|
||||
uses Pnt2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create(Point : Pnt2d) returns BPoint;
|
||||
---Purpose: Constructs a bisecting object whose geometry is the 2D point Point.
|
||||
|
||||
Point(me) returns Pnt2d from gp
|
||||
is redefined;
|
||||
---Purpose: Returns a 2D point which is the geometry of this bisecting object.
|
||||
|
||||
ArcType(me) returns IType from GccInt
|
||||
is static;
|
||||
--- Purpose: Returns GccInt_Pnt, which is the type of any GccInt_BPoint bisecting object.
|
||||
|
||||
fields
|
||||
|
||||
pnt : Pnt2d from gp;
|
||||
---Purpose: The bisecting line.
|
||||
|
||||
end BPoint;
|
||||
|
@@ -14,9 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_BPoint.ixx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <GccInt_BPoint.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GccInt_BPoint::
|
||||
GccInt_BPoint(const gp_Pnt2d& Point) {
|
||||
|
72
src/GccInt/GccInt_BPoint.hxx
Normal file
72
src/GccInt/GccInt_BPoint.hxx
Normal file
@@ -0,0 +1,72 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_BPoint_HeaderFile
|
||||
#define _GccInt_BPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class gp_Pnt2d;
|
||||
|
||||
|
||||
class GccInt_BPoint;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_BPoint, GccInt_Bisec)
|
||||
|
||||
//! Describes a point as a bisecting object between two 2D geometric objects.
|
||||
class GccInt_BPoint : public GccInt_Bisec
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Constructs a bisecting object whose geometry is the 2D point Point.
|
||||
Standard_EXPORT GccInt_BPoint(const gp_Pnt2d& Point);
|
||||
|
||||
//! Returns a 2D point which is the geometry of this bisecting object.
|
||||
Standard_EXPORT virtual gp_Pnt2d Point() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns GccInt_Pnt, which is the type of any GccInt_BPoint bisecting object.
|
||||
Standard_EXPORT GccInt_IType ArcType() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_BPoint,GccInt_Bisec)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_Pnt2d pnt;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_BPoint_HeaderFile
|
@@ -1,98 +0,0 @@
|
||||
-- Created on: 1991-10-04
|
||||
-- Created by: Remi GILET
|
||||
-- Copyright (c) 1991-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
|
||||
|
||||
Bisec from GccInt
|
||||
|
||||
inherits TShared from MMgt
|
||||
|
||||
---Purpose: The deferred class GccInt_Bisec is the root class for
|
||||
-- elementary bisecting loci between two simple geometric
|
||||
-- objects (i.e. circles, lines or points).
|
||||
-- Bisecting loci between two geometric objects are such
|
||||
-- that each of their points is at the same distance from the
|
||||
-- two geometric objects. It is typically a curve, such as a
|
||||
-- line, circle or conic.
|
||||
-- Generally there is more than one elementary object
|
||||
-- which is the solution to a bisecting loci problem: each
|
||||
-- solution is described with one elementary bisecting
|
||||
-- locus. For example, the bisectors of two secant straight
|
||||
-- lines are two perpendicular straight lines.
|
||||
-- The GccInt package provides concrete implementations
|
||||
-- of the following elementary derived bisecting loci:
|
||||
-- - lines, circles, ellipses, hyperbolas and parabolas, and
|
||||
-- - points (not used in this context).
|
||||
-- The GccAna package provides numerous algorithms for
|
||||
-- computing the bisecting loci between circles, lines or
|
||||
-- points, whose solutions are these types of elementary bisecting locus.
|
||||
|
||||
uses
|
||||
|
||||
Circ2d from gp,
|
||||
Lin2d from gp,
|
||||
Pnt2d from gp,
|
||||
Elips2d from gp,
|
||||
Parab2d from gp,
|
||||
Hypr2d from gp,
|
||||
IType from GccInt
|
||||
|
||||
raises
|
||||
DomainError from Standard
|
||||
is
|
||||
|
||||
ArcType (me) returns IType from GccInt
|
||||
is deferred;
|
||||
---Purpose: Returns the type of bisecting object (line, circle,
|
||||
-- parabola, hyperbola, ellipse, point).
|
||||
|
||||
Point (me) returns Pnt2d from gp
|
||||
raises DomainError from Standard
|
||||
---Purpose: Returns the bisecting line when ArcType returns Pnt.
|
||||
-- An exception DomainError is raised if ArcType is not a Pnt.
|
||||
is virtual;
|
||||
|
||||
Line (me) returns Lin2d from gp
|
||||
---Purpose: Returns the bisecting line when ArcType returns Lin.
|
||||
raises DomainError from Standard
|
||||
---Purpose: An exception DomainError is raised if ArcType is not a Lin.
|
||||
is virtual;
|
||||
|
||||
Circle (me) returns Circ2d from gp
|
||||
---Purpose: Returns the bisecting line when ArcType returns Cir.
|
||||
raises DomainError from Standard
|
||||
---Purpose: An exception DomainError is raised if ArcType is not a Cir.
|
||||
is virtual;
|
||||
|
||||
Hyperbola (me) returns Hypr2d from gp
|
||||
---Purpose: Returns the bisecting line when ArcType returns Hpr.
|
||||
raises DomainError from Standard
|
||||
---Purpose: An exception DomainError is raised if ArcType is not a Hpr.
|
||||
is virtual;
|
||||
|
||||
Parabola (me) returns Parab2d from gp
|
||||
---Purpose: Returns the bisecting line when ArcType returns Par.
|
||||
raises DomainError from Standard
|
||||
---Purpose: An exception DomainError is raised if ArcType is not a Par.
|
||||
is virtual;
|
||||
|
||||
Ellipse (me) returns Elips2d from gp
|
||||
---Purpose: Returns the bisecting line when ArcType returns Ell.
|
||||
raises DomainError from Standard
|
||||
---Purpose: An exception DomainError is raised if ArcType is not an Ell.
|
||||
is virtual;
|
||||
|
||||
end Bisec;
|
@@ -14,14 +14,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GccInt_Bisec.ixx>
|
||||
|
||||
#include <GccInt_Bisec.hxx>
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <gp_Elips2d.hxx>
|
||||
#include <gp_Hypr2d.hxx>
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
gp_Circ2d GccInt_Bisec::
|
||||
Circle() const {
|
||||
|
113
src/GccInt/GccInt_Bisec.hxx
Normal file
113
src/GccInt/GccInt_Bisec.hxx
Normal file
@@ -0,0 +1,113 @@
|
||||
// Created on: 1991-10-04
|
||||
// Created by: Remi GILET
|
||||
// Copyright (c) 1991-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 _GccInt_Bisec_HeaderFile
|
||||
#define _GccInt_Bisec_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <GccInt_IType.hxx>
|
||||
class Standard_DomainError;
|
||||
class gp_Pnt2d;
|
||||
class gp_Lin2d;
|
||||
class gp_Circ2d;
|
||||
class gp_Hypr2d;
|
||||
class gp_Parab2d;
|
||||
class gp_Elips2d;
|
||||
|
||||
|
||||
class GccInt_Bisec;
|
||||
DEFINE_STANDARD_HANDLE(GccInt_Bisec, MMgt_TShared)
|
||||
|
||||
//! The deferred class GccInt_Bisec is the root class for
|
||||
//! elementary bisecting loci between two simple geometric
|
||||
//! objects (i.e. circles, lines or points).
|
||||
//! Bisecting loci between two geometric objects are such
|
||||
//! that each of their points is at the same distance from the
|
||||
//! two geometric objects. It is typically a curve, such as a
|
||||
//! line, circle or conic.
|
||||
//! Generally there is more than one elementary object
|
||||
//! which is the solution to a bisecting loci problem: each
|
||||
//! solution is described with one elementary bisecting
|
||||
//! locus. For example, the bisectors of two secant straight
|
||||
//! lines are two perpendicular straight lines.
|
||||
//! The GccInt package provides concrete implementations
|
||||
//! of the following elementary derived bisecting loci:
|
||||
//! - lines, circles, ellipses, hyperbolas and parabolas, and
|
||||
//! - points (not used in this context).
|
||||
//! The GccAna package provides numerous algorithms for
|
||||
//! computing the bisecting loci between circles, lines or
|
||||
//! points, whose solutions are these types of elementary bisecting locus.
|
||||
class GccInt_Bisec : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Returns the type of bisecting object (line, circle,
|
||||
//! parabola, hyperbola, ellipse, point).
|
||||
Standard_EXPORT virtual GccInt_IType ArcType() const = 0;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Pnt.
|
||||
//! An exception DomainError is raised if ArcType is not a Pnt.
|
||||
Standard_EXPORT virtual gp_Pnt2d Point() const;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Lin.
|
||||
//! An exception DomainError is raised if ArcType is not a Lin.
|
||||
Standard_EXPORT virtual gp_Lin2d Line() const;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Cir.
|
||||
//! An exception DomainError is raised if ArcType is not a Cir.
|
||||
Standard_EXPORT virtual gp_Circ2d Circle() const;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Hpr.
|
||||
//! An exception DomainError is raised if ArcType is not a Hpr.
|
||||
Standard_EXPORT virtual gp_Hypr2d Hyperbola() const;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Par.
|
||||
//! An exception DomainError is raised if ArcType is not a Par.
|
||||
Standard_EXPORT virtual gp_Parab2d Parabola() const;
|
||||
|
||||
//! Returns the bisecting line when ArcType returns Ell.
|
||||
//! An exception DomainError is raised if ArcType is not an Ell.
|
||||
Standard_EXPORT virtual gp_Elips2d Ellipse() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GccInt_Bisec,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GccInt_Bisec_HeaderFile
|
31
src/GccInt/GccInt_IType.hxx
Normal file
31
src/GccInt/GccInt_IType.hxx
Normal file
@@ -0,0 +1,31 @@
|
||||
// Created on: 1991-03-22
|
||||
// Created by: Philippe DAUTRY
|
||||
// Copyright (c) 1991-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 _GccInt_IType_HeaderFile
|
||||
#define _GccInt_IType_HeaderFile
|
||||
|
||||
|
||||
enum GccInt_IType
|
||||
{
|
||||
GccInt_Lin,
|
||||
GccInt_Cir,
|
||||
GccInt_Ell,
|
||||
GccInt_Par,
|
||||
GccInt_Hpr,
|
||||
GccInt_Pnt
|
||||
};
|
||||
|
||||
#endif // _GccInt_IType_HeaderFile
|
Reference in New Issue
Block a user