blob: c3bc2245e39ee01bc0eb3a5ca574a69fa7510947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
--
-- File: Graphic3d_GraphicDevice.cdl
-- Created: Mercredi 19 Janvier 1994
-- Author: CAL
-- Modified: GG RIC120302 add new constructor to pass Display structure
-- directly instead the connexion name.
---Copyright: Matra Datavision 1994
class GraphicDevice from Graphic3d inherits GraphicDevice from Xw
---Purpose: This class allows the definition of the Advanced
-- Graphic Device
-- Warning: An Graphic Device is defined by a connexion
-- "host:server.screen"
uses
SharedLibrary from OSD,
GraphicDriver from Aspect,
Display from Aspect,
GraphicDriver from Graphic3d,
TypeOfMapping from Xw
raises
GraphicDeviceDefinitionError from Aspect
is
Create ( Connexion : CString from Standard;
Mapping : TypeOfMapping from Xw = Xw_TOM_COLORCUBE;
Ncolors : Integer from Standard = 0;
UseDefault : Boolean from Standard = Standard_True )
returns mutable GraphicDevice from Graphic3d
---Level: Public
---Purpose: Creates a GraphicDevice
---Warning: Raises if the Device is badly defined
raises GraphicDeviceDefinitionError from Aspect;
Create ( DisplayHandle : Display from Aspect)
returns mutable GraphicDevice from Graphic3d
---Level: Public
---Purpose: Creates a GraphicDevice from the Display structure
---Warning: Raises if the Device is badly defined
raises GraphicDeviceDefinitionError from Aspect;
Destroy ( me : mutable )
is redefined static;
---Level: Public
---Purpose: Deletes the GraphicDevice <me>.
---C++: alias ~
GraphicDriver ( me )
returns GraphicDriver from Aspect
is redefined static;
---Level: Public
---Purpose: Returns the GraphicDriver.
SetGraphicDriver ( me : mutable )
is private;
---Level: Internal
---Purpose: Sets the GraphicDriver.
ShrIsDefined ( me;
aShr : out CString from Standard )
returns Boolean from Standard
is private;
---Level: Internal
---Purpose: Returns Standard_True if the shared library
-- is defined by the environment.
-- (variables : CSF_GraphicShr, CSF_Graphic3dLib, GRAPHICHOME)
fields
MyGraphicDriver : GraphicDriver from Graphic3d;
end GraphicDevice from Graphic3d;
|