Files
OCCT/src/BRepSweep/BRepSweep_Revol.cdl
bugmster 973c2be1e1 0024428: Implementation of LGPL license
The copying permission statements at the beginning of source files updated to refer to LGPL.
Copyright dates extended till 2014 in advance.
2013-12-17 12:42:41 +04:00

122 lines
3.6 KiB
Plaintext

-- Created on: 1993-06-22
-- 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 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 Revol from BRepSweep
---Purpose: Provides natural constructors to build BRepSweep
-- rotated swept Primitives.
uses
PlaneAngle from Quantity,
NumShape from Sweep,
Rotation from BRepSweep,
Location from TopLoc,
Shape from TopoDS,
Ax1 from gp
raises
ConstructionError from Standard
is
Create (S : Shape from TopoDS;
A : Ax1 from gp;
D : PlaneAngle from Quantity;
C : Boolean from Standard = Standard_False)
---Purpose: Builds the Revol of meridian S axis A and angle D. If
-- C is true S is copied.
returns Revol from BRepSweep;
Create (S : Shape from TopoDS;
A : Ax1 from gp;
C : Boolean from Standard = Standard_False)
---Purpose: Builds the Revol of meridian S axis A and angle 2*Pi.
-- If C is true S is copied.
returns Revol from BRepSweep;
Shape (me :in out)
---Purpose: Returns the TopoDS Shape attached to the Revol.
returns Shape from TopoDS
is static;
Shape (me : in out; aGenS : Shape from TopoDS)
---Purpose: Returns the TopoDS Shape generated with aGenS
-- (subShape of the generating shape).
returns Shape from TopoDS
is static;
FirstShape (me : in out)
---Purpose: Returns the first shape of the revol (coinciding with
-- the generating shape).
returns Shape from TopoDS
is static;
FirstShape (me : in out; aGenS : Shape from TopoDS)
---Purpose: Returns the first shape of the revol (coinciding with
-- the generating shape).
returns Shape from TopoDS
is static;
LastShape (me : in out)
---Purpose: Returns the TopoDS Shape of the top of the prism.
returns Shape from TopoDS
is static;
LastShape (me : in out; aGenS : Shape from TopoDS)
---Purpose: Returns the TopoDS Shape of the top of the prism.
-- generated with aGenS (subShape of the generating
-- shape).
returns Shape from TopoDS
is static;
Axe(me)
returns Ax1 from gp
---Purpose: returns the axis
is static;
Angle(me)
returns PlaneAngle from Quantity
---Purpose: returns the angle.
is static;
NumShape(me; D : Real from Standard)
returns NumShape from Sweep
---Purpose: builds the NumShape.
is static private;
Location(me; Ax : Ax1 from gp; D : Real from Standard)
returns Location from TopLoc
---Purpose: Builds the Location
is static private;
Axe(me; Ax : Ax1 from gp; D : Real from Standard)
returns Ax1 from gp
---Purpose: Builds the axis
is static private;
Angle(me; D : Real from Standard)
returns Real from Standard
---Purpose: computes the angle.
is static private;
fields
myRotation : Rotation from BRepSweep;
end Revol from BRepSweep;