blob: 14ad7a688c2fe08da47ba8931b0ceed25ab79200 (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
--
-- File: Graphic3d_AspectMarker3d.cdl
-- Created: Lunid 2 Septembre 1991
-- Author: NW,JPB,CAL
--
---Copyright: MatraDatavision 1991,1992,1993
--
class AspectMarker3d from Graphic3d inherits AspectMarker from Aspect
---Version:
---Purpose: Creates and updates an attribute group for
-- marker type primitives. This group contains the type
-- of marker, its colour, and its scale factor.
---Keywords: Marker, Color, Scale, Type
---Warning:
---References:
uses
Color from Quantity,
TypeOfMarker from Aspect,
HArray1OfByte from TColStd
is
Create
returns mutable AspectMarker3d from Graphic3d;
---Level: Public
---Purpose: Creates a context table for marker primitives
-- defined with the following default values:
--
-- Marker type : TOM_X
-- Colour : YELLOW
-- Scale factor : 1.0
Create ( AType : TypeOfMarker from Aspect;
AColor : Color from Quantity;
AScaleOrId : Real from Standard
)
returns mutable AspectMarker3d from Graphic3d;
Create ( AType : TypeOfMarker from Aspect;
AColor : Color from Quantity;
AScaleOrId : Real from Standard;
AWidth : Integer from Standard;
AHeight : Integer from Standard;
ATexture : HArray1OfByte from TColStd
)
returns mutable AspectMarker3d from Graphic3d;
---Level: Public
---Purpose: Creates a context table for marker primitives
-- defined with the specified values.
GetTextureSize (me:mutable; AWidth : out Integer from Standard;
AHeight : out Integer from Standard);
---Level: Public
---Purpose: Returns marker's texture size.
GetTexture (me:mutable)
returns HArray1OfByte from TColStd;
---Level: Public
---Purpose: Returns marker's texture.
---C++: return const &
SetTexture ( me: mutable;
AWidth : Integer from Standard;
AHeight : Integer from Standard;
ATexture : HArray1OfByte from TColStd ) is static;
--
fields
--
-- Class : Graphic3d_AspectMarker3d
--
-- Purpose : Declaration of context-specific variables
-- for drawing 3d markers.
--
-- Reminder : A context for drawing 3d markers inherits:
-- - the colour
-- - the type of marker
-- - the scale factor
-- defined by AspectMarker.
MyTexture : HArray1OfByte from TColStd is protected;
MyTextureWidth : Integer from Standard is protected;
MyTextureHeight : Integer from Standard is protected;
end AspectMarker3d;
|