Files
OCCT/src/DrawTrSurf/DrawTrSurf_Drawable.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

89 lines
2.7 KiB
Plaintext

-- Created on: 1991-07-16
-- Created by: Christophe MARION
-- 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 Drawable from DrawTrSurf inherits Drawable3D from Draw
---Purpose: this class adds to the Drawable3D methods to
-- display Curves and Curves on Surface.
--
-- The discretisation, number of points on a Curve,
-- is stored in this class.
uses
Display from Draw,
Curve from Adaptor3d,
Curve2d from Adaptor2d,
IsoCurve from Adaptor3d,
IsoType from GeomAbs
is
Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0);
---Purpose: set the number of points on a curve at creation.
DrawCurve2dOn(me;
C : in out Curve2d from Adaptor2d;
D : in out Display from Draw);
---Purpose: Draw a polygon of the curve on the Display
DrawCurveOn(me;
C : in out Curve from Adaptor3d;
D : in out Display from Draw);
---Purpose: Draw a polygon of the curve on the Display
DrawIsoCurveOn(me;
C : in out IsoCurve from Adaptor3d;
T : IsoType from GeomAbs;
P, F, L : Real;
D : in out Display from Draw);
---Purpose: Load C with the specified iso and Draw a polygon
-- of the curve on the Display
DrawOn(me; dis : in out Display from Draw)
---Purpose: this is defined only to tell C++ not to complain
-- about inheriting a pure virtual method.
is deferred;
SetDiscretisation (me : mutable; Discret : Integer);
---C++: inline
GetDiscretisation (me) returns Integer;
---C++: inline
SetDeflection (me : mutable; Deflection : Real);
---C++: inline
GetDeflection (me) returns Real;
---C++: inline
SetDrawMode (me : mutable; DrawMode : Integer);
---C++: inline
GetDrawMode (me) returns Integer;
---C++: inline
fields
myDrawMode : Integer;
--- Purpose : 0 parametre constant, 1 fleche constante
myDiscret : Integer;
myDeflection : Real;
end Drawable;