VR-Forces Development_Version 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
vrvOsg
DtWindRotTickable.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
#include <
vrvCore/vrvCore.h
>
12
#include <rapidjson/document.h>
13
#include <
vrvOsg/DtDynamicFeatureTickable.h
>
14
#include <
vrvOsg/DtMetaObjectCreator.h
>
15
#include <osgSim/DOFTransform>
16
17
namespace
makVrv
18
{
19
class
DtDisplayUnitsConverter;
20
24
class
DT_DLL_VRVOSG
DtWindRotTickable
:
25
public
DtDynamicFeatureTickable
26
{
27
public
:
28
30
DtWindRotTickable
(
DtDe
& de,
DtElementID
elementId,
DtUniqueID
sceneObjectId,
31
DtUniqueID
uniqueId,
bool
useInstancing,
unsigned
int
nodeTypeIndex);
32
34
virtual
~
DtWindRotTickable
();
35
37
virtual
void
update(
DtTime
tNow );
38
47
virtual
bool
needsUpdate(
DtTime
tNow );
48
50
virtual
void
configure(osg::Node* n,
const
rapidjson::Value& windJsonData);
51
52
public
:
53
// @{
56
static
const
char
*
theWindRotFeatureName
;
57
static
const
char
*
theTagDelayBeforeRot
;
58
static
const
char
*
theTagDegPerKPH
;
59
// @}
60
61
protected
:
63
float
myLastWindRot
;
64
66
DtTime
myLastUpdateTime
;
67
69
DtDisplayUnitsConverter
&
myConverter
;
70
72
osgSim::DOFTransform*
myWindRotNode
;
73
75
float
myDelayBeforeRot
;
76
float
myDegPerKPH
;
77
79
float
myCurrRotInRad
;
80
};
81
84
class
DT_DLL_VRVOSG
DtWindRotTickableCreator
:
public
DtMetaObjectCreator
85
{
86
87
public
:
88
90
DtWindRotTickableCreator
();
91
93
virtual
~
DtWindRotTickableCreator
();
94
96
virtual
DtWindRotTickable
* create(
DtDe
& de, osg::Node* node,
97
const
rapidjson::Value& jsonObject,
const
std::string& modelDefName,
98
const
DtElementID
elementId,
const
DtUniqueID
sceneObjectId,
99
const
DtUniqueID
uniqueId,
const
bool
useInstancing,
100
const
unsigned
int
nodeTypeIndex);
101
102
};
103
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)