VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfExtObjects
lineSegmentDescriptor.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
class
DtLineSegmentDescriptor
;
13
14
#include <vlutil/vlNetTypes.h>
15
16
#include <
vrfExtObjects/dllExport.h
>
17
18
class
DT_DLL_vrfExtObjects
DtNetLineSegmentDescriptor
19
{
20
public
:
21
DtNetFloat32
myPercentage
;
22
DtNetU32
myLinePattern
;
23
DtNetU8 myColor[4];
24
DtNetU16
myLineWidth
;
25
DtNetU8
myLineStyle
;
26
DtNetU8
myArrowStyle
;
27
28
DtLineSegmentDescriptor
operator=(
const
DtLineSegmentDescriptor
&);
29
DtNetLineSegmentDescriptor
& operator=(
const
DtNetLineSegmentDescriptor
&);
30
};
31
32
class
DT_DLL_vrfExtObjects
DtLineSegmentDescriptor
33
{
34
public
:
35
37
DtLineSegmentDescriptor
();
38
40
DtLineSegmentDescriptor
(
float
percent,
int
style,
int
width,
int
pattern,
41
int
arrow,
int
colorR,
int
colorG,
int
colorB,
int
colorA);
42
44
DtLineSegmentDescriptor
(
const
DtLineSegmentDescriptor
& orig);
45
47
DtLineSegmentDescriptor
& operator=(
const
DtLineSegmentDescriptor
& orig);
48
50
DtLineSegmentDescriptor
(
const
DtNetLineSegmentDescriptor
& netDesc);
51
53
operator
DtNetLineSegmentDescriptor
()
const
;
54
56
bool
operator==
(
const
DtLineSegmentDescriptor
& other)
const
;
57
bool
operator!=
(
const
DtLineSegmentDescriptor
& other)
const
;
58
60
61
virtual
void
setPercentage(
float
percent);
62
virtual
float
percentage()
const
;
63
64
virtual
void
setLineStyle(
int
style);
65
virtual
int
lineStyle()
const
;
66
67
virtual
void
setLineWidth(
int
width);
68
virtual
int
lineWidth()
const
;
69
70
virtual
void
setLinePattern(
int
pattern);
71
virtual
int
linePattern()
const
;
72
73
virtual
void
setArrowStyle(
int
style);
74
virtual
int
arrowStyle()
const
;
75
76
virtual
void
setColor(
int
r,
int
g,
int
b,
int
a);
77
virtual
void
getColor(
int
& r,
int
&g,
int
& b,
int
& a)
const
;
79
80
protected
:
81
float
myPercentage
;
82
int
myLineStyle
;
83
int
myLineWidth
;
84
int
myLinePattern
;
85
int
myArrowStyle
;
86
int
myColorR
;
87
int
myColorG
;
88
int
myColorB
;
89
int
myColorA
;
90
};
91
92
class
DT_DLL_vrfExtObjects
DtLineSegmentDescriptorList
93
{
94
public
:
96
DtLineSegmentDescriptorList
();
97
99
virtual
~
DtLineSegmentDescriptorList
();
100
102
DtLineSegmentDescriptorList
(
const
DtLineSegmentDescriptorList
& orig);
103
105
DtLineSegmentDescriptorList
& operator=(
106
const
DtLineSegmentDescriptorList
& orig);
107
109
int
operator==
(
const
DtLineSegmentDescriptorList
& other)
const
;
110
int
operator!=
(
const
DtLineSegmentDescriptorList
& other)
const
;
111
114
virtual
void
setNumDescriptors(
int
num);
115
virtual
int
numDescriptors()
const
;
116
118
virtual
bool
setDescriptor(
int
index,
119
const
DtLineSegmentDescriptor
& desc);
120
123
virtual
const
DtLineSegmentDescriptor
& descriptor(
124
int
index,
bool
* valid = 0)
const
;
125
127
virtual
void
setFromNet(
const
void
* netRep,
int
length);
128
132
virtual
const
void
* netRep(
int
*
size
= 0)
const
;
133
135
virtual
int
netSize()
const
;
136
137
protected
:
138
139
int
myNumberOfDescriptors
;
140
DtLineSegmentDescriptor
*
myDescriptors
;
141
DtLineSegmentDescriptor
myEmptyDescriptor
;
142
void
*
myNetRep
;
143
144
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)