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

Flexbody and prop diagnostic. More...

#include <GUI_FlexbodyDebug.h>

Public Member Functions

bool IsVisible () const
 
bool IsHovered () const
 
void SetVisible (bool value)
 
void Draw ()
 
bool IsHideOtherElementsModeActive () const
 
void AnalyzeFlexbodies ()
 populates the combobox More...
 
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
 
std::string m_combo_items
 Flexbodies come first, props second. More...
 
int m_combo_props_start = -1
 Index of first prop in the combobox. -1 means no props. More...
 
int m_combo_selection = 0
 
bool m_is_visible = false
 
bool m_is_hovered = false
 

Detailed Description

Flexbody and prop diagnostic.

Definition at line 32 of file GUI_FlexbodyDebug.h.

Member Function Documentation

◆ AnalyzeFlexbodies()

void FlexbodyDebug::AnalyzeFlexbodies ( )

populates the combobox

Definition at line 175 of file GUI_FlexbodyDebug.cpp.

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

◆ Draw()

void FlexbodyDebug::Draw ( )

Definition at line 40 of file GUI_FlexbodyDebug.cpp.

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

◆ DrawDebugView()

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

Definition at line 281 of file GUI_FlexbodyDebug.cpp.

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

◆ DrawLocatorsTable()

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

Definition at line 504 of file GUI_FlexbodyDebug.cpp.

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

◆ DrawMemoryOrderGraph()

void FlexbodyDebug::DrawMemoryOrderGraph ( FlexBody flexbody)
private

Definition at line 557 of file GUI_FlexbodyDebug.cpp.

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

◆ DrawMeshInfo() [1/2]

void FlexbodyDebug::DrawMeshInfo ( FlexBody flexbody)
private

Definition at line 638 of file GUI_FlexbodyDebug.cpp.

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

◆ DrawMeshInfo() [2/2]

void FlexbodyDebug::DrawMeshInfo ( Prop prop)
private

Definition at line 647 of file GUI_FlexbodyDebug.cpp.

+ Here is the call graph for this function:

◆ 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.

+ Here is the caller graph for this function:

◆ SetVisible()

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

Definition at line 37 of file GUI_FlexbodyDebug.h.

+ Here is the caller graph for this function:

◆ UpdateVisibility()

void FlexbodyDebug::UpdateVisibility ( )
private

Definition at line 440 of file GUI_FlexbodyDebug.cpp.

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

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.

◆ m_combo_items

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

Flexbodies come first, props second.

Definition at line 61 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 62 of file GUI_FlexbodyDebug.h.

◆ m_combo_selection

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

Definition at line 63 of file GUI_FlexbodyDebug.h.

◆ m_is_hovered

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

Definition at line 67 of file GUI_FlexbodyDebug.h.

◆ m_is_visible

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

Definition at line 66 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: