VR-Forces 4.3 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
DtWindDirTickable.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
DtWindDirTickable
:
25
public
DtDynamicFeatureTickable
26
{
27
public
:
28
30
DtWindDirTickable
(
DtDe
& de,
DtElementID
elementId,
DtUniqueID
sceneObjectId,
31
DtUniqueID
uniqueId,
bool
useInstancing,
unsigned
int
nodeTypeIndex);
32
34
virtual
~
DtWindDirTickable
();
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
*
theWindDirFeatureName
;
57
static
const
char
*
theTagRotOffsetDeg
;
58
static
const
char
*
theTagRotDir
;
59
static
const
char
*
theRotDirCW
;
60
// @}
61
62
protected
:
64
float
myLastWindDir
;
65
67
osgSim::DOFTransform*
myWindDirNode
;
68
71
float
myRotOffset
;
72
74
float
myRotDir
;
75
};
76
79
class
DT_DLL_VRVOSG
DtWindDirTickableCreator
:
public
DtMetaObjectCreator
80
{
81
82
public
:
83
85
DtWindDirTickableCreator
();
86
88
virtual
~
DtWindDirTickableCreator
();
89
91
virtual
DtWindDirTickable
* create(
DtDe
& de, osg::Node* node,
92
const
rapidjson::Value& jsonObject,
const
std::string& modelDefName,
93
const
DtElementID
elementId,
const
DtUniqueID
sceneObjectId,
94
const
DtUniqueID
uniqueId,
const
bool
useInstancing,
95
const
unsigned
int
nodeTypeIndex);
96
97
};
98
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)