1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-20 11:54:07 +03:00
occt/src/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.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

155 lines
5.2 KiB
Plaintext
Executable File

-- Created on: 1999-05-14
-- Created by: Pavel DURANDIN
-- Copyright (c) 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 ShapeConvertToBezier from ShapeUpgrade inherits ShapeDivide from ShapeUpgrade
---Purpose: API class for performing conversion of 3D, 2D curves to bezier curves
-- and surfaces to bezier based surfaces (
-- bezier surface,
-- surface of revolution based on bezier curve,
-- offset surface based on any previous type).
uses
Shape from TopoDS,
FaceDivide from ShapeUpgrade
is
Create returns ShapeConvertToBezier from ShapeUpgrade;
---Purpose: Empty constructor.
Create (S: Shape from TopoDS)
returns ShapeConvertToBezier from ShapeUpgrade;
---Purpose: Initialize by a Shape.
Set2dConversion(me:in out; mode: Boolean);
---Purpose: Sets mode for conversion 2D curves to bezier.
---C++:inline
Get2dConversion(me) returns Boolean;
---Purpose: Returns the 2D conversion mode.
---C++:inline
Set3dConversion(me: in out; mode: Boolean);
---Purpose: Sets mode for conversion 3d curves to bezier.
---C++:inline
Get3dConversion(me) returns Boolean;
---Purpose: Returns the 3D conversion mode.
---C++:inline
SetSurfaceConversion(me:in out; mode: Boolean);
---Purpose: Sets mode for conversion surfaces curves to
-- bezier basis.
---C++:inline
GetSurfaceConversion(me) returns Boolean;
---Purpose: Returns the surface conversion mode.
---C++:inline
--Remark: The following "Set.." functions affects only if 3D
-- conversion mode is True.
Set3dLineConversion(me:in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_Line to bezier.
---C++:inline
Get3dLineConversion(me) returns Boolean;
---Purpose: Returns the Geom_Line conversion mode.
---C++:inline
Set3dCircleConversion(me:in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_Circle to bezier.
---C++:inline
Get3dCircleConversion(me) returns Boolean;
---Purpose: Returns the Geom_Circle conversion mode.
---C++:inline
Set3dConicConversion(me:in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_Conic to bezier.
---C++:inline
Get3dConicConversion(me) returns Boolean;
---Purpose: Returns the Geom_Conic conversion mode.
---C++:inline
--Remark: The following "Set.." functions affects only if Surface
-- conversion mode is True.
SetPlaneMode(me: in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_Plane to Bezier
---C++: inline
GetPlaneMode(me) returns Boolean;
---Purpose: Returns the Geom_Pline conversion mode.
---C++: inline
SetRevolutionMode(me: in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_SurfaceOfRevolution to Bezier
---C++: inline
GetRevolutionMode(me) returns Boolean;
---Purpose: Returns the Geom_SurfaceOfRevolution conversion mode.
---C++: inline
SetExtrusionMode(me: in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier
---C++: inline
GetExtrusionMode(me) returns Boolean;
---Purpose: Returns the Geom_SurfaceOfLinearExtrusion conversion mode.
---C++: inline
SetBSplineMode(me: in out; mode: Boolean);
---Purpose: Sets mode for conversion Geom_BSplineSurface to Bezier
---C++: inline
GetBSplineMode(me) returns Boolean;
---Purpose: Returns the Geom_BSplineSurface conversion mode.
---C++: inline
Perform(me: in out; newContext: Boolean = Standard_True)
returns Boolean is redefined;
---Purpose: Performs converting and computes the resulting shape
GetSplitFaceTool(me) returns FaceDivide from ShapeUpgrade
is redefined protected;
---Purpose: Returns the tool for dividing faces.
fields
my2dMode : Boolean;
my3dMode : Boolean;
mySurfaceMode : Boolean;
my3dLineMode : Boolean;
my3dCircleMode : Boolean;
my3dConicMode : Boolean;
myPlaneMode : Boolean;
myRevolutionMode: Boolean;
myExtrusionMode : Boolean;
myBSplineMode : Boolean;
myLevel : Integer;
end ShapeConvertToBezier;