blob: d3735c21706d7a349b639dce3a293e24c18dd869 (
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
|
--
-- File: Graphic3d_VertexC.cdl
-- Created: Jeudi 22 Aout 1991
-- Author: NW,JPB,CAL
--
---Copyright: MatraDatavision 1991,1992,1993
--
class VertexC from Graphic3d inherits Vertex from Graphic3d
---Version:
---Purpose: This class allows the creation and update of a point
-- with a colour value.
---Keywords: Vertex, Color, Coordinate, Point
---Warning:
---References:
uses
Color from Quantity
---Purpose: Returns the color of this point.
is
Create
returns VertexC from Graphic3d;
---Purpose: Constructs an empty point
Create ( AX, AY ,AZ : Real from Standard;
AColor : Color from Quantity )
returns VertexC from Graphic3d;
---Level: Public
---Purpose: Creates a point with coordinates <AX>, <AY>, <AZ> and
-- with colour <AColor>.
Create ( APoint : Vertex from Graphic3d;
AColor : Color from Quantity )
returns VertexC from Graphic3d;
---Level: Public
---Purpose: Creates a point situated in <APoint> and
-- for which the colour is <AColor>.
---------------------------------------------------
-- Category: Methods to modify the class definition
---------------------------------------------------
SetColor ( me : in out;
ColorNew : Color from Quantity )
is static;
---Level: Public
---Purpose: Modifies the colour of the point <me>.
---Category: Methods to modify the class definition
----------------------------
-- Category: Inquire methods
----------------------------
Color ( me )
returns Color from Quantity
is static;
---Level: Public
---Purpose: Returns the colour of the point <me>.
---Category: Inquire methods
--
fields
--
-- Class : Graphic3d_VertexC
--
-- Purpose : Declaration of variables specific to points
--
-- Reminder : a point is defined by its coordinates and its colour
--
-- the colour of a point
MyColor : Color from Quantity;
end VertexC;
|