1 -- Created on: 1993-08-24
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
22 class TypeMap from Xw inherits Transient
26 ---Purpose: This class defines a TypeMap object.
35 TypeMapEntry from Aspect,
40 TypeMapDefinitionError from Aspect,
46 returns mutable TypeMap from Xw
50 Create ( Connexion : CString from Standard )
51 returns mutable TypeMap from Xw
53 ---Purpose: Creates a TypeMap with unallocated TypeMapEntry.
54 -- Warning: Raises if TypeMap creation failed according
55 -- to the supported hardware
56 raises TypeMapDefinitionError from Aspect ;
58 SetEntry ( me : mutable ;
59 Entry : TypeMapEntry from Aspect )
61 ---Purpose: Modifies an entry already defined or Add the Entry
62 -- in the type map <me> if it don't exist.
63 -- Warning: Raises if TypeMap size is exceeded,
64 -- or TypeMap is not defined properly,
65 -- or TypeMapEntry Index is out of range according
66 -- to the supported hardware
67 raises BadAccess from Aspect is virtual;
69 SetEntries ( me : mutable ;
70 Typemap : TypeMap from Aspect )
72 ---Purpose: Modifies all entries from a new Typemap
73 -- Warning: Raises if TypeMap size is exceeded,
74 -- or TypeMap is not defined properly,
75 -- or One of new TypeMapEntry Index is out of range according
76 -- to the supported hardware
77 raises BadAccess from Aspect is virtual;
79 Destroy ( me : mutable ) is virtual;
81 ---Purpose: Destroies the Typemap
84 ----------------------------
85 -- Category: Inquire methods
86 ----------------------------
89 returns Integer from Standard
91 ---Purpose: Returns the Number of Free Types in the Typemap
92 -- depending of the HardWare
93 -- Warning: Raises if TypeMap is not defined properly
94 raises BadAccess from Aspect is static;
96 ExtendedTypeMap ( me )
97 returns Address from Standard
100 ---Purpose: Returns extended data typemap structure pointer.
101 ---Category: Inquire methods
106 MyExtendedDisplay : Address from Standard ;
107 MyExtendedTypeMap : Address from Standard ;
111 class GraphicDevice from Xw