VR-Forces 4.5 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
vrvCore
DtEllipseUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
13
#include <
vrvCore/vrvCore.h
>
14
#include <
vrvCore/DtSceneObject.h
>
15
#include <
vrvCore/DtTickable.h
>
16
#include <
vrvCore/DtUniqueID.h
>
17
#include <matrix/vlTaitBryan.h>
18
19
#include <matrix/vlVector.h>
20
21
namespace
makVrv
22
{
26
class
DT_DLL_VRVCORE
DtEllipseUpdater
:
public
DtTickable
27
{
28
public
:
29
31
DtEllipseUpdater
(
makVrv::DtDe
& de,
makVrv::DtUniqueID
id
);
32
34
virtual
~
DtEllipseUpdater
();
35
37
virtual
void
update(
double
simTime );
38
39
virtual
void
setOrientationDelta(
double
);
40
42
virtual
void
setClamped(
bool
);
43
46
virtual
void
setPosition(
int
,
const
DtVector
&);
47
50
virtual
void
setSceneObject(
DtSceneObject
* sceneObject );
51
58
virtual
bool
needsUpdate(
DtTime
tNow );
59
63
virtual
void
setUpdaterPosition(
int
vtx,
const
DtVector
& pos );
64
68
virtual
void
setUpdaterOrientation(
int
vtx,
const
DtTaitBryan& ori );
69
72
virtual
void
setDynamicOrigin(
bool
);
73
74
protected
:
75
76
virtual
bool
computeGroundClampingHit(
const
DtVector
& up,
77
const
DtVector
& unclampedPosition,
DtVector
& hitLocation,
DtVector
& hitNormal);
78
80
virtual
DtTaitBryan computeOrientation(
const
DtVector
& pos,
81
double
topoHeading)
const
;
82
85
virtual
void
slot_sceneObjectToBeDeleted(
const
DtUniqueID
&
id
);
87
88
private
:
94
DtSceneObject::ObjectTransform
& getOrCreateTransform(
int
vtx );
95
96
protected
:
97
DtVector
myOrigin
;
98
DtVector
myClampedOrigin
;
99
100
double
myOrientationDelta
;
101
102
bool
mySceneObjectChanged
;
103
bool
myClamped
;
104
106
DtDe
&
myDe
;
107
109
DtUniqueID
myUniqueId
;
110
112
DtSceneObject
*
mySceneObject
;
113
118
DtSceneObject::TransformList
myTransforms
;
119
120
DtTime
myLastUpdateTime
;
121
122
DtTaitBryan
myInitialOrientation
;
123
124
bool
myDynamicOrigin
;
125
DtVector
myLastAnglePosition
;
126
DtVector
myDynamicOriginPosition
;
127
};
128
}
129
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)