chrono::opengl::ChOpenGLViewer Class Reference

Description

OpenGL viewer, this class draws the system to the screen and handles input.

#include <ChOpenGLViewer.h>

Inheritance diagram for chrono::opengl::ChOpenGLViewer:
Collaboration diagram for chrono::opengl::ChOpenGLViewer:

Public Member Functions

 ChOpenGLViewer (ChVisualSystemOpenGL *vis)
 
bool Initialize ()
 
void TakeDown ()
 
void Render (bool render_stats)
 
void DrawVisualModel (std::shared_ptr< ChPhysicsItem > item)
 
void RenderStats ()
 
void RenderContacts ()
 
void RenderAABB ()
 
void RenderGrid ()
 
void RenderFluid ()
 
void RenderParticles ()
 
void RenderFEA ()
 
void RenderPlots ()
 
void HandleInput (unsigned char key, int x, int y)
 
- Public Member Functions inherited from chrono::opengl::ChOpenGLBase
bool GLReturnedError (const char *s)
 

Public Attributes

ChVisualSystemOpenGLm_vis
 
glm::ivec2 window_size
 
glm::ivec2 window_position
 
glm::ivec2 window_physical_size
 
double dpi
 
float window_aspect
 
int interval
 
ChOpenGLCamera render_camera
 
ChOpenGLCamera ortho_camera
 
ChOpenGLShader main_shader
 
ChOpenGLShader cloud_shader
 
ChOpenGLShader dot_shader
 
ChOpenGLShader sphere_shader
 
ChOpenGLOBJ sphere
 
ChOpenGLOBJ box
 
ChOpenGLOBJ cylinder
 
ChOpenGLOBJ cone
 
ChOpenGLCloud cloud
 
ChOpenGLCloud fluid
 
ChOpenGLWires grid
 
ChOpenGLCloud particles
 
ChOpenGLWires mpm_grid
 
ChOpenGLCloud mpm_node
 
ChOpenGLCloud fea_nodes
 
ChOpenGLWires fea_elements
 
ChOpenGLWires line_path
 
ChOpenGLContacts contact_renderer
 
ChOpenGLGraphs graph_renderer
 
std::vector< glm::vec3 > cloud_data
 
std::vector< glm::vec3 > fluid_data
 
std::vector< glm::vec3 > fea_node_data
 
std::vector< glm::vec3 > fea_element_data
 
std::vector< glm::vec3 > grid_data
 
std::vector< glm::vec3 > mpm_grid_data
 
std::vector< glm::vec3 > mpm_node_data
 
std::vector< glm::vec3 > line_path_data
 
std::vector< glm::vec3 > particle_data
 
bool view_contacts
 
bool view_help
 
bool view_aabb
 
bool view_grid
 
bool use_vsync
 
RenderMode render_mode
 
RenderMode particle_render_mode
 
float particle_radius
 
ChTimer timer_render
 
ChTimer timer_text
 
ChTimer timer_geometry
 
glm::mat4 model
 
glm::mat4 view
 
glm::mat4 projection
 
glm::mat4 modelview
 
double old_time
 
double current_time
 
double time_total
 
double time_text
 
double time_geometry
 
double fps
 
std::vector< glm::mat4 > model_box
 
std::vector< glm::mat4 > model_sphere
 
std::vector< glm::mat4 > model_cylinder
 
std::vector< glm::mat4 > model_cone
 
std::map< std::string, ChOpenGLMeshobj_files
 
std::map< std::string, std::vector< glm::mat4 > > model_obj
 

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