VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtAttachableDeadReckonUpdater.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
DtAttachableUpdater;
24
class
DtDeadReckonUpdater;
25
30
class
DT_DLL_VRVCORE
DtAttachableDeadReckonUpdater
:
public
DtSceneObjectUpdater
31
{
32
public
:
33
35
DtAttachableDeadReckonUpdater
(
DtDe
& de,
DtUniqueID
id
,
bool
suppressTick =
false
);
36
38
virtual
~
DtAttachableDeadReckonUpdater
();
39
41
virtual
void
update( DtTime tNow );
42
46
virtual
void
deadReckonAndAttach( DtTime tNow );
47
51
virtual
void
addAttachedPoint(
const
DtVector
& position,
int
targetVertexIndex );
52
56
virtual
void
addAttachedPoint(
DtUniqueID
uniqueID,
int
targetVertexIndex );
57
61
virtual
void
addAttachedPoint(
DtUniqueID
uniqueID,
int
vtx1,
int
vtx2,
62
double
proportion,
int
targetVertexIndex );
63
65
virtual
void
setPosition(
const
DtVector
& position);
66
68
virtual
void
setOrientation(
const
DtTaitBryan& ori);
69
71
virtual
void
setVelocity(
const
DtVector
& velocity);
72
74
virtual
void
setAcceleration(
const
DtVector
& acceleration);
75
77
virtual
void
setAngularVelocity(
const
DtVector
& angularVelocity);
78
80
virtual
void
setDeadReckoningSettings(
bool
deadReckonPosition,
81
bool
deadReckonVelocity,
bool
deadReckonOrientation);
82
84
virtual
void
setSmoothingEnabled(
bool
enabled);
85
87
virtual
void
setSmoothingPeriod(
float
period);
88
90
virtual
void
updateSpacial(
double
simulationTime);
91
93
void
setMotionModel(
const
std::string& modelName);
94
96
virtual
void
setSceneObject(
DtSceneObject
* sceneObject );
97
98
99
protected
:
100
101
DtAttachableUpdater
*
myAttachableUpdater
;
102
DtDeadReckonUpdater
*
myDeadReckonUpdater
;
103
104
};
105
}
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
)