gwnavruntime/visualsystem/visualprimitives.h Source File

visualprimitives.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: GUAL - secondary contact: MAMU
9 #ifndef Navigation_VisualTriangle_H
10 #define Navigation_VisualTriangle_H
11 
12 
15 
16 
17 namespace Kaim
18 {
19 
22 {
23 public:
24  VisualTriangle() {}
25  VisualTriangle(const Vec3f& defA, const Vec3f& defB, const Vec3f& defC, const Vec3f& normal, const VisualColor& color)
26  : A(defA), B(defB), C(defC), m_normal(normal), m_color(color) {}
27 
28  Vec3f A;
29  Vec3f B;
30  Vec3f C;
33 };
34 
35 class VisualLine
36 {
37 public:
38  VisualLine() : m_width(1.f) {}
39  VisualLine(const Vec3f& defA, const Vec3f& defB,const VisualColor& color, KyFloat32 width = 1.f)
40  : A(defA), B(defB), m_color(color), m_width(width) {}
41 
42  Vec3f A;
43  Vec3f B;
44  VisualColor m_color;
45  KyFloat32 m_width; // width of rasterized lines, default is 1.f
46 };
47 
48 class VisualText
49 {
50 public:
51  VisualText() : m_text(KY_NULL), m_length(0) {}
52  VisualText(const char* text, KyUInt32 length, const Vec3f& defA, const VisualColor& color)
53  : m_text(text), m_pos(defA), m_length(length), m_color(color) {}
54 
55  const char* m_text;
56  Vec3f m_pos;
57  KyUInt32 m_length;
58  VisualColor m_color;
59 };
60 
61 }
62 
63 
64 #endif
Represents a single triangle that can be rendered by a class that derives from IVisualGeometry.
Definition: visualprimitives.h:21
Vec3f B
The second point in the triangle.
Definition: visualprimitives.h:30
#define KY_NULL
Null value.
Definition: types.h:247
Represents a single RGBA color.
Definition: visualcolor.h:19
Definition: gamekitcrowddispersion.h:20
Vec3f m_normal
The normal of the front face of the triangle.
Definition: visualprimitives.h:32
Vec3f C
The third point in the triangle.
Definition: visualprimitives.h:31
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
VisualColor m_color
The color that should be used to render the triangle.
Definition: visualprimitives.h:33
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23
Vec3f A
The first point in the triangle.
Definition: visualprimitives.h:29