Files
OCCT/src/IntAna/IntAna_IntConicQuad.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

361 lines
9.7 KiB
Plaintext
Executable File

-- Created on: 1992-08-06
-- Created by: Laurent BUCHARD
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class IntConicQuad from IntAna
---Purpose: This class provides the analytic intersection between
-- a conic defined as an element of gp (Lin,Circ,Elips,
-- Parab,Hypr) and a quadric as defined in the class
-- Quadric from IntAna.
-- The intersection between a conic and a plane is treated
-- as a special case.
--
-- The result of the intersection are points (Pnt from
-- gp), associated with the parameter on the conic.
--
-- A call to an Intersection L:Lin from gp and
-- SPH: Sphere from gp can be written either :
-- IntAna_IntConicQuad Inter(L,IntAna_Quadric(SPH))
-- or :
-- IntAna_IntConicQuad Inter(L,SPH) (it is necessary
-- to include IntAna_Quadric.hxx in this case)
uses Pnt from gp,
Lin from gp,
Circ from gp,
Elips from gp,
Parab from gp,
Hypr from gp,
Pln from gp,
Quadric from IntAna
raises NotDone from StdFail,
OutOfRange from Standard,
DomainError from Standard
is
Create
---Purpose: Empty constructor.
--
returns IntConicQuad from IntAna;
Create(L: Lin from gp; Q: Quadric from IntAna)
---Purpose: Creates the intersection between a line and a quadric.
returns IntConicQuad from IntAna;
Perform(me:in out; L: Lin from gp; Q: Quadric from IntAna)
---Purpose: Intersects a line and a quadric.
is static;
Create(C: Circ from gp; Q: Quadric from IntAna)
---Purpose: Creates the intersection between a circle and a quadric.
returns IntConicQuad from IntAna;
Perform(me: in out; C: Circ from gp; Q: Quadric from IntAna)
---Purpose: Intersects a circle and a quadric.
is static;
Create(E: Elips from gp; Q: Quadric from IntAna)
---Purpose: Creates the intersection between an ellipse and a quadric.
returns IntConicQuad from IntAna;
Perform(me:in out; E: Elips from gp; Q: Quadric from IntAna)
---Purpose: Intersects an ellipse and a quadric.
is static;
Create(P: Parab from gp; Q: Quadric from IntAna)
---Purpose: Creates the intersection between a parabola and a quadric.
returns IntConicQuad from IntAna;
Perform(me:in out; P: Parab from gp; Q: Quadric from IntAna)
---Purpose: Intersects a parabola and a quadric.
is static;
Create(H: Hypr from gp; Q: Quadric from IntAna)
---Purpose: Creates the intersection between an hyperbola and
-- a quadric.
returns IntConicQuad from IntAna;
Perform(me:in out; H: Hypr from gp; Q: Quadric from IntAna)
---Purpose: Intersects an hyperbola and a quadric.
is static;
----------------------------------------------------------------------
-- Intersection between a Conic from gp and a Pln from IntAna
-- The intersection is computed with Tolerances.
----------------------------------------------------------------------
Create(L : Lin from gp; P: Pln from gp;
Tolang: Real from Standard)
---Purpose: Intersection between a line and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
returns IntConicQuad from IntAna;
Perform(me: in out;
L : Lin from gp; P: Pln from gp; Tolang: Real from Standard)
---Purpose: Intersects a line and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
is static;
Create(C : Circ from gp; P: Pln from gp;
Tolang,Tol: Real from Standard)
---Purpose: Intersection between a circle and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
-- Tol is used to determine if a distance is null.
returns IntConicQuad from IntAna;
Perform(me: in out;
C : Circ from gp; P: Pln from gp; Tolang,Tol: Real from Standard)
---Purpose: Intersects a circle and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
-- Tol is used to determine if a distance is null.
is static;
Create(E : Elips from gp; P: Pln from gp;
Tolang,Tol: Real from Standard)
---Purpose: Intersection between an ellipse and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
-- Tol is used to determine if a distance is null.
returns IntConicQuad from IntAna;
Perform(me: in out;
E : Elips from gp; P: Pln from gp; Tolang,Tol: Real from Standard)
---Purpose: Intersects an ellipse and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
-- Tol is used to determine if a distance is null.
is static;
Create(Pb: Parab from gp; P: Pln from gp;
Tolang: Real from Standard)
---Purpose: Intersection between a parabola and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
returns IntConicQuad from IntAna;
Perform(me: in out;
Pb: Parab from gp; P: Pln from gp; Tolang: Real from Standard)
---Purpose: Intersects a parabola and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
is static;
Create(H : Hypr from gp; P: Pln from gp;
Tolang: Real from Standard)
---Purpose: Intersection between an hyperbola and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
returns IntConicQuad from IntAna;
Perform(me: in out;
H : Hypr from gp; P: Pln from gp; Tolang: Real from Standard)
---Purpose: Intersects an hyperbola and a plane.
-- Tolang is used to determine if the angle between two
-- vectors is null.
is static;
IsDone(me)
---Purpose: Returns TRUE if the creation completed.
--
---C++: inline
returns Boolean from Standard
is static;
IsInQuadric(me)
---Purpose: Returns TRUE if the conic is in the quadric.
--
---C++: inline
returns Boolean from Standard
raises NotDone from StdFail
-- The exception NotDone is raised if IsDone returns False.
is static;
IsParallel(me)
---Purpose: Returns TRUE if the line is in a quadric which
-- is parallel to the quadric.
---C++: inline
returns Boolean from Standard
raises NotDone from StdFail
-- The exception NotDone is raised if IsDone returns False.
is static;
NbPoints(me)
---Purpose: Returns the number of intersection point.
--
---C++: inline
returns Integer from Standard
raises NotDone from StdFail,
DomainError from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception DomainError is raised if IsInQuadric returns
-- True or IsParallel returns True.
is static;
Point(me; N: Integer from Standard)
---Purpose: Returns the point of range N.
--
---C++: inline
---C++: return const&
returns Pnt from gp
raises NotDone from StdFail,
DomainError from Standard,
OutOfRange from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception DomainError is raised if IsInQuadric returns
-- True or IsParallel returns true.
-- The exception OutOfRange is raised if N<=0 or N>NbPoints.
is static;
ParamOnConic(me; N: Integer from Standard)
---Purpose: Returns the parameter on the line of the intersection
-- point of range N.
--
---C++: inline
returns Real from Standard
raises NotDone from StdFail,
DomainError from Standard,
OutOfRange from Standard
-- The exception NotDone is raised if IsDone returns False.
-- The exception DomainError is raised if IsInQuadric returns
-- True or IsParallel returns true.
-- The exception OutOfRange is raised if N<=0 or N>NbPoints.
is static;
fields
done : Boolean from Standard;
parallel : Boolean from Standard;
inquadric : Boolean from Standard;
nbpts : Integer from Standard;
pnts : Pnt from gp [4];
paramonc : Real from Standard [4];
end IntConicQuad;