SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
AppDemoSceneView.h
Go to the documentation of this file.
1 /**
2  * \file AppDemoSceneView.h
3  * \date August 2019
4  * \authors Marcus Hudritsch
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #include <SLSceneView.h>
11 
12 class SLScene;
13 //-----------------------------------------------------------------------------
14 /*!
15  The SLSceneView class is inherited because we override here the default
16  event-handling for onMouseDown.
17 */
19 {
20 public:
21  AppDemoSceneView(SLScene* s, int dpi, SLInputManager& inputManager);
22 
23  // Overwritten from SLSceneView
24  SLbool onKeyPress(SLKey key, SLKey mod) final;
25  SLbool onKeyRelease(SLKey key, SLKey mod) final;
26  SLbool onMouseDown(SLMouseButton button, SLint x, SLint y, SLKey mod) final;
27  SLbool grab = false;
28 };
29 //-----------------------------------------------------------------------------
bool SLbool
Definition: SL.h:175
int SLint
Definition: SL.h:170
SLMouseButton
Mouse button codes.
Definition: SLEnums.h:98
SLKey
Keyboard key codes enumeration.
Definition: SLEnums.h:16
SLbool onKeyRelease(SLKey key, SLKey mod) final
SLbool onKeyPress(SLKey key, SLKey mod) final
SLbool onMouseDown(SLMouseButton button, SLint x, SLint y, SLKey mod) final
AppDemoSceneView(SLScene *s, int dpi, SLInputManager &inputManager)
SLInputManager. manages system input and custom input devices.
The SLScene class represents the top level instance holding the scene structure.
Definition: SLScene.h:47
SceneView class represents a dynamic real time 3D view onto the scene.
Definition: SLSceneView.h:69
SLint dpi() const
Definition: SLSceneView.h:175
T mod(T a, T b)
Definition: Utils.h:250