-- Created on: 1998-09-23 -- Created by: Denis PASCAL -- Copyright (c) 1998-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 DrawPresentation from DDataStd inherits Attribute from TDF ---Purpose: draw presentaion of a label of a document uses GUID from Standard, AttributeIndexedMap from TDF, DataSet from TDF, AttributeDelta from TDF, Label from TDF, RelocationTable from TDF, Drawable3D from Draw is ---Purpose: api methods on draw presentation -- ================================ HasPresentation (myclass; L : Label from TDF) returns Boolean from Standard; IsDisplayed (myclass; L : Label from TDF) returns Boolean from Standard; Display (myclass; L : Label from TDF); -- display presentation in draw viewer. Erase (myclass; L : Label from TDF); -- erase in draw viewer Update (myclass; L : Label from TDF); -- recompute and display L in draw viewer ---Purpose: attribute implementation -- ======================== GetID(myclass) returns GUID from Standard; ---C++: return const & Create returns mutable DrawPresentation from DDataStd; SetDisplayed (me : mutable; status : Boolean from Standard); IsDisplayed (me) returns Boolean from Standard; SetDrawable (me : mutable; D : Drawable3D from Draw); GetDrawable (me) returns Drawable3D from Draw; ID(me)returns GUID from Standard; ---C++: return const & NewEmpty(me) returns mutable Attribute from TDF; Restore(me: mutable; with : Attribute from TDF); Paste (me; into : mutable Attribute from TDF; RT : mutable RelocationTable from TDF); ---Purpose: call backs for viewer updating -- ============================== AfterAddition (me: mutable) is redefined; BeforeRemoval (me: mutable) is redefined; BeforeForget(me: mutable) is redefined; AfterResume(me: mutable) is redefined; BeforeUndo (me: mutable; anAttDelta : AttributeDelta from TDF; forceIt : Boolean from Standard = Standard_False) returns Boolean from Standard is redefined; AfterUndo (me: mutable; anAttDelta : AttributeDelta from TDF; forceIt : Boolean from Standard = Standard_False) ---Purpose: update draw viewer according to delta returns Boolean from Standard is redefined; ---Purpose: private methods -- =============== DrawBuild (me : mutable) is private; DrawDisplay (myclass; L : Label from TDF; P : DrawPresentation from DDataStd) is private; DrawErase (myclass; L : Label from TDF; P : DrawPresentation from DDataStd) is private; fields isDisplayed : Boolean from Standard; myDrawable : Drawable3D from Draw; end DrawPresentation;