Helios++
Helios software for LiDAR simulations
|
Raycasting demo. More...
#include <RaycastingDemo.h>
Public Member Functions | |
RaycastingDemo (string const surveyPath, string const assetsPath) | |
Ray casting demo constructor. More... | |
void | run () override |
shared_ptr< VHRaycastingCanvas > | buildCanvas (shared_ptr< Survey > survey) |
Build a visual Helios ray casting canvas from given survey. More... | |
![]() | |
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 | 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< Scanner > | scanner = nullptr |
The scanner emitting the rays. | |
![]() | |
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. | |
Raycasting demo.
This demo extends the DynamicSceneDemo to also render the rays defining the scanning process simulation
|
inline |
Ray casting demo constructor.
shared_ptr< VHRaycastingCanvas > RaycastingDemo::buildCanvas | ( | shared_ptr< Survey > | survey | ) |
Build a visual Helios ray casting canvas from given survey.
A ray casting canvas is like a scene canvas but extending it to support the rendering of the scanner's rays. Both, dynamic and static scenes are supported.
survey | Survey which must contain a valid scene to build the visual Helios ray casting canvas |
|
overridevirtual |
Reimplemented from HeliosDemos::DynamicSceneDemo.