Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes
RoR::GUI::FlexbodyDebug Class Reference

Description

Flexbody and prop diagnostic.

Definition at line 32 of file GUI_FlexbodyDebug.h.

Public Member Functions

bool IsVisible () const
 
bool IsHovered () const
 
void SetVisible (bool value)
 
void Draw ()
 
bool IsHideOtherElementsModeActive () const
 
void AnalyzeFlexbodies ()
 
void DrawDebugView (FlexBody *flexbody, Prop *prop, NodeNum_t node_ref, NodeNum_t node_x, NodeNum_t node_y)
 

Private Member Functions

void UpdateVisibility ()
 
void DrawMemoryOrderGraph (FlexBody *flexbody)
 
void DrawLocatorsTable (FlexBody *flexbody, bool &locators_visible)
 
void DrawMeshInfo (FlexBody *flexbody)
 
void DrawMeshInfo (Prop *prop)
 

Private Attributes

bool draw_mesh_wireframe = false
 
bool show_base_nodes = false
 
bool show_forset_nodes = false
 
bool show_vertices = false
 
bool hide_other_elements = false
 
std::vector< bool > show_locator
 
int hovered_vert = -1
 
std::string m_combo_items
 
int m_combo_props_start = -1
 
int m_combo_selection = 0
 
bool m_is_visible = false
 
bool m_is_hovered = false
 

Member Function Documentation

◆ AnalyzeFlexbodies()

void FlexbodyDebug::AnalyzeFlexbodies ( )

populates the combobox

Definition at line 184 of file GUI_FlexbodyDebug.cpp.

◆ Draw()

void FlexbodyDebug::Draw ( )

Definition at line 40 of file GUI_FlexbodyDebug.cpp.

◆ DrawDebugView()

void FlexbodyDebug::DrawDebugView ( FlexBody *  flexbody,
Prop *  prop,
NodeNum_t  node_ref,
NodeNum_t  node_x,
NodeNum_t  node_y 
)

Definition at line 290 of file GUI_FlexbodyDebug.cpp.

◆ DrawLocatorsTable()

void FlexbodyDebug::DrawLocatorsTable ( FlexBody *  flexbody,
bool &  locators_visible 
)
private

Definition at line 512 of file GUI_FlexbodyDebug.cpp.

◆ DrawMemoryOrderGraph()

void FlexbodyDebug::DrawMemoryOrderGraph ( FlexBody *  flexbody)
private

Definition at line 565 of file GUI_FlexbodyDebug.cpp.

◆ DrawMeshInfo() [1/2]

void FlexbodyDebug::DrawMeshInfo ( FlexBody *  flexbody)
private

Definition at line 646 of file GUI_FlexbodyDebug.cpp.

◆ DrawMeshInfo() [2/2]

void FlexbodyDebug::DrawMeshInfo ( Prop *  prop)
private

Definition at line 655 of file GUI_FlexbodyDebug.cpp.

◆ IsHideOtherElementsModeActive()

bool RoR::GUI::FlexbodyDebug::IsHideOtherElementsModeActive ( ) const
inline

Definition at line 39 of file GUI_FlexbodyDebug.h.

◆ IsHovered()

bool RoR::GUI::FlexbodyDebug::IsHovered ( ) const
inline

Definition at line 36 of file GUI_FlexbodyDebug.h.

◆ IsVisible()

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

Definition at line 35 of file GUI_FlexbodyDebug.h.

◆ SetVisible()

void RoR::GUI::FlexbodyDebug::SetVisible ( bool  value)
inline

Definition at line 37 of file GUI_FlexbodyDebug.h.

◆ UpdateVisibility()

void FlexbodyDebug::UpdateVisibility ( )
private

Definition at line 448 of file GUI_FlexbodyDebug.cpp.

Field Documentation

◆ draw_mesh_wireframe

bool RoR::GUI::FlexbodyDebug::draw_mesh_wireframe = false
private

Definition at line 53 of file GUI_FlexbodyDebug.h.

◆ hide_other_elements

bool RoR::GUI::FlexbodyDebug::hide_other_elements = false
private

Definition at line 57 of file GUI_FlexbodyDebug.h.

◆ hovered_vert

int RoR::GUI::FlexbodyDebug::hovered_vert = -1
private

Definition at line 59 of file GUI_FlexbodyDebug.h.

◆ m_combo_items

std::string RoR::GUI::FlexbodyDebug::m_combo_items
private

Flexbodies come first, props second.

Definition at line 62 of file GUI_FlexbodyDebug.h.

◆ m_combo_props_start

int RoR::GUI::FlexbodyDebug::m_combo_props_start = -1
private

Index of first prop in the combobox. -1 means no props.

Definition at line 63 of file GUI_FlexbodyDebug.h.

◆ m_combo_selection

int RoR::GUI::FlexbodyDebug::m_combo_selection = 0
private

Definition at line 64 of file GUI_FlexbodyDebug.h.

◆ m_is_hovered

bool RoR::GUI::FlexbodyDebug::m_is_hovered = false
private

Definition at line 68 of file GUI_FlexbodyDebug.h.

◆ m_is_visible

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

Definition at line 67 of file GUI_FlexbodyDebug.h.

◆ show_base_nodes

bool RoR::GUI::FlexbodyDebug::show_base_nodes = false
private

Definition at line 54 of file GUI_FlexbodyDebug.h.

◆ show_forset_nodes

bool RoR::GUI::FlexbodyDebug::show_forset_nodes = false
private

Definition at line 55 of file GUI_FlexbodyDebug.h.

◆ show_locator

std::vector<bool> RoR::GUI::FlexbodyDebug::show_locator
private

Definition at line 58 of file GUI_FlexbodyDebug.h.

◆ show_vertices

bool RoR::GUI::FlexbodyDebug::show_vertices = false
private

Definition at line 56 of file GUI_FlexbodyDebug.h.


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