![]() |
SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Implements app functionality (e.g. scene description, which camera, how to start and use WAISlam) More...
#include <WAIAppTest.h>
Public Types | |
| using | CloseAppCallback = std::function< void()> |
Public Member Functions | |
| WAIApp () | |
| void | init (int screenWidth, int screenHeight, int screenDpi, AppDirectories directories) |
| void | initCloseAppCallback (CloseAppCallback cb) |
| void | initCamera (SENSCamera *camera) |
| bool | update () |
| void | close () |
| void | goBack () |
Public Member Functions inherited from SLInputEventInterface | |
| SLInputEventInterface (SLInputManager &inputManager) | |
| void | resize (int sceneViewIndex, int width, int height) |
| Posts a resize of the scene view to the given width and height in pixels. More... | |
| void | updateScr2fb (int sceneViewIndex) |
| Posts a request to recompute the screen to framebuffer scale factor. More... | |
| void | mouseDown (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
| Posts a mouse button press at position x, y. More... | |
| void | mouseMove (int sceneViewIndex, int x, int y) |
| Posts a mouse movement to position x, y. More... | |
| void | mouseUp (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
| Posts a mouse button release at position x, y. More... | |
| void | doubleClick (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
| Posts a mouse button double click at position x, y. More... | |
| void | touch2Down (int sceneViewIndex, int x1, int y1, int x2, int y2) |
| Posts a two finger touch down at the two positions x1, y1 and x2, y2. More... | |
| void | touch2Move (int sceneViewIndex, int x1, int y1, int x2, int y2) |
| Posts a two finger move to the two positions x1, y1 and x2, y2. More... | |
| void | touch2Up (int sceneViewIndex, int x1, int y1, int x2, int y2) |
| Posts a two finger lift off from the two positions x1, y1 and x2, y2. More... | |
| void | mouseWheel (int sceneViewIndex, int pos, SLKey modifier) |
| Posts a mouse wheel movement by pos detents. More... | |
| void | keyPress (int sceneViewIndex, SLKey key, SLKey modifier) |
| Posts a key press, for keys that act as commands. More... | |
| void | keyRelease (int sceneViewIndex, SLKey key, SLKey modifier) |
| Posts a key release. More... | |
| void | charInput (int sceneViewIndex, unsigned int character) |
| Posts a translated character, for text entry rather than commands. More... | |
| void | longTouch (int sceneViewIndex, int x, int y) |
| Long touch gesture; accepted but currently ignored. More... | |
| void | scrCaptureRequest (int sceneViewIndex, std::string outputPath) |
| Posts a request to write a screenshot of the scene view to outputPath. More... | |
Private Member Functions | |
| void | initSceneCamera () |
| void | initDirectories (AppDirectories directories) |
| void | initSceneGraph (int scrWidth, int scrHeight, int dpi) |
| void | initIntroScene () |
| void | deleteSceneGraph () |
Private Attributes | |
| SENSCamera * | _camera = nullptr |
| SLSceneView * | _sv = nullptr |
| SLCamera * | _sceneCamera = nullptr |
| SLGLTexture * | _videoImage = nullptr |
| AppDirectories | _dirs |
| CloseAppCallback | _closeAppCallback |
| bool | _goBackRequested = false |
| bool | _initSceneGraphDone = false |
| bool | _initIntroSceneDone = false |
Implements app functionality (e.g. scene description, which camera, how to start and use WAISlam)
Definition at line 23 of file WAIAppTest.h.
| using WAIApp::CloseAppCallback = std::function<void()> |
Definition at line 26 of file WAIAppTest.h.
| WAIApp::WAIApp | ( | ) |
Definition at line 30 of file WAIAppTest.cpp.
| void WAIApp::close | ( | ) |
Definition at line 196 of file WAIAppTest.cpp.
|
private |
Definition at line 210 of file WAIAppTest.cpp.
| void WAIApp::goBack | ( | ) |
Definition at line 203 of file WAIAppTest.cpp.
| void WAIApp::init | ( | int | screenWidth, |
| int | screenHeight, | ||
| int | screenDpi, | ||
| AppDirectories | directories | ||
| ) |
Definition at line 35 of file WAIAppTest.cpp.
| void WAIApp::initCamera | ( | SENSCamera * | camera | ) |
Definition at line 58 of file WAIAppTest.cpp.
| void WAIApp::initCloseAppCallback | ( | CloseAppCallback | cb | ) |
Definition at line 53 of file WAIAppTest.cpp.
|
private |
Definition at line 80 of file WAIAppTest.cpp.
|
private |
Definition at line 236 of file WAIAppTest.cpp.
|
private |
Definition at line 220 of file WAIAppTest.cpp.
|
private |
Definition at line 93 of file WAIAppTest.cpp.
| bool WAIApp::update | ( | ) |
Definition at line 124 of file WAIAppTest.cpp.
|
private |
Definition at line 52 of file WAIAppTest.h.
|
private |
Definition at line 61 of file WAIAppTest.h.
|
private |
Definition at line 58 of file WAIAppTest.h.
|
private |
Definition at line 63 of file WAIAppTest.h.
|
private |
Definition at line 65 of file WAIAppTest.h.
|
private |
Definition at line 64 of file WAIAppTest.h.
|
private |
Definition at line 55 of file WAIAppTest.h.
|
private |
Definition at line 54 of file WAIAppTest.h.
|
private |
Definition at line 56 of file WAIAppTest.h.