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
|
// File Graphic3d_VertexC.cxx
// Created Fevrier 1992
// Author NW,JPB,CAL
//-Copyright MatraDatavision 1991,1992
//-Version
//-Design Declaration of variables specific to points
//-Warning A point is defined by its coordinates and color
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_VertexC.ixx>
//-Aliases
//-Global data definitions
// -- point color
// MyColor : Color;
//-Constructors
//-Destructors
//-Methods, in order
Graphic3d_VertexC::Graphic3d_VertexC () {
}
// :(AX, AY, AZ) as VertexC inherits Vertex and it is necessary to call
// constructor of Vertex with AX, AY and AZ to update fields MyX, MyY, MyZ.
Graphic3d_VertexC::Graphic3d_VertexC (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ, const Quantity_Color& AColor):
Graphic3d_Vertex (AX, AY, AZ),
MyColor (AColor) {
}
// :(APoint) as VertexC inherits Vertex and it is necessary to call
// constructor of Vertex with APoint to update fields MyX, MyY, MyZ.
Graphic3d_VertexC::Graphic3d_VertexC (const Graphic3d_Vertex& APoint, const Quantity_Color& AColor):
Graphic3d_Vertex (APoint),
MyColor (AColor) {
}
Quantity_Color Graphic3d_VertexC::Color () const {
return (MyColor);
}
void Graphic3d_VertexC::SetColor (const Quantity_Color& ColorNew) {
MyColor = ColorNew;
}
|