VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtObjects
3dLineSegmentDescriptor.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: 3dLineSegmentDescriptor.h,v $ $Revision: 1.1 $ $State: Exp $
7
*********************************************************************/
8
#ifndef Dt3dLineSegmentDescriptor_H_
9
#define Dt3dLineSegmentDescriptor_H_
10
11
class
DtLineSegmentDescriptor
;
12
13
#include <vlutil/vlNetTypes.h>
14
15
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
16
17
class
DT_DLL_vrfExtObjects
DtNetLineSegmentDescriptor
18
{
19
public
:
20
DtNetFloat32
myPercentage
;
21
DtNetU32
myLinePattern
;
22
DtNetU8 myColor[4];
23
DtNetU16
myLineWidth
;
24
DtNetU8
myLineStyle
;
25
DtNetU8
myArrowStyle
;
26
27
DtLineSegmentDescriptor
operator=(
const
DtLineSegmentDescriptor
&);
28
DtNetLineSegmentDescriptor
& operator=(
const
DtNetLineSegmentDescriptor
&);
29
};
30
31
class
DT_DLL_vrfExtObjects
DtLineSegmentDescriptor
32
{
33
public
:
35
DtLineSegmentDescriptor
();
36
38
DtLineSegmentDescriptor
(
float
percent,
int
style,
int
width,
int
pattern,
39
int
arrow,
int
colorR,
int
colorG,
int
colorB,
int
colorA);
40
42
DtLineSegmentDescriptor
(
const
DtLineSegmentDescriptor
& orig);
43
45
DtLineSegmentDescriptor
& operator=(
const
DtLineSegmentDescriptor
& orig);
46
48
DtLineSegmentDescriptor
(
const
DtNetLineSegmentDescriptor
& netDesc);
49
51
operator
DtNetLineSegmentDescriptor
()
const
;
52
54
bool
operator==
(
const
DtLineSegmentDescriptor
& other)
const
;
55
bool
operator!=
(
const
DtLineSegmentDescriptor
& other)
const
;
56
58
59
virtual
void
setPercentage(
float
percent);
60
virtual
float
percentage()
const
;
61
62
virtual
void
setLineStyle(
int
style);
63
virtual
int
lineStyle()
const
;
64
65
virtual
void
setLineWidth(
int
width);
66
virtual
int
lineWidth()
const
;
67
68
virtual
void
setLinePattern(
int
pattern);
69
virtual
int
linePattern()
const
;
70
71
virtual
void
setArrowStyle(
int
style);
72
virtual
int
arrowStyle()
const
;
73
74
virtual
void
setColor(
int
r,
int
g,
int
b,
int
a);
75
virtual
void
getColor(
int
& r,
int
&g,
int
& b,
int
& a)
const
;
77
78
protected
:
79
float
myPercentage
;
80
int
myLineStyle
;
81
int
myLineWidth
;
82
int
myLinePattern
;
83
int
myArrowStyle
;
84
int
myColorR
;
85
int
myColorG
;
86
int
myColorB
;
87
int
myColorA
;
88
};
89
90
class
DT_DLL_vrfExtObjects
DtLineSegmentDescriptorList
91
{
92
public
:
94
DtLineSegmentDescriptorList
();
95
97
virtual
~
DtLineSegmentDescriptorList
();
98
100
DtLineSegmentDescriptorList
(
const
DtLineSegmentDescriptorList
& orig);
101
103
DtLineSegmentDescriptorList
& operator=(
104
const
DtLineSegmentDescriptorList
& orig);
105
107
int
operator==
(
const
DtLineSegmentDescriptorList
& other)
const
;
108
int
operator!=
(
const
DtLineSegmentDescriptorList
& other)
const
;
109
112
virtual
void
setNumDescriptors(
int
num);
113
virtual
int
numDescriptors()
const
;
114
116
virtual
bool
setDescriptor(
int
index,
117
const
DtLineSegmentDescriptor
& desc);
118
121
virtual
const
DtLineSegmentDescriptor
& descriptor(
122
int
index,
bool
* valid = 0)
const
;
123
125
virtual
void
setFromNet(
const
void
* netRep,
int
length);
126
130
virtual
const
void
* netRep(
int
* size = 0)
const
;
131
133
virtual
int
netSize()
const
;
134
135
protected
:
136
int
myNumberOfDescriptors
;
137
DtLineSegmentDescriptor
*
myDescriptors
;
138
DtLineSegmentDescriptor
myEmptyDescriptor
;
139
void
*
myNetRep
;
140
};
141
142
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)