mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 00:57:38 +08:00
126 lines
3.5 KiB
Plaintext
Executable File
126 lines
3.5 KiB
Plaintext
Executable File
-- Created on: 1992-05-21
|
|
-- Created by: Jean Claude VAUTHIER
|
|
-- 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 Curve from DrawTrSurf
|
|
|
|
inherits Drawable
|
|
|
|
--- Purpose :
|
|
-- This class defines a drawable curve in 3d space.
|
|
|
|
uses Curve from Geom,
|
|
Color from Draw,
|
|
Display from Draw,
|
|
Drawable3D from Draw,
|
|
Interpretor from Draw,
|
|
OStream
|
|
|
|
is
|
|
|
|
|
|
|
|
|
|
Create (C : Curve from Geom; DispOrigin : Boolean from Standard = Standard_True)
|
|
--- Purpose :
|
|
-- creates a drawable curve from a curve of package Geom.
|
|
returns mutable Curve from DrawTrSurf;
|
|
|
|
|
|
Create (C : Curve from Geom; aColor : Color from Draw; Discret : Integer;
|
|
Deflection : Real; DrawMode : Integer;
|
|
DispOrigin : Boolean from Standard = Standard_True;
|
|
DispCurvRadius : Boolean = Standard_False;
|
|
RadiusMax : Real = 1.0e3;
|
|
RatioOfRadius : Real = 0.1)
|
|
returns mutable Curve from DrawTrSurf;
|
|
|
|
|
|
DrawOn (me; dis : in out Display from Draw);
|
|
|
|
|
|
GetCurve (me) returns any Curve from Geom
|
|
---C++: inline
|
|
is static;
|
|
|
|
SetColor(me : mutable; aColor : Color from Draw)
|
|
---C++: inline
|
|
is static;
|
|
|
|
DisplayOrigin(me) returns Boolean
|
|
---C++: inline
|
|
is static;
|
|
|
|
DisplayOrigin(me : mutable; V : Boolean)
|
|
---C++: inline
|
|
is static;
|
|
|
|
ShowCurvature(me : mutable)
|
|
---C++: inline
|
|
is static;
|
|
|
|
ClearCurvature(me : mutable)
|
|
---C++: inline
|
|
is static;
|
|
|
|
SetRadiusMax(me : mutable; Radius : Real)
|
|
---C++: inline
|
|
is static;
|
|
|
|
SetRadiusRatio(me : mutable; Ratio : Real)
|
|
---C++: inline
|
|
is static;
|
|
Color (me) returns Color from Draw
|
|
---C++: inline
|
|
is static;
|
|
|
|
RadiusMax(me) returns Real
|
|
---C++: inline
|
|
is static;
|
|
|
|
RadiusRatio(me) returns Real
|
|
---C++: inline
|
|
is static;
|
|
|
|
Copy(me) returns mutable Drawable3D from Draw
|
|
---Purpose: For variable copy.
|
|
is redefined;
|
|
|
|
Dump(me; S : in out OStream)
|
|
---Purpose: For variable dump.
|
|
is redefined;
|
|
|
|
Whatis(me; I : in out Interpretor from Draw)
|
|
is redefined;
|
|
---Purpose: For variable whatis command. Set as a result the
|
|
-- type of the variable.
|
|
|
|
fields
|
|
|
|
curv : Curve from Geom is protected ;
|
|
look : Color from Draw is protected ;
|
|
disporigin : Boolean from Standard is protected ;
|
|
dispcurvradius : Boolean from Standard is protected ;
|
|
radiusmax : Real from Standard is protected ;
|
|
radiusratio : Real from Standard is protected ;
|
|
|
|
end Curve;
|