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

#include <OverlayWrapper.h>

+ Collaboration diagram for RoR::OverlayWrapper:

Data Structures

struct  LoadedOverlay
 
struct  VisibleOverlays
 RoR needs to temporarily hide all overlays when player enters editor. More...
 

Public Member Functions

 OverlayWrapper ()
 
 ~OverlayWrapper ()
 
void ToggleDashboardOverlays (ActorPtr actor)
 
void showDashboardOverlays (bool show, ActorPtr actor)
 
void windowResized ()
 
void resizeOverlay (LoadedOverlay &overlay)
 
bool mouseMoved (const OIS::MouseEvent &_arg)
 
bool mousePressed (const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
 
bool mouseReleased (const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
 
void UpdatePressureOverlay (RoR::GfxActor *ga)
 
void update (float dt)
 
void UpdateLandVehicleHUD (RoR::GfxActor *ga)
 
void UpdateAerialHUD (RoR::GfxActor *ga)
 
void UpdateMarineHUD (ActorPtr vehicle)
 
void ShowRacingOverlay ()
 
void HideRacingOverlay ()
 
void UpdateRacingGui (RoR::GfxScene *gs)
 
Ogre::Overlay * loadOverlay (Ogre::String name, bool autoResizeRation=true)
 

Protected Member Functions

int init ()
 
void resizePanel (Ogre::OverlayElement *oe)
 
void reposPanel (Ogre::OverlayElement *oe)
 
void placeNeedle (Ogre::SceneNode *node, float x, float y, float len)
 
void updateStats (bool detailed=false)
 
void showPressureOverlay (bool show)
 
Ogre::OverlayElement * loadOverlayElement (Ogre::String name)
 

Protected Attributes

Ogre::RenderWindow * win = nullptr
 
bool m_dashboard_visible = false
 
float mTimeUntilNextToggle = 0.f
 
unsigned int m_visible_overlays = 0
 
Ogre::Overlay * m_truck_pressure_overlay = nullptr
 
Ogre::Overlay * m_truck_pressure_needle_overlay = nullptr
 
AeroDashOverlay m_aerial_dashboard
 
Ogre::Overlay * m_marine_dashboard_overlay = nullptr
 
Ogre::Overlay * m_marine_dashboard_needles_overlay = nullptr
 
Ogre::Overlay * m_machine_dashboard_overlay = nullptr
 
Ogre::Overlay * m_racing_overlay = nullptr
 
Ogre::OverlayElement * guiGear = nullptr
 truck More...
 
Ogre::OverlayElement * guiGear3D = nullptr
 truck More...
 
Ogre::OverlayElement * bthro1 = nullptr
 
Ogre::OverlayElement * bthro2 = nullptr
 
Ogre::TextAreaOverlayElement * guiAuto [5] = {nullptr, nullptr, nullptr, nullptr, nullptr}
 
Ogre::TextAreaOverlayElement * guiAuto3D [5] = { nullptr, nullptr, nullptr, nullptr, nullptr }
 
Ogre::TextAreaOverlayElement * laptime = nullptr
 
Ogre::TextAreaOverlayElement * bestlaptime = nullptr
 
Ogre::TextAreaOverlayElement * boat_depth_value_taoe = nullptr
 Marine. More...
 
Ogre::TextureUnitState * speedotexture = nullptr
 
Ogre::TextureUnitState * tachotexture = nullptr
 
Ogre::TextureUnitState * boatspeedtexture = nullptr
 
Ogre::TextureUnitState * boatsteertexture = nullptr
 
Ogre::TextureUnitState * pressuretexture = nullptr
 
float thrtop = 0.f
 
float thrheight = 0.f
 
float throffset = 0.f
 
std::vector< LoadedOverlaym_loaded_overlays
 

Detailed Description

Definition at line 111 of file OverlayWrapper.h.

Constructor & Destructor Documentation

◆ OverlayWrapper()

OverlayWrapper::OverlayWrapper ( )

Definition at line 57 of file OverlayWrapper.cpp.

+ Here is the call graph for this function:

◆ ~OverlayWrapper()

OverlayWrapper::~OverlayWrapper ( )

Definition at line 63 of file OverlayWrapper.cpp.

Member Function Documentation

◆ HideRacingOverlay()

void OverlayWrapper::HideRacingOverlay ( )

Definition at line 956 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ init()

int OverlayWrapper::init ( )
protected

Definition at line 147 of file OverlayWrapper.cpp.

+ Here is the call graph for this function:

◆ loadOverlay()

Overlay * OverlayWrapper::loadOverlay ( Ogre::String  name,
bool  autoResizeRation = true 
)

Definition at line 90 of file OverlayWrapper.cpp.

◆ loadOverlayElement()

OverlayElement * OverlayWrapper::loadOverlayElement ( Ogre::String  name)
protected

Definition at line 137 of file OverlayWrapper.cpp.

◆ mouseMoved()

bool OverlayWrapper::mouseMoved ( const OIS::MouseEvent &  _arg)

Definition at line 493 of file OverlayWrapper.cpp.

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

◆ mousePressed()

bool OverlayWrapper::mousePressed ( const OIS::MouseEvent &  _arg,
OIS::MouseButtonID  _id 
)

Definition at line 633 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ mouseReleased()

bool OverlayWrapper::mouseReleased ( const OIS::MouseEvent &  _arg,
OIS::MouseButtonID  _id 
)

Definition at line 638 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ placeNeedle()

void OverlayWrapper::placeNeedle ( Ogre::SceneNode *  node,
float  x,
float  y,
float  len 
)
protected

(Real)win->getHeight()/(Real)win->getWidth()

Definition at line 84 of file OverlayWrapper.cpp.

◆ reposPanel()

void OverlayWrapper::reposPanel ( Ogre::OverlayElement *  oe)
protected

Definition at line 77 of file OverlayWrapper.cpp.

◆ resizeOverlay()

void OverlayWrapper::resizeOverlay ( LoadedOverlay overlay)

Definition at line 109 of file OverlayWrapper.cpp.

◆ resizePanel()

void OverlayWrapper::resizePanel ( Ogre::OverlayElement *  oe)
protected

Definition at line 69 of file OverlayWrapper.cpp.

◆ showDashboardOverlays()

void OverlayWrapper::showDashboardOverlays ( bool  show,
ActorPtr  actor 
)

Definition at line 375 of file OverlayWrapper.cpp.

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

◆ showPressureOverlay()

void OverlayWrapper::showPressureOverlay ( bool  show)
protected

Definition at line 351 of file OverlayWrapper.cpp.

◆ ShowRacingOverlay()

void OverlayWrapper::ShowRacingOverlay ( )

Definition at line 950 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ ToggleDashboardOverlays()

void OverlayWrapper::ToggleDashboardOverlays ( ActorPtr  actor)

Definition at line 370 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ update()

void OverlayWrapper::update ( float  dt)

Definition at line 345 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

◆ UpdateAerialHUD()

void OverlayWrapper::UpdateAerialHUD ( RoR::GfxActor ga)

Definition at line 738 of file OverlayWrapper.cpp.

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

◆ UpdateLandVehicleHUD()

void OverlayWrapper::UpdateLandVehicleHUD ( RoR::GfxActor ga)

Definition at line 658 of file OverlayWrapper.cpp.

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

◆ UpdateMarineHUD()

void OverlayWrapper::UpdateMarineHUD ( ActorPtr  vehicle)

Definition at line 919 of file OverlayWrapper.cpp.

+ Here is the call graph for this function:

◆ UpdatePressureOverlay()

void OverlayWrapper::UpdatePressureOverlay ( RoR::GfxActor ga)

Definition at line 643 of file OverlayWrapper.cpp.

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

◆ UpdateRacingGui()

void OverlayWrapper::UpdateRacingGui ( RoR::GfxScene gs)

Definition at line 962 of file OverlayWrapper.cpp.

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

◆ updateStats()

void OverlayWrapper::updateStats ( bool  detailed = false)
protected

Definition at line 426 of file OverlayWrapper.cpp.

+ Here is the call graph for this function:

◆ windowResized()

void OverlayWrapper::windowResized ( )

Definition at line 129 of file OverlayWrapper.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ bestlaptime

Ogre::TextAreaOverlayElement* RoR::OverlayWrapper::bestlaptime = nullptr
protected

Definition at line 212 of file OverlayWrapper.h.

◆ boat_depth_value_taoe

Ogre::TextAreaOverlayElement* RoR::OverlayWrapper::boat_depth_value_taoe = nullptr
protected

Marine.

Definition at line 214 of file OverlayWrapper.h.

◆ boatspeedtexture

Ogre::TextureUnitState* RoR::OverlayWrapper::boatspeedtexture = nullptr
protected

Definition at line 221 of file OverlayWrapper.h.

◆ boatsteertexture

Ogre::TextureUnitState* RoR::OverlayWrapper::boatsteertexture = nullptr
protected

Definition at line 222 of file OverlayWrapper.h.

◆ bthro1

Ogre::OverlayElement* RoR::OverlayWrapper::bthro1 = nullptr
protected

Definition at line 203 of file OverlayWrapper.h.

◆ bthro2

Ogre::OverlayElement* RoR::OverlayWrapper::bthro2 = nullptr
protected

Definition at line 204 of file OverlayWrapper.h.

◆ guiAuto

Ogre::TextAreaOverlayElement* RoR::OverlayWrapper::guiAuto[5] = {nullptr, nullptr, nullptr, nullptr, nullptr}
protected

Definition at line 207 of file OverlayWrapper.h.

◆ guiAuto3D

Ogre::TextAreaOverlayElement* RoR::OverlayWrapper::guiAuto3D[5] = { nullptr, nullptr, nullptr, nullptr, nullptr }
protected

Definition at line 208 of file OverlayWrapper.h.

◆ guiGear

Ogre::OverlayElement* RoR::OverlayWrapper::guiGear = nullptr
protected

truck

Definition at line 199 of file OverlayWrapper.h.

◆ guiGear3D

Ogre::OverlayElement* RoR::OverlayWrapper::guiGear3D = nullptr
protected

truck

Definition at line 200 of file OverlayWrapper.h.

◆ laptime

Ogre::TextAreaOverlayElement* RoR::OverlayWrapper::laptime = nullptr
protected

Definition at line 211 of file OverlayWrapper.h.

◆ m_aerial_dashboard

AeroDashOverlay RoR::OverlayWrapper::m_aerial_dashboard
protected

Definition at line 184 of file OverlayWrapper.h.

◆ m_dashboard_visible

bool RoR::OverlayWrapper::m_dashboard_visible = false
protected

Definition at line 171 of file OverlayWrapper.h.

◆ m_loaded_overlays

std::vector<LoadedOverlay> RoR::OverlayWrapper::m_loaded_overlays
protected

Definition at line 232 of file OverlayWrapper.h.

◆ m_machine_dashboard_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_machine_dashboard_overlay = nullptr
protected

Definition at line 189 of file OverlayWrapper.h.

◆ m_marine_dashboard_needles_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_marine_dashboard_needles_overlay = nullptr
protected

Definition at line 187 of file OverlayWrapper.h.

◆ m_marine_dashboard_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_marine_dashboard_overlay = nullptr
protected

Definition at line 186 of file OverlayWrapper.h.

◆ m_racing_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_racing_overlay = nullptr
protected

Definition at line 192 of file OverlayWrapper.h.

◆ m_truck_pressure_needle_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_truck_pressure_needle_overlay = nullptr
protected

Definition at line 182 of file OverlayWrapper.h.

◆ m_truck_pressure_overlay

Ogre::Overlay* RoR::OverlayWrapper::m_truck_pressure_overlay = nullptr
protected

Definition at line 181 of file OverlayWrapper.h.

◆ m_visible_overlays

unsigned int RoR::OverlayWrapper::m_visible_overlays = 0
protected

Definition at line 179 of file OverlayWrapper.h.

◆ mTimeUntilNextToggle

float RoR::OverlayWrapper::mTimeUntilNextToggle = 0.f
protected

Definition at line 173 of file OverlayWrapper.h.

◆ pressuretexture

Ogre::TextureUnitState* RoR::OverlayWrapper::pressuretexture = nullptr
protected

Definition at line 225 of file OverlayWrapper.h.

◆ speedotexture

Ogre::TextureUnitState* RoR::OverlayWrapper::speedotexture = nullptr
protected

Definition at line 217 of file OverlayWrapper.h.

◆ tachotexture

Ogre::TextureUnitState* RoR::OverlayWrapper::tachotexture = nullptr
protected

Definition at line 218 of file OverlayWrapper.h.

◆ thrheight

float RoR::OverlayWrapper::thrheight = 0.f
protected

Definition at line 229 of file OverlayWrapper.h.

◆ throffset

float RoR::OverlayWrapper::throffset = 0.f
protected

Definition at line 230 of file OverlayWrapper.h.

◆ thrtop

float RoR::OverlayWrapper::thrtop = 0.f
protected

Definition at line 228 of file OverlayWrapper.h.

◆ win

Ogre::RenderWindow* RoR::OverlayWrapper::win = nullptr
protected

Definition at line 169 of file OverlayWrapper.h.


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