VR-Forces 4.3.1 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
vrfobjcore
scriptAnimationModel.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
#pragma once
6
7
#include <
vrfobjcore/vrfobjcoreDefines.h
>
8
9
#include "
vrfobjcore/scriptVrfObject.h
"
10
#include "
vrfobjcore/animationModel.h
"
11
#include "
vrfutil/objectCounter.h
"
12
13
#include <boost/shared_ptr.hpp>
14
15
class
DT_DLL_vrfobjcore
DtScriptAnimationModel
16
:
public
DtAsciiSerializable
17
,
public
DtObjectDebugger
<DtScriptAnimationModel>
18
{
19
public
:
20
DtScriptAnimationModel
(
const
DtScriptVrfObject
* vrfObject);
21
DtScriptAnimationModel
(
const
DtScriptAnimationModel
& orig);
22
23
DtScriptAnimationModel
& operator=(
const
DtScriptAnimationModel
&orig);
24
25
~
DtScriptAnimationModel
();
26
27
bool
operator==
(
const
DtScriptAnimationModel
& orig);
28
31
34
virtual
void
setAnimationModelFile(
const
std::string&);
35
virtual
const
std::string& animationModelFile()
const
;
36
38
virtual
void
setTimeScale(
double
);
39
virtual
double
timeScale()
const
;
40
43
virtual
void
setFrameTime(
double
);
44
virtual
double
frameTime()
const
;
45
47
virtual
int
numAnimationFrames()
const
;
48
50
virtual
void
setClampType(
int
);
51
virtual
int
clampType()
const
;
52
54
virtual
void
setCompletionRule(
int
);
55
virtual
int
completionRule()
const
;
56
58
virtual
void
init
(
void
* userData);
59
61
virtual
void
setTimeDeltaFromPreviousRow(
int
forRow,
double
timeDelta);
62
65
virtual
void
setTransitionSpeed(
double
);
66
68
virtual
double
transitionSpeed()
const
;
69
71
virtual
void
setAnimationFrame(
int
);
72
74
virtual
int
animationFrame()
const
;
75
77
virtual
double
elapsedAnimationTime()
const
;
78
80
virtual
bool
isFinished()
const
;
81
86
virtual
int
addAnimationRow(
double
deltaTime,
double
lateral,
double
range,
double
altitude,
87
double
headingOffset = 0,
double
pitchOffset = 0,
double
rollOffset = 0);
88
90
virtual
double
speed(
int
)
const
;
91
93
virtual
DtLocation3D
location(
int
)
const
;
94
96
virtual
void
orientation(
int
frame,
double
& heading,
double
& pitch,
double
& roll)
const
;
97
99
virtual
DtVector3D
rotationalVelocity(
int
)
const
;
100
102
virtual
DtVector3D
acceleration(
int
)
const
;
103
105
virtual
DtVector3D
velocity(
int
)
const
;
106
109
111
virtual
const
DtAnimationModel
& animationModel()
const
;
112
114
virtual
DtString
serialize
();
115
118
bool
deserialize
(
const
DtString
& data);
119
120
virtual
DtString
objectType
()
const
;
121
123
static
DtAsciiSerializable
* creator();
124
126
DtVrfObject
* vrfObject()
const
;
127
129
virtual
void
reset();
130
131
protected
:
132
DtSimManager
*
mySimManager
;
133
boost::shared_ptr<DtScriptVrfObject>
mySharedObject
;
134
DtAnimationModel
myAnimationModel
;
135
std::string
myAnimationModelFile
;
136
};
137
138
DT_DEFINE_OBJECT_DEBUGGER_NAME
(
DtScriptAnimationModel
);
139
140
DT_DLL_vrfobjcore
std::ostream&
operator<<
(std::ostream&,
const
DtScriptAnimationModel
&);
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)