Helios++
Helios software for LiDAR simulations
HeliosDemos::RaycastingDemo Class Reference

Raycasting demo. More...

#include <RaycastingDemo.h>

Inheritance diagram for HeliosDemos::RaycastingDemo:
Collaboration diagram for HeliosDemos::RaycastingDemo:

Public Member Functions

 RaycastingDemo (string const surveyPath, string const assetsPath)
 Ray casting demo constructor. More...
 
void run () override
 
shared_ptr< VHRaycastingCanvasbuildCanvas (shared_ptr< Survey > survey)
 Build a visual Helios ray casting canvas from given survey. More...
 
- Public Member Functions inherited from HeliosDemos::DynamicSceneDemo
 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< SurveyloadSurvey ()
 Load survey containing the scene to be rendered. More...
 
shared_ptr< VHSceneCanvasbuildCanvas (shared_ptr< Survey > survey)
 Build a visual Helios scene canvas from given survey. More...
 
- Public Member Functions inherited from HeliosDemos::SurveyDemo
 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< Scannerscanner = nullptr
 The scanner emitting the rays.
 
- Protected Attributes inherited from HeliosDemos::DynamicSceneDemo
shared_ptr< DynScenedsWrapper = nullptr
 Used to store the dynamic scene wrapper that must be used to render non dynamic scenes.
 
- Protected Attributes inherited from HeliosDemos::SurveyDemo
string surveyPath
 Path to the survey XML file.
 
string assetsPath
 Path to the assets directory.
 

Detailed Description

Raycasting demo.

Author
Alberto M. Esmoris Pena
Version
1.0

This demo extends the DynamicSceneDemo to also render the rays defining the scanning process simulation

See also
HeliosDemos::DynamicSceneDemo

Constructor & Destructor Documentation

◆ RaycastingDemo()

HeliosDemos::RaycastingDemo::RaycastingDemo ( string const  surveyPath,
string const  assetsPath 
)
inline

Ray casting demo constructor.

See also
HeliosDemos::DynamicSceneDemo::DynamicSceneDemo

Member Function Documentation

◆ buildCanvas()

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.

Parameters
surveySurvey which must contain a valid scene to build the visual Helios ray casting canvas
Returns
Built visual helios ray casting canvas

◆ run()

void RaycastingDemo::run ( )
overridevirtual

The documentation for this class was generated from the following files: