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

Dynamic scene demo. More...

#include <DynamicSceneDemo.h>

Inheritance diagram for HeliosDemos::DynamicSceneDemo:
Collaboration diagram for HeliosDemos::DynamicSceneDemo:

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< 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< 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

Dynamic scene demo.

Author
Alberto M. Esmoris Pena
Version
1.0

This demo implements the rendering of a given dynamic scene

See also
HeliosDemos::SurveyDemo

Constructor & Destructor Documentation

◆ DynamicSceneDemo() [1/2]

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

Dynamic scene demo constructor.

See also
HeliosDemos::SurveyDemo::SurveyDemo

◆ DynamicSceneDemo() [2/2]

HeliosDemos::DynamicSceneDemo::DynamicSceneDemo ( string const  name,
string const  surveyPath,
string const  assetsPath 
)
inline

Dynamic scene demo constructor.

See also
HeliosDemos::SurveyDemo::SurveyDemo

Member Function Documentation

◆ buildCanvas()

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.

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

◆ loadSurvey()

shared_ptr< Survey > DynamicSceneDemo::loadSurvey ( )
virtual

Load survey containing the scene to be rendered.

Returns
Loaded survey containing the scene to be rendered

◆ run()

void DynamicSceneDemo::run ( )
overridevirtual
See also
BaseDemo::run

Implements HeliosDemos::BaseDemo.

Reimplemented in HeliosDemos::RaycastingDemo.


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