-- Created on: 1995-09-21 -- Created by: Remi LEQUETTE -- Copyright (c) 1995-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 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;