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
vrvDrawControl
DtLine3DObject.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MaK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
6
#pragma once
7
11
12
#include <vector>
13
14
#include <vlutil/vlString.h>
15
16
#include <
vrvDrawControl/vrvDrawControl.h
>
17
18
#include <
vrvDrawControl/Dt3DTwoPositionedObject.h
>
19
#include <
vrvDrawControl/DtLineObjectInterface.h
>
20
#include <
vrvDrawControl/DtVdc3DAttachPoint.h
>
21
#include <
vrvDrawControl/DtVdcLineSegment.h
>
22
23
#include <
vrvDrawControl/DtVdcColor.h
>
24
25
#include <vl/environmentalLineRecord.h>
26
#include <
vrfExtObjects/3dGraphicalObjectLineStateRecord.h
>
27
28
namespace
vrvControlToolkit
29
{
30
38
class
DT_DLL_VRVDRAWCONTROL
DtLine3DObject
:
public
Dt3DTwoPositionedObject
,
39
public
DtLineObjectInterface
40
{
41
public
:
85
DtLine3DObject
(DtExerciseConn* exConn,
unsigned
id
,
const
DtVdc3DAttachPoint
& startAttachment,
86
const
DtVdc3DAttachPoint
& endAttachment,
int
numSegments=1,
87
const
DtVector
& offset = DtVector::zero(),
88
DtVdcColor
color =
DtVdcColor::DtVdcWhite
,
89
DtVdcLineSegment::DtVdcSegmentStyle
lineStyle =
90
DtVdcLineSegment::DtVdcSegmentStyleStraight
,
91
DtVdcLineSegment::DtVdcSegmentArrowStyle
arrowStyle =
92
DtVdcLineSegment::DtVdcSegmentArrowStyleNoArrow
,
93
unsigned
thickness=1,
unsigned
pattern=0xffffff,
bool
flashing =
false
,
94
bool
checkLos =
false
,
bool
projected =
false
);
95
96
97
virtual
~
DtLine3DObject
();
98
99
private
:
104
DtLine3DObject
();
105
109
DtLine3DObject
(
const
DtLine3DObject
& orig);
110
114
DtLine3DObject
& operator=(
const
DtLine3DObject
& rhs);
115
116
117
public
:
123
virtual
const
DtVdc3DAttachPoint
& startAttachment()
const
;
124
130
virtual
void
setStartAttachment(
const
DtVdc3DAttachPoint
& startAttachment);
131
137
virtual
const
DtVdc3DAttachPoint
& endAttachment()
const
;
138
144
virtual
void
setEndAttachment(
const
DtVdc3DAttachPoint
& endAttachment);
145
152
virtual
const
DtVector32& offset()
const
;
153
159
virtual
void
setOffset(
const
DtVector32& off);
160
166
virtual
int
numSegments()
const
;
167
173
virtual
void
setNumSegments(
int
numSegments);
174
182
virtual
const
DtVdcColor
& color(
int
segment)
const
;
183
virtual
const
DtVdcColor
& color()
const
;
184
192
virtual
void
setColor (
const
DtVdcColor
& color,
int
segment);
193
virtual
void
setColor (
const
DtVdcColor
& color);
194
202
virtual
DtVdcLineSegment::DtVdcSegmentStyle
lineStyle(
int
segment=0)
const
;
203
211
virtual
void
setLineStyle(
DtVdcLineSegment::DtVdcSegmentStyle
lineStyle,
212
int
segment=0);
213
222
virtual
DtVdcLineSegment::DtVdcSegmentArrowStyle
arrowStyle(
int
segment=0)
223
const
;
224
232
virtual
void
setArrowStyle(
DtVdcLineSegment::DtVdcSegmentArrowStyle
arrowStyle,
233
int
segment=0);
234
242
virtual
unsigned
pattern(
int
segment=0)
const
;
243
251
virtual
void
setPattern(
unsigned
pattern,
int
segment=0);
252
260
virtual
unsigned
thickness(
int
segment=0)
const
;
261
271
virtual
void
setThickness(
unsigned
thickness,
int
segment=0);
272
280
virtual
double
percentage(
int
segment)
const
;
281
291
virtual
void
setPercentage(
double
percentage,
int
segment);
292
298
virtual
bool
flashing()
const
;
299
305
virtual
void
setFlashing(
bool
flashing);
306
313
virtual
bool
checkLos()
const
;
314
321
virtual
void
setCheckLos(
bool
checkLos);
322
329
virtual
bool
projected()
const
;
330
337
virtual
void
setProjected (
bool
projected );
338
339
virtual
void
setRemoteGraphicSet(
const
std::string& setName);
340
349
virtual
void
update();
350
351
protected
:
352
void
initRecords();
353
354
protected
:
355
DtVdc3DAttachPoint
myStartAttachment
;
356
DtVdc3DAttachPoint
myEndAttachment
;
357
DtVector32
myOffset
;
358
bool
myFlashing
;
359
bool
myCheckLos
;
360
bool
myProjected
;
361
std::vector<DtVdcLineSegment>
myLineSegments
;
362
363
DtEnvironmentalLineRecord
myLineRecord
;
364
Dt3DGraphicalObjectLineStateRecord
myLineStateRecord
;
365
};
366
367
}
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
)