-- Created on: 1991-07-04 -- 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. class DrawableShape from DBRep inherits Drawable3D from Draw ---Purpose: Drawable structure to display a shape. Contains a -- list of edges and a list of faces. 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 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 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;