mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-20 12:45:50 +03:00
Redundant keyword 'mutable' removed in CDL files. In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed. Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
127 lines
3.5 KiB
Plaintext
127 lines
3.5 KiB
Plaintext
-- Created on: 1998-09-23
|
|
-- Created by: Denis PASCAL
|
|
-- Copyright (c) 1998-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 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 <L> presentation in draw viewer.
|
|
|
|
Erase (myclass; L : Label from TDF);
|
|
-- erase <L> 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 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 Attribute from TDF;
|
|
|
|
Restore(me: mutable; with : Attribute from TDF);
|
|
|
|
Paste (me; into : Attribute from TDF;
|
|
RT : 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;
|