1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00
occt/src/DBRep/DBRep_DrawableShape.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

164 lines
5.6 KiB
Plaintext
Executable File

-- Created on: 1991-07-04
-- Created by: Christophe MARION
-- Copyright (c) 1991-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 DrawableShape from DBRep inherits Drawable3D from Draw
---Purpose:
uses
Shape from TopoDS,
Color from Draw,
Display from Draw,
Trsf from gp,
ListOfEdge from DBRep,
ListOfFace from DBRep,
ListOfHideData from DBRep,
Interpretor from Draw,
Triangulation from Poly,
OStream
raises
DomainError
is
Create (C: Shape from TopoDS;
FreeCol : Color from Draw; -- color for free edges
ConnCol : Color from Draw; -- color for shared edges
EdgeCol : Color from Draw; -- color for other edges
IsosCol : Color from Draw; -- color for Isos
size : Real; -- size for infinite isos
nbisos : Integer; -- # of isos on each face
discret : Integer) -- # of points on curves
returns mutable DrawableShape from DBRep
raises DomainError;
Set (me : mutable; C: Shape from TopoDS)
is static;
ChangeNbIsos (me : mutable ; NbIsos : Integer from Standard)
---Purpose: Changes the number of isoparametric curves in a shape.
is static ;
NbIsos (me)
---Purpose: Returns the number of isoparametric curves in a shape.
returns Integer from Standard
is static ;
ChangeDiscret (me : mutable ; Discret : Integer from Standard)
---Purpose: Changes the number of isoparametric curves in a shape.
is static ;
Discret (me)
---Purpose: Returns the discretisation value of curve
returns Integer from Standard
is static ;
Shape(me) returns Shape from TopoDS
---Purpose: Return const &
is static;
DisplayOrientation(me : mutable; D : Boolean)
---Purpose: When True the orientations of the edges and free
-- vertices are displayed.
is static;
DisplayTriangulation(me : mutable; D : Boolean)
---Purpose: When True the triangulations of the faces
-- are displayed even if there is a surface.
is static;
DisplayPolygons(me : mutable; D : Boolean)
---Purpose: When True the polygons of the edges
-- are displayed even if there is a geometric curve.
is static;
DisplayHLR(me : mutable; withHLR : Boolean;
withRg1 : Boolean;
withRgN : Boolean;
withHid : Boolean;
ang : Real);
---Purpose: Performs Hidden lines.
DisplayTriangulation(me)
---Purpose:
returns Boolean
is static;
DisplayPolygons(me)
---Purpose:
returns Boolean
is static;
GetDisplayHLR(me; withHLR : out Boolean;
withRg1 : out Boolean;
withRgN : out Boolean;
withHid : out Boolean;
ang : out Real);
DrawOn(me; dis : in out Display from Draw);
Display(me; T : Triangulation from Poly;
tr : Trsf from gp;
dis : in out Display from Draw)
---Purpose:
is static private;
DisplayHiddenLines(me : mutable; dis : in out Display from Draw);
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)
---Purpose: For variable whatis command.
is redefined;
LastPick(myclass; S : in out Shape from TopoDS; u,v : in out Real);
---Purpose: Returns the subshape touched by the last pick.
-- u,v are the parameters of the closest point.
fields
myShape : Shape from TopoDS;
myEdges : ListOfEdge from DBRep;
myFaces : ListOfFace from DBRep;
myHidData : ListOfHideData from DBRep;
mySize : Real from Standard;
myDiscret : Integer from Standard;
myFreeCol : Color from Draw;
myConnCol : Color from Draw;
myEdgeCol : Color from Draw;
myIsosCol : Color from Draw;
myNbIsos : Integer from Standard;
myDispOr : Boolean from Standard;
mytriangulations : Boolean from Standard;
mypolygons : Boolean from Standard;
myHLR : Boolean from Standard;
myRg1 : Boolean from Standard;
myRgN : Boolean from Standard;
myHid : Boolean from Standard;
myAng : Real from Standard;
end DrawableShape;