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
vrvDrawControl
DtCylinderObject.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtCylinderObject.h,v $ $Revision: 1.3 $ $State: Exp $
7
******************************************************************************/
8
#pragma once
9
14
15
#include <vlutil/vlString.h>
16
#include <matrix/vlVector.h>
17
#include <matrix/vlTaitBryan.h>
18
19
#include <
vrvDrawControl/vrvDrawControl.h
>
20
21
#include <
vrvDrawControl/DtVdc3DAttachPoint.h
>
22
#include <
vrvDrawControl/DtVdcVector2D.h
>
23
#include <
vrvDrawControl/Dt3DTwoPositionedObject.h
>
24
25
#include <
vrfExtObjects/3dGraphicalObjectStateRecord.h
>
26
#include <
vrfExtObjects/environmentalFixedCylinderRecord.h
>
27
#include <
vrfExtObjects/environmentalArticulatingCylinderRecord.h
>
28
29
namespace
vrvControlToolkit
30
{
31
32
42
class
DT_DLL_VRVDRAWCONTROL
DtCylinderObject
:
public
Dt3DTwoPositionedObject
43
{
44
public
:
68
69
70
DtCylinderObject
(DtExerciseConn* exConn,
unsigned
id
,
71
const
DtVdc3DAttachPoint
& attachment,
double
length,
72
const
DtVdcVector2D
& diameters,
const
DtVector
&
offset
= DtVector::zero(),
73
const
DtTaitBryan& rotation = zeros,
74
DtVdcColor
color =
DtVdcColor::DtVdcWhite
,
bool
flashing =
false
);
75
97
DtCylinderObject
(DtExerciseConn* exConn,
unsigned
id
,
98
const
DtVdc3DAttachPoint
& startAttachment,
99
const
DtVdc3DAttachPoint
& endAttachment,
100
const
DtVdcVector2D
& diameters,
101
const
DtVector
&
offset
= DtVector::zero(),
102
DtVdcColor
color =
DtVdcColor::DtVdcWhite
,
bool
flashing =
false
);
103
104
// \brief Virtual destructor
105
virtual
~
DtCylinderObject
();
106
107
private
:
112
DtCylinderObject
();
113
117
DtCylinderObject
(
const
DtCylinderObject
& orig);
118
122
DtCylinderObject
& operator=(
const
DtCylinderObject
& rhs);
123
124
public
:
131
virtual
const
DtVdc3DAttachPoint
& attachment()
const
;
132
137
virtual
void
setAttachment(
const
DtVdc3DAttachPoint
& attachment);
138
145
virtual
const
DtVdc3DAttachPoint
& startAttachment()
const
;
146
151
virtual
void
setStartAttachment(
const
DtVdc3DAttachPoint
& startAttachment);
152
159
virtual
const
DtVdc3DAttachPoint
& endAttachment()
const
;
160
165
virtual
void
setEndAttachment(
const
DtVdc3DAttachPoint
& endAttachment);
166
173
virtual
const
DtVector32&
offset
()
const
;
174
180
virtual
void
setOffset(
const
DtVector32& off);
181
187
virtual
double
length()
const
;
188
194
virtual
void
setLength(
double
length);
195
202
virtual
const
DtVdcVector2D
& diameters()
const
;
203
209
virtual
void
setDiameters(
const
DtVdcVector2D
& diameters);
210
217
virtual
const
DtTaitBryan& rotation()
const
;
218
225
virtual
void
setRotation(
const
DtTaitBryan& rotation);
226
232
virtual
const
DtVdcColor
& color()
const
;
233
239
virtual
void
setColor (
const
DtVdcColor
& color);
240
246
virtual
bool
flashing()
const
;
247
253
virtual
void
setFlashing(
bool
flashing);
254
255
virtual
void
setRemoteGraphicSet(
const
std::string& setName);
256
265
virtual
void
update();
266
267
protected
:
268
void
initRecords();
269
270
private
:
271
// Initializer for DtTaitBryan
272
static
DtTaitBryan
zeros
;
273
274
protected
:
275
DtVdc3DAttachPoint
myStartAttachment
;
// also single attachment
276
DtVdc3DAttachPoint
myEndAttachment
;
277
double
myLength
;
278
DtVdcVector2D
myDiameters
;
279
DtVector32
myOffset
;
280
DtVdcColor
myColor
;
281
DtTaitBryan
myRotation
;
282
bool
myFlashing
;
283
284
Dt3DGraphicalObjectStateRecord
myStateRecord
;
285
DtEnvironmentalFixedCylinderRecord
myFixedCylinderRecord
;
286
DtEnvironmentalArticulatingCylinderRecord
myArticulatingCylinderRecord
;
287
};
288
}
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
)