Description

Base class for a GUI component for the VSG run-time visualization system.

#include <ChGuiComponentVSG.h>

Inherited by chrono::fsi::sph::FSIStatsVSG, chrono::gpu::GPUStatsVSG, chrono::vehicle::ChSTRGuiComponentVSG, chrono::vehicle::ChTTRGuiComponentVSG, chrono::vehicle::ChVehicleGuiComponentVSG, chrono::vehicle::SCMStatsVSG, chrono::vsg3d::ChBaseGuiComponentVSG, chrono::vsg3d::ChCameraGuiComponentVSG, and chrono::vsg3d::ChColorbarGuiComponentVSG.

Collaboration diagram for chrono::vsg3d::ChGuiComponentVSG:

Public Member Functions

virtual void Initialize ()
 Allow the GUI component to initialize itself. More...
 
virtual void render (vsg::CommandBuffer &cb)=0
 Specify the ImGui elements to be rendered for this GUI component.
 
void SetVisibility (bool visible)
 Set visibility for this GUI component.
 
void ToggleVisibility ()
 Toggle GUI visibility for this GUI component.
 
bool IsVisible () const
 Return boolean indicating whether or not this GUI component visible.
 

Static Public Member Functions

static void DrawGauge (float val, float v_min, float v_max)
 Utility function to draw a gauge.
 
static void Colorbar (vsg::ref_ptr< vsgImGui::Texture > texture, const ChVector2d &range, bool bimodal, float width, uint32_t deviceID)
 Utility function to draw a colorbar (colormap legend).
 

Protected Attributes

bool m_visible
 
ChVisualSystemVSGm_vsys
 

Friends

class ChVisualSystemVSG
 

Member Function Documentation

◆ Initialize()

virtual void chrono::vsg3d::ChGuiComponentVSG::Initialize ( )
inlinevirtual

Allow the GUI component to initialize itself.

This function is called after the main GUI container is created.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_vsg/ChGuiComponentVSG.h
  • /builds/uwsbel/chrono/src/chrono_vsg/ChGuiComponentVSG.cpp