Helios++
Helios software for LiDAR simulations
|
Dynamic scene demo. More...
#include <DynamicSceneDemo.h>
Public Member Functions | |
DynamicSceneDemo (string const surveyPath, string const assetsPath) | |
Dynamic scene demo constructor. More... | |
DynamicSceneDemo (string const name, string const surveyPath, string const assetsPath) | |
Dynamic scene demo constructor. More... | |
void | run () override |
void | validatePaths () |
Validate survey and assets path. If any of them is not valid a proper exception is thrown. | |
virtual shared_ptr< Survey > | loadSurvey () |
Load survey containing the scene to be rendered. More... | |
shared_ptr< VHSceneCanvas > | buildCanvas (shared_ptr< Survey > survey) |
Build a visual Helios scene canvas from given survey. More... | |
![]() | |
SurveyDemo (string const name, string const surveyPath, string const assetsPath) | |
Survey demo constructor. More... | |
bool | validateSurveyPath () |
Check whether the survey path points to an accessible file (true) or not (false) More... | |
bool | validateAssetsPath () |
Check whether the assets path points to an accessible directory (true) or not (false) More... | |
string const & | getSurveyPath () const |
Get survey path. More... | |
void | setSurveyPath (string const surveyPath) |
Set survey path. More... | |
string const & | getAssetsPath () const |
Get assets path. More... | |
void | setAssetsPath (string const assetsPath) |
Set assets path. More... | |
Protected Attributes | |
shared_ptr< DynScene > | dsWrapper = nullptr |
Used to store the dynamic scene wrapper that must be used to render non dynamic scenes. | |
![]() | |
string | surveyPath |
Path to the survey XML file. | |
string | assetsPath |
Path to the assets directory. | |
Dynamic scene demo.
This demo implements the rendering of a given dynamic scene
|
inline |
Dynamic scene demo constructor.
|
inline |
Dynamic scene demo constructor.
shared_ptr< VHSceneCanvas > DynamicSceneDemo::buildCanvas | ( | shared_ptr< Survey > | survey | ) |
Build a visual Helios scene canvas from given survey.
If the survey contains a dynamic scene it will be used. If it contains a basic scene, it will be wrapped by a dynamic scene so it can be rendered too. Notice however that, in the last case, no dynamic behavior will take place at all as the scene itself is not really dynamic.
survey | Survey which must contain a valid scene to build the visual Helios scene canvas |
|
virtual |
Load survey containing the scene to be rendered.
|
overridevirtual |
Implements HeliosDemos::BaseDemo.
Reimplemented in HeliosDemos::RaycastingDemo.