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
vrvTriton
DtTritonBreakingWavesMapManager.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
12
#include <osg/Camera>
13
#include <osg/Drawable>
14
#include <osg/Texture2D>
15
16
#include <
vrvUtil/DtSignalConnectionManager.h
>
17
18
namespace
makVrv
19
{
20
class
DtTritonDrawable;
21
class
DtDe;
22
25
class
DtTritonBreakingWavesMapManager
26
{
27
public
:
28
DtTritonBreakingWavesMapManager
(
makVrv::DtDe
& de,
29
DtTritonDrawable
*parentDrawable);
30
31
virtual
~DtTritonBreakingWavesMapManager
();
32
34
void
setupBreakingWavesMap
(
void
);
35
37
void
setBreakingWavesMapResolution
(
float
resolution);
38
40
float
getBreakingWavesMapResolution
()
const
;
41
44
bool
updateBreakingWaves
(
unsigned
int
frameNum,
45
const
osg::Vec3& currentPosition,
bool
isGeocentric );
46
48
const
osg::Matrix&
getBreakingWavesMapMatrix
()
49
{
50
return
myBreakingWavesMapMatrix
;
51
}
52
54
const
osg::ref_ptr<osg::Texture2D>
getBreakingWavesMapTexture
()
55
{
56
return
myBreakingWavesMap
;
57
}
58
60
bool
getHasBreakingWavesMap
()
const
61
{
62
return
myHasBreakingWaves
;
63
}
64
66
void
forceUpdate
()
67
{
68
myForceUpdate
=
true
;
69
}
70
71
protected
:
72
73
void
cleanup
( );
74
75
osg::Vec3
myLastBreakingWavesUpdatePos
;
76
bool
myForceUpdate
;
77
float
myResolution
;
78
double
myLastUpdateTime
;
79
bool
myHasBreakingWaves
;
80
81
osg::ref_ptr<osg::Texture2D>
myBreakingWavesMap
;
82
osg::ref_ptr<osg::Image>
myBreakingWavesImage
;
83
osg::Matrix
myBreakingWavesMapMatrix
;
84
int
myBreakingWavesMapDimension
;
85
86
makVrv::DtDe
&
myDe
;
87
88
DtTritonDrawable
*
myDrawable
;
89
90
DtSignalConnectionManager
myConnections
;
91
};
92
}
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
)