-- Created on: 1995-09-21 -- Created by: Remi LEQUETTE -- Copyright (c) 1995-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 HideData from DBRep ---Purpose: This class stores all the informations concerning -- hidden lines on a view. -- -- * View number -- * Matrix of projection -- * Type of projection, focal -- * Arrays of 3d points -- -- A drawable shape contains a list of such objects -- to store the hidden lines for each view. The -- IsSame method is used to check if hidden lines -- must be recompiled. uses Trsf from gp, Display from Draw, Color from Draw, Shape from TopoDS, ListOfBPoint from HLRBRep is Create returns HideData from DBRep; Set (me : in out; ViewId : Integer from Standard; TProj : Trsf from gp; Focal : Real from Standard; S : Shape from TopoDS; ang : Real from Standard); ---Purpose: ViewId is the view number -- TProj the projection -- Focal <= 0 means parallel projection -- Alg : the hidden lines ViewId(me) returns Integer from Standard; ---C++: inline Angle(me) returns Real from Standard; ---C++: inline IsSame(me; TProj : Trsf from gp; Focla : Real) returns Boolean; ---Purpose: Returns True if the projection is the same DrawOn(me :in out; D : in out Display from Draw; withRg1,withRgN,withHid : Boolean from Standard; VisCol, HidCol : Color from Draw); LastPick(me) returns Shape from TopoDS; ---Purpose: Returns the subshape touched by the last pick. ---C++: return const & fields myView : Integer from Standard; myTrsf : Trsf from gp; myFocal : Real from Standard; myBiPntVis : ListOfBPoint from HLRBRep; myBiPntHid : ListOfBPoint from HLRBRep; myPickShap : Shape from TopoDS; myAngle : Real from Standard; end HideData;