RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Member Functions | Protected Attributes
RoR::HydraxWater Class Reference

#include <HydraxWater.h>

+ Inheritance diagram for RoR::HydraxWater:
+ Collaboration diagram for RoR::HydraxWater:

Public Member Functions

 HydraxWater (float waterHeight, Ogre::String configFile="HydraxDefault.hdx")
 
 ~HydraxWater ()
 
float GetStaticWaterHeight () override
 Returns static water level configured in 'terrn2'. More...
 
void SetStaticWaterHeight (float value) override
 
float CalcWavesHeight (Ogre::Vector3 pos) override
 
Ogre::Vector3 CalcWavesVelocity (Ogre::Vector3 pos) override
 
void SetWaterVisible (bool value) override
 
void WaterSetSunPosition (Ogre::Vector3) override
 
bool IsUnderWater (Ogre::Vector3 pos) override
 
void FrameStepWater (float dt) override
 
void UpdateWater () override
 
Hydrax::HydraxGetHydrax ()
 
- Public Member Functions inherited from RoR::IWater
 IWater ()
 
virtual ~IWater ()
 
virtual void SetWaterBottomHeight (float value)
 
virtual void SetWavesHeight (float value)
 
virtual void SetReflectionPlaneHeight (float centerheight)
 
virtual void UpdateReflectionPlane (float h)
 
virtual void WaterPrepareShutdown ()
 
virtual void SetForcedCameraTransform (Ogre::Radian fovy, Ogre::Vector3 pos, Ogre::Quaternion rot)
 
virtual void ClearForcedCameraTransform ()
 

Protected Member Functions

void InitHydrax ()
 

Protected Attributes

Hydrax::HydraxmHydrax
 
float waveHeight
 
float waterHeight
 
Hydrax::Noise::Perlinwaternoise
 
Hydrax::Module::ProjectedGridmModule
 
Ogre::String CurrentConfigFile
 

Detailed Description

Definition at line 34 of file HydraxWater.h.

Constructor & Destructor Documentation

◆ HydraxWater()

HydraxWater::HydraxWater ( float  waterHeight,
Ogre::String  configFile = "HydraxDefault.hdx" 
)

Definition at line 39 of file HydraxWater.cpp.

+ Here is the call graph for this function:

◆ ~HydraxWater()

HydraxWater::~HydraxWater ( )

Definition at line 51 of file HydraxWater.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ CalcWavesHeight()

float HydraxWater::CalcWavesHeight ( Ogre::Vector3  pos)
overridevirtual

Implements RoR::IWater.

Definition at line 128 of file HydraxWater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalcWavesVelocity()

Vector3 HydraxWater::CalcWavesVelocity ( Ogre::Vector3  pos)
overridevirtual

Implements RoR::IWater.

Definition at line 138 of file HydraxWater.cpp.

◆ FrameStepWater()

void HydraxWater::FrameStepWater ( float  dt)
overridevirtual

Implements RoR::IWater.

Definition at line 152 of file HydraxWater.cpp.

+ Here is the call graph for this function:

◆ GetHydrax()

Hydrax::Hydrax* RoR::HydraxWater::GetHydrax ( )
inline

Definition at line 52 of file HydraxWater.h.

+ Here is the caller graph for this function:

◆ GetStaticWaterHeight()

float HydraxWater::GetStaticWaterHeight ( )
overridevirtual

Returns static water level configured in 'terrn2'.

Implements RoR::IWater.

Definition at line 112 of file HydraxWater.cpp.

◆ InitHydrax()

void HydraxWater::InitHydrax ( )
protected

Definition at line 57 of file HydraxWater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsUnderWater()

bool HydraxWater::IsUnderWater ( Ogre::Vector3  pos)
overridevirtual

Implements RoR::IWater.

Definition at line 91 of file HydraxWater.cpp.

+ Here is the call graph for this function:

◆ SetStaticWaterHeight()

void HydraxWater::SetStaticWaterHeight ( float  value)
overridevirtual

Implements RoR::IWater.

Definition at line 117 of file HydraxWater.cpp.

◆ SetWaterVisible()

void HydraxWater::SetWaterVisible ( bool  value)
overridevirtual

Implements RoR::IWater.

Definition at line 122 of file HydraxWater.cpp.

+ Here is the call graph for this function:

◆ UpdateWater()

void HydraxWater::UpdateWater ( )
overridevirtual

Implements RoR::IWater.

Definition at line 98 of file HydraxWater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WaterSetSunPosition()

void HydraxWater::WaterSetSunPosition ( Ogre::Vector3  pos)
overridevirtual

Reimplemented from RoR::IWater.

Definition at line 146 of file HydraxWater.cpp.

+ Here is the call graph for this function:

Field Documentation

◆ CurrentConfigFile

Ogre::String RoR::HydraxWater::CurrentConfigFile
protected

Definition at line 62 of file HydraxWater.h.

◆ mHydrax

Hydrax::Hydrax* RoR::HydraxWater::mHydrax
protected

Definition at line 57 of file HydraxWater.h.

◆ mModule

Hydrax::Module::ProjectedGrid* RoR::HydraxWater::mModule
protected

Definition at line 61 of file HydraxWater.h.

◆ waterHeight

float RoR::HydraxWater::waterHeight
protected

Definition at line 59 of file HydraxWater.h.

◆ waternoise

Hydrax::Noise::Perlin* RoR::HydraxWater::waternoise
protected

Definition at line 60 of file HydraxWater.h.

◆ waveHeight

float RoR::HydraxWater::waveHeight
protected

Definition at line 58 of file HydraxWater.h.


The documentation for this class was generated from the following files: