VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtDeadReckonUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtDe.h
>
14
#include <
vrvCore/DtSceneObjectUpdater.h
>
15
16
#include <string>
17
18
class
DtVector
;
19
class
DtTaitBryan;
20
21
namespace
makVrv
22
{
23
class
DtMotionModel;
24
29
class
DT_DLL_VRVCORE
DtDeadReckonUpdater
:
public
DtSceneObjectUpdater
30
{
31
public
:
32
34
DtDeadReckonUpdater
(
DtDe
& de,
DtUniqueID
id
,
bool
suppressTick =
false
);
35
37
virtual
~
DtDeadReckonUpdater
();
38
40
virtual
void
update( DtTime tNow );
41
45
virtual
void
setSceneObject(
DtSceneObject
* sceneObject);
46
48
virtual
void
setPosition(
const
DtVector
& position);
49
51
virtual
void
setOrientation(
const
DtTaitBryan& ori);
52
54
virtual
void
setVelocity(
const
DtVector
& velocity);
55
57
virtual
void
setAcceleration(
const
DtVector
& acceleration);
58
60
virtual
void
setAngularVelocity(
const
DtVector
& angularVelocity);
61
63
virtual
void
setDeadReckoningSettings(
bool
deadReckonPosition,
64
bool
deadReckonVelocity,
bool
deadReckonOrientation);
65
67
virtual
void
setSmoothingEnabled(
bool
enabled);
68
70
virtual
void
setSmoothingPeriod(
float
period);
71
73
virtual
void
updateSpacial(DtTime tNow);
74
76
void
setMotionModel(
const
std::string& modelName);
77
79
DtMotionModel
* motionModel();
80
protected
:
81
82
DtMotionModel
*
myMotionModel
;
83
std::string
myMotionModelType
;
84
unsigned
int
myDeadReckoningSetting
;
85
86
float
mySmoothingPeriod
;
87
float
mySmoothingEnabled
;
88
89
};
90
}
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
)