chrono::synchrono::SynIrrVehicleVisualization Class Reference
Description
Concrete SynVisualization class that handles Irrlicht visualization via an Irrlicht app.
#include <SynIrrVehicleVisualization.h>
Inheritance diagram for chrono::synchrono::SynIrrVehicleVisualization:
Collaboration diagram for chrono::synchrono::SynIrrVehicleVisualization:
Public Member Functions | |
SynIrrVehicleVisualization (std::shared_ptr< vehicle::ChDriver > driver=nullptr, double step_size=1e-3, double render_step_size=1./50) | |
void | InitializeAsDefaultChaseCamera (std::shared_ptr< SynVehicle > vehicle, double following_distance=6.0, std::wstring window_title=L"") |
Third-person view that will follow behind the vehicle. | |
void | InitializeAsDefaultTrackedChaseCamera (std::shared_ptr< SynTrackedVehicle > vehicle, double following_distance=6.0, std::wstring window_title=L"") |
Third-person view that will follow behind the vehicle. | |
void | AttachIrrApp (std::shared_ptr< vehicle::ChVehicleIrrApp > app) |
Allow external creation and attachment of a IrrApp. | |
std::shared_ptr< vehicle::ChVehicleIrrApp > | GetIrrApp () |
virtual void | Update (double step) override |
Advance the visualizer, taking note of any initialization and render step questions. | |
virtual void | Initialize () override |
Initialize this visualizer. | |
void | SetDriver (std::shared_ptr< vehicle::ChDriver > driver) |
Set the handle to the ChDriver. | |
void | SetSave (bool save) |
Whether images are saved. | |
bool | GetSave () |
void | SetVisualize (bool visualize) |
Whether we visualize the Irrlicht view with a window. | |
bool | GetVisualize () |
double | GetRenderStepSize () |
How often rendering is done. | |
void | SetRenderStepSize (double render_step_size) |
double | GetStepSize () |
Simulation step size. | |
void | SetStepSize (double step_size) |
Public Member Functions inherited from chrono::synchrono::SynVisualization | |
SynVisualization (VisualizationType type) | |
bool | ShouldInitialize () |
Whether or not visualizers need initialization. | |
VisualizationType | GetType () |
Additional Inherited Members | |
Public Types inherited from chrono::synchrono::SynVisualization | |
enum | VisualizationType { SENSOR, IRRLICHT } |
Protected Attributes inherited from chrono::synchrono::SynVisualization | |
VisualizationType | m_type |
bool | m_should_initialize |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/visualization/SynIrrVehicleVisualization.h
- /builds/uwsbel/chrono/src/chrono_synchrono/visualization/SynIrrVehicleVisualization.cpp