VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
simTerrainDrawer
debugDrawerGeometryMemory.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: debugDrawerGeometryMemory.h,v $ $Revision: 1.0 $ $State: Exp $
7
******************************************************************************/
8
11
13
14
#pragma once
15
16
#include "
simTerrainDrawer/simTerrainDrawerDefines.h
"
17
#include "
vrfutil/bufferSerialize.h
"
18
#include "matrix/vlVector.h"
19
20
const
int
DtDebugDrawerGeometryMemorySphereType
= 1;
21
const
int
DtDebugDrawerGeometryMemoryLineType
= 2;
22
const
int
DtDebugDrawerGeometryMemoryTriangleType
= 3;
23
const
int
DtDebugDrawerGeometryMemoryTextType
= 4;
24
const
int
DtDebugDrawerGeometryMemoryMaxType
= 5;
25
28
struct
DT_DLL_simTerrainDrawer
DtDebugDrawerGeometryMemoryColor
29
{
30
typedef
std::vector<DtDebugDrawerGeometryMemoryColor>
ColorSequence
;
31
37
static
ColorSequence
GoldrenRatioColors(
38
unsigned
n,
39
const
DtDebugDrawerGeometryMemoryColor
& start,
40
const
DtDebugDrawerGeometryMemoryColor
& end,
41
double
offset = 0);
42
43
static
const
DtDebugDrawerGeometryMemoryColor
Red
;
44
static
const
DtDebugDrawerGeometryMemoryColor
Blue
;
45
static
const
DtDebugDrawerGeometryMemoryColor
Cyan
;
46
static
const
DtDebugDrawerGeometryMemoryColor
Green
;
47
static
const
DtDebugDrawerGeometryMemoryColor
White
;
48
static
const
DtDebugDrawerGeometryMemoryColor
Black
;
49
static
const
DtDebugDrawerGeometryMemoryColor
Yellow
;
50
static
const
DtDebugDrawerGeometryMemoryColor
Purple
;
51
static
const
DtDebugDrawerGeometryMemoryColor
Orange
;
52
static
const
DtDebugDrawerGeometryMemoryColor
Brown
;
53
static
const
DtDebugDrawerGeometryMemoryColor
Gray
;
54
55
DtDebugDrawerGeometryMemoryColor
();
56
DtDebugDrawerGeometryMemoryColor
(
57
unsigned
char
red,
unsigned
char
green,
unsigned
char
blue,
58
unsigned
char
alpha = 128);
59
60
DtDebugDrawerGeometryMemoryColor
operator* (
unsigned
)
const
;
61
DtDebugDrawerGeometryMemoryColor
operator/ (
unsigned
)
const
;
62
63
DtDebugDrawerGeometryMemoryColor
& operator+= (
const
DtDebugDrawerGeometryMemoryColor
&);
64
DtDebugDrawerGeometryMemoryColor
& operator-= (
const
DtDebugDrawerGeometryMemoryColor
&);
65
66
DtDebugDrawerGeometryMemoryColor
operator+ (
const
DtDebugDrawerGeometryMemoryColor
&)
const
;
67
DtDebugDrawerGeometryMemoryColor
operator- (
const
DtDebugDrawerGeometryMemoryColor
&)
const
;
68
69
DtDebugDrawerGeometryMemoryColor
setRed(
unsigned
)
const
;
70
DtDebugDrawerGeometryMemoryColor
setGreen(
unsigned
)
const
;
71
DtDebugDrawerGeometryMemoryColor
setBlue(
unsigned
)
const
;
72
DtDebugDrawerGeometryMemoryColor
setAlpha(
unsigned
)
const
;
73
DtDebugDrawerGeometryMemoryColor
setOpaque()
const
;
74
75
unsigned
char
red
;
76
unsigned
char
green
;
77
unsigned
char
blue
;
78
unsigned
char
alpha
;
79
};
80
81
namespace
DtBufferSerialize
82
{
83
DT_DLL_simTerrainDrawer
int
getSize
(
const
DtDebugDrawerGeometryMemoryColor
& val);
84
DT_DLL_simTerrainDrawer
char
*
encode
(
const
DtDebugDrawerGeometryMemoryColor
& val,
char
*buffer);
85
DT_DLL_simTerrainDrawer
const
char
*
decode
(
DtDebugDrawerGeometryMemoryColor
& val,
const
char
*buffer);
86
}
87
88
class
DT_DLL_simTerrainDrawer
DtDebugDrawerGeometryMemory
89
{
90
public
:
92
virtual
~
DtDebugDrawerGeometryMemory
();
93
98
virtual
char
*
encode
(
char
* buffer) = 0;
99
108
virtual
const
char
*
decode
(
const
char
* buffer) = 0;
109
112
virtual
int
getSize
() = 0;
113
117
virtual
int
type() = 0;
118
121
DtDebugDrawerGeometryMemoryColor
myColor
;
122
};
123
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)