RigsofRods
Soft-body Physics Simulation
Public Member Functions
RoR::IWater Class Referenceabstract

< TODO: Mixed gfx+physics (waves) - must be separated ~ only_a_ptr, 02/2018 More...

#include <IWater.h>

+ Inheritance diagram for RoR::IWater:

Public Member Functions

 IWater ()
 
virtual ~IWater ()
 
virtual float GetStaticWaterHeight ()=0
 Returns static water level configured in 'terrn2'. More...
 
virtual void SetStaticWaterHeight (float value)=0
 
virtual void SetWaterBottomHeight (float value)
 
virtual void SetWavesHeight (float value)
 
virtual float CalcWavesHeight (Ogre::Vector3 pos)=0
 
virtual Ogre::Vector3 CalcWavesVelocity (Ogre::Vector3 pos)=0
 
virtual void SetWaterVisible (bool value)=0
 
virtual void WaterSetSunPosition (Ogre::Vector3)
 
virtual bool IsUnderWater (Ogre::Vector3 pos)=0
 
virtual void FrameStepWater (float dt)=0
 
virtual void SetReflectionPlaneHeight (float centerheight)
 
virtual void UpdateReflectionPlane (float h)
 
virtual void WaterPrepareShutdown ()
 
virtual void UpdateWater ()=0
 
virtual void SetForcedCameraTransform (Ogre::Radian fovy, Ogre::Vector3 pos, Ogre::Quaternion rot)
 
virtual void ClearForcedCameraTransform ()
 

Detailed Description

< TODO: Mixed gfx+physics (waves) - must be separated ~ only_a_ptr, 02/2018

Definition at line 32 of file IWater.h.

Constructor & Destructor Documentation

◆ IWater()

RoR::IWater::IWater ( )
inline

Definition at line 35 of file IWater.h.

◆ ~IWater()

virtual RoR::IWater::~IWater ( )
inlinevirtual

Definition at line 39 of file IWater.h.

Member Function Documentation

◆ CalcWavesHeight()

virtual float RoR::IWater::CalcWavesHeight ( Ogre::Vector3  pos)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ CalcWavesVelocity()

virtual Ogre::Vector3 RoR::IWater::CalcWavesVelocity ( Ogre::Vector3  pos)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ ClearForcedCameraTransform()

virtual void RoR::IWater::ClearForcedCameraTransform ( )
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 60 of file IWater.h.

◆ FrameStepWater()

virtual void RoR::IWater::FrameStepWater ( float  dt)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ GetStaticWaterHeight()

virtual float RoR::IWater::GetStaticWaterHeight ( )
pure virtual

Returns static water level configured in 'terrn2'.

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ IsUnderWater()

virtual bool RoR::IWater::IsUnderWater ( Ogre::Vector3  pos)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

◆ SetForcedCameraTransform()

virtual void RoR::IWater::SetForcedCameraTransform ( Ogre::Radian  fovy,
Ogre::Vector3  pos,
Ogre::Quaternion  rot 
)
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 59 of file IWater.h.

◆ SetReflectionPlaneHeight()

virtual void RoR::IWater::SetReflectionPlaneHeight ( float  centerheight)
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 53 of file IWater.h.

+ Here is the caller graph for this function:

◆ SetStaticWaterHeight()

virtual void RoR::IWater::SetStaticWaterHeight ( float  value)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ SetWaterBottomHeight()

virtual void RoR::IWater::SetWaterBottomHeight ( float  value)
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 45 of file IWater.h.

◆ SetWaterVisible()

virtual void RoR::IWater::SetWaterVisible ( bool  value)
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

◆ SetWavesHeight()

virtual void RoR::IWater::SetWavesHeight ( float  value)
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 46 of file IWater.h.

+ Here is the caller graph for this function:

◆ UpdateReflectionPlane()

virtual void RoR::IWater::UpdateReflectionPlane ( float  h)
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 54 of file IWater.h.

◆ UpdateWater()

virtual void RoR::IWater::UpdateWater ( )
pure virtual

Implemented in RoR::Water, and RoR::HydraxWater.

+ Here is the caller graph for this function:

◆ WaterPrepareShutdown()

virtual void RoR::IWater::WaterPrepareShutdown ( )
inlinevirtual

Reimplemented in RoR::Water.

Definition at line 55 of file IWater.h.

◆ WaterSetSunPosition()

virtual void RoR::IWater::WaterSetSunPosition ( Ogre::Vector3  )
inlinevirtual

Reimplemented in RoR::HydraxWater.

Definition at line 50 of file IWater.h.

+ Here is the caller graph for this function:

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