1 -- Created on: 1997-01-24
2 -- Created by: Robert COUBLANC
3 -- Copyright (c) 1997-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class GlobalStatus from AIS inherits TShared from MMgt
19 ---Purpose: Stores information about objects in graphic context:
20 -- - Status Of Display : in the main viewer
21 -- hidden in the main viewer
23 -- - Active Selection Modes
24 -- - is the Interactive Object Current ?
28 ListOfInteger from TColStd,
29 DisplayStatus from AIS,
30 NameOfColor from Quantity
34 Create returns GlobalStatus from AIS;
36 Create (aStat : DisplayStatus from AIS;
37 aDispMode,aSelMode: Integer from Standard;
38 ishilighted : Boolean from Standard=Standard_False;
39 TheHiCol : NameOfColor from Quantity = Quantity_NOC_WHITE;
40 aLayerIndex : Integer from Standard = 0)
41 returns GlobalStatus from AIS;
43 ---Category: Modifications.
45 SetGraphicStatus(me:mutable; aStat : DisplayStatus from AIS);
47 AddDisplayMode(me:mutable; aMode: Integer from Standard);
49 AddSelectionMode(me:mutable; aMode : Integer from Standard);
51 SetLayerIndex (me: mutable ; AnIndex : Integer from Standard);
53 SetHilightStatus (me: mutable; aStat:Boolean from Standard);
55 SetHilightColor(me:mutable;aHiCol : NameOfColor from Quantity);
60 IsSubIntensityOn(me) returns Boolean from Standard;
62 SubIntensityOn (me: mutable);
64 SubIntensityOff (me: mutable);
69 RemoveDisplayMode(me:mutable; aMode : Integer from Standard);
71 RemoveSelectionMode(me:mutable; aMode : Integer from Standard);
72 ClearSelectionModes(me:mutable);
75 ---Category: Information.
78 GraphicStatus(me) returns DisplayStatus from AIS;
81 DisplayedModes(me) returns ListOfInteger from TColStd;
82 ---C++: return const &
84 ---Purpose: keeps the information of displayed modes in the
87 SelectionModes(me) returns ListOfInteger from TColStd;
88 ---C++: return const &
90 ---Purpose: keeps the active selection modes of the object
91 -- in the main viewer.
93 IsHilighted(me) returns Boolean from Standard;
96 HilightColor(me) returns NameOfColor from Quantity;
99 IsDModeIn(me; aMode : Integer from Standard) returns Boolean from Standard;
101 IsSModeIn(me; aMode : Integer from Standard) returns Boolean from Standard;
106 myStatus : DisplayStatus from AIS;
107 myDispModes : ListOfInteger from TColStd;
108 mySelModes : ListOfInteger from TColStd;
109 myLayerIndex : Integer from Standard;
110 myIsHilit : Boolean from Standard;
111 myHiCol : NameOfColor from Quantity;