This class is the base class for all experiences defined via the interaction plugin mechanism.
More...
|
virtual | ~Experience ()=default |
| Destructs the experience. More...
|
|
virtual bool | load (const UserInterface &userInterface, const Rendering::EngineRef &engine, const Timestamp timestamp, const std::string &properties=std::string()) |
| Loads this experience. More...
|
|
virtual bool | unload (const UserInterface &userInterface, const Rendering::EngineRef &engine, const Timestamp timestamp) |
| Unloads this experience. More...
|
|
virtual Timestamp | preUpdate (const UserInterface &userInterface, const Rendering::EngineRef &engine, const Rendering::ViewRef &view, const Timestamp timestamp) |
| Pre update interaction function. More...
|
|
virtual void | postUpdate (const UserInterface &userInterface, const Rendering::EngineRef &engine, const Rendering::ViewRef &view, const Timestamp timestamp) |
| Post update interaction function. More...
|
|
virtual void | onMousePress (const UserInterface &userInterface, const Rendering::EngineRef &engine, const std::string &button, const Vector2 &screenPosition, const Line3 &ray, const Timestamp timestamp) |
| Mouse press event function. More...
|
|
virtual void | onMouseMove (const UserInterface &userInterface, const Rendering::EngineRef &engine, const std::string &button, const Vector2 &screenPosition, const Line3 &ray, const Timestamp timestamp) |
| Mouse move event function. More...
|
|
virtual void | onMouseRelease (const UserInterface &userInterface, const Rendering::EngineRef &engine, const std::string &button, const Vector2 &screenPosition, const Line3 &ray, const Timestamp timestamp) |
| Mouse release event function. More...
|
|
virtual void | onKeyPress (const UserInterface &userInterface, const Rendering::EngineRef &engine, const std::string &key, const Timestamp timestamp) |
| Key press function. More...
|
|
virtual void | onKeyRelease (const UserInterface &userInterface, const Rendering::EngineRef &engine, const std::string &key, const Timestamp timestamp) |
| Key release function. More...
|
|
This class is the base class for all experiences defined via the interaction plugin mechanism.
An experience can be anything which combines rendering with user input and sensor information like e.g., 6-DOF trackers.
This base class mainly defines several event functions which can be used to realize an experience.