21 #include <osg/Texture2D>
27 class DtRaindropParticle;
28 class DtSplashParticle;
30 class DtObserverObject;
54 virtual void activateRaindrops(
bool on);
58 virtual void activateSplashes(
bool on);
61 virtual void activateSpray(
bool on);
64 virtual void setIsUnderwater(
bool underwater);
68 virtual void addRainDrop(
float x,
float y,
float radius);
72 virtual void addOceanSplash(
float intensity);
75 virtual void setSplashIntensity(
float intensity);
78 virtual void setSprayIntensity(
float intensity);
84 virtual int numActiveDrops()
const;
87 virtual void setWaterOnScreenSize(
double size);
92 virtual void addSplashEffects(
const DtObserverObject *observer,
bool hasWaveSplashEffect);
97 virtual void addSprayEffects(
const DtObserverObject *observer,
bool hasOceanSprayEffect);
100 static double waterOnScreenSize();
103 virtual void initialize();
105 virtual void clearNormalMap();
107 virtual void updateAndDrawDrops(
double elapsedTime);
109 virtual void addRaindrops(
double time,
float heading,
float observerVelocity);
111 virtual void addSpray(
double time,
float heading);
113 virtual void clearDrops();
115 virtual void reset();
117 virtual void setActiveStatus();
119 virtual void slot_windowRemoved(
DtWindow* window);
121 virtual void slot_waterOnScreenSizeChanged(
double value);
142 unsigned char myNormalMapClearData[TEXSIZE*TEXSIZE * 4];
144 unsigned char myNormalImageData[TEXSIZE*TEXSIZE * 4];
Abstract Base class.
Definition: DtWindow.h:25
DtDe & myDe
Definition: DtWaterOnScreenEffect.h:126
double myLastSprayEmissionTime
Definition: DtWaterOnScreenEffect.h:129
int myNumActiveDrops
Definition: DtWaterOnScreenEffect.h:136
This class provides an OSG-specific implementation of water drops on the screen.
Definition: DtWaterOnScreenEffect.h:35
static double myWaterOnScreenSize
Definition: DtWaterOnScreenEffect.h:138
voidpf void uLong size
Definition: ioapi.h:39
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:213
bool myNormalMapClearDataInitialized
Definition: DtWaterOnScreenEffect.h:143
osg::ref_ptr< osg::Image > myNormalImage
Definition: DtWaterOnScreenEffect.h:125
The abstract Channel Class.
Definition: DtChannel.h:29
bool mySprayActiveFlag
Definition: DtWaterOnScreenEffect.h:131
osg::ref_ptr< DtWaterOnScreenDrawable > myWaterOnScreenDrawable
Definition: DtWaterOnScreenEffect.h:148
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtObserverObject.h:29
This class provides the OSG-specific management of post-processing effects.
Definition: DtPostProcessManager.h:25
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
A DtWaterOnScreenCreator instance is registered with the post process element factory to create DtPos...
Definition: DtWaterOnScreenEffect.h:158
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
Internal struct for one cell of our grid of glass properties.
Definition: DtGridCell.h:19
#define GRID_DIMENSION
Definition: DtWaterOnScreenDefines.h:56
Contains DLL export macros.
bool myUnderwaterFlag
Definition: DtWaterOnScreenEffect.h:132
Base class to provide boost signal/slot management.
DtSignalConnectionManager mySignals
Definition: DtWaterOnScreenEffect.h:146
osg::ref_ptr< osg::Texture2D > myNormalMap
Definition: DtWaterOnScreenEffect.h:124
Contains makVrv::DtGridCell struct.
float mySprayIntensity
Definition: DtWaterOnScreenEffect.h:134
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtWaterOnScreenDrawable class.
double myLastUpdateTime
Definition: DtWaterOnScreenEffect.h:128
This class provides the OSG-specific implementation of a post processor.
Definition: DtPostProcessor.h:62