RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
RoR::GUI::SimActorStats Class Reference

#include <GUI_SimActorStats.h>

Public Member Functions

void SetVisible (bool vis)
 
bool IsVisible () const
 
void UpdateStats (float dt, ActorPtr actor)
 Caution: touches live data, must be synced with sim. thread. More...
 
void Draw (RoR::GfxActor *actorx)
 

Private Attributes

bool m_is_visible = false
 
float m_stat_health = 0.f
 
int m_stat_broken_beams = 0
 
int m_stat_deformed_beams = 0
 
float m_stat_beam_stress = 0.f
 
float m_stat_mass_Kg = 0.f
 
float m_stat_avg_deform = 0.f
 
float m_stat_gcur_x = 0.f
 
float m_stat_gcur_y = 0.f
 
float m_stat_gcur_z = 0.f
 
float m_stat_gmax_x = 0.f
 
float m_stat_gmax_y = 0.f
 
float m_stat_gmax_z = 0.f
 

Detailed Description

Definition at line 33 of file GUI_SimActorStats.h.

Member Function Documentation

◆ Draw()

void SimActorStats::Draw ( RoR::GfxActor actorx)

Definition at line 36 of file GUI_SimActorStats.cpp.

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

◆ IsVisible()

bool RoR::GUI::SimActorStats::IsVisible ( ) const
inline

Definition at line 37 of file GUI_SimActorStats.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void RoR::GUI::SimActorStats::SetVisible ( bool  vis)
inline

Definition at line 36 of file GUI_SimActorStats.h.

+ Here is the caller graph for this function:

◆ UpdateStats()

void SimActorStats::UpdateStats ( float  dt,
ActorPtr  actor 
)

Caution: touches live data, must be synced with sim. thread.

Definition at line 228 of file GUI_SimActorStats.cpp.

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

Field Documentation

◆ m_is_visible

bool RoR::GUI::SimActorStats::m_is_visible = false
private

Definition at line 43 of file GUI_SimActorStats.h.

◆ m_stat_avg_deform

float RoR::GUI::SimActorStats::m_stat_avg_deform = 0.f
private

Definition at line 49 of file GUI_SimActorStats.h.

◆ m_stat_beam_stress

float RoR::GUI::SimActorStats::m_stat_beam_stress = 0.f
private

Definition at line 47 of file GUI_SimActorStats.h.

◆ m_stat_broken_beams

int RoR::GUI::SimActorStats::m_stat_broken_beams = 0
private

Definition at line 45 of file GUI_SimActorStats.h.

◆ m_stat_deformed_beams

int RoR::GUI::SimActorStats::m_stat_deformed_beams = 0
private

Definition at line 46 of file GUI_SimActorStats.h.

◆ m_stat_gcur_x

float RoR::GUI::SimActorStats::m_stat_gcur_x = 0.f
private

Definition at line 50 of file GUI_SimActorStats.h.

◆ m_stat_gcur_y

float RoR::GUI::SimActorStats::m_stat_gcur_y = 0.f
private

Definition at line 51 of file GUI_SimActorStats.h.

◆ m_stat_gcur_z

float RoR::GUI::SimActorStats::m_stat_gcur_z = 0.f
private

Definition at line 52 of file GUI_SimActorStats.h.

◆ m_stat_gmax_x

float RoR::GUI::SimActorStats::m_stat_gmax_x = 0.f
private

Definition at line 53 of file GUI_SimActorStats.h.

◆ m_stat_gmax_y

float RoR::GUI::SimActorStats::m_stat_gmax_y = 0.f
private

Definition at line 54 of file GUI_SimActorStats.h.

◆ m_stat_gmax_z

float RoR::GUI::SimActorStats::m_stat_gmax_z = 0.f
private

Definition at line 55 of file GUI_SimActorStats.h.

◆ m_stat_health

float RoR::GUI::SimActorStats::m_stat_health = 0.f
private

Definition at line 44 of file GUI_SimActorStats.h.

◆ m_stat_mass_Kg

float RoR::GUI::SimActorStats::m_stat_mass_Kg = 0.f
private

Definition at line 48 of file GUI_SimActorStats.h.


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