SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <AppDemoSceneView.h>
Public Attributes | |
SLbool | grab = false |
Public Attributes inherited from SLSceneView | |
cbOnWndUpdate | onWndUpdate |
C-Callback for app for intermediate window repaint. More... | |
cbOnSelectNodeMesh | onSelectedNodeMesh |
C-Callback for app on node selection. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SLSceneView | |
SLScene * | _s |
Pointer to the scene observed by this scene view. More... | |
SLCamera * | _camera |
Pointer to the _active camera. More... | |
SLCamera | _sceneViewCamera |
Default camera for this SceneView (default cam not in scenegraph) More... | |
SLUiInterface * | _gui = nullptr |
new tighter imgui wrapper More... | |
SLNodeStats | _stats2D |
Statistic numbers for 2D nodes. More... | |
SLNodeStats | _stats3D |
Statistic numbers for 3D nodes. More... | |
SLbool | _gotPainted |
flag if this sceneview got painted More... | |
SLRenderType | _renderType |
rendering type (GL,RT,PT) More... | |
SLbool | _doDepthTest |
Flag if depth test is turned on. More... | |
SLbool | _doMultiSampling |
Flag if multisampling is on. More... | |
SLbool | _doFrustumCulling |
Flag if view frustum culling is on. More... | |
SLbool | _doAlphaSorting |
Flag if alpha sorting in blending is on. More... | |
SLbool | _doWaitOnIdle |
Flag for Event waiting. More... | |
SLbool | _isFirstFrame |
Flag if it is the first frame rendering. More... | |
SLDrawBits | _drawBits |
Sceneview level drawing flags. More... | |
SLfloat | _shadowMapTimeMS |
time for drawing the shadow maps in ms More... | |
SLfloat | _cullTimeMS |
time for culling in ms More... | |
SLfloat | _draw3DTimeMS |
time for 3D drawing in ms More... | |
SLfloat | _draw2DTimeMS |
time for 2D drawing in ms More... | |
SLbool | _mouseDownL |
Flag if left mouse button is pressed. More... | |
SLbool | _mouseDownR |
Flag if right mouse button is pressed. More... | |
SLbool | _mouseDownM |
Flag if middle mouse button is pressed. More... | |
SLKey | _mouseMod |
mouse modifier key on key down More... | |
SLint | _touchDowns |
finger touch down count More... | |
SLVec2i | _touch [3] |
up to 3 finger touch coordinates More... | |
SLGLVertexArrayExt | _vaoTouch |
Buffer for touch pos. rendering. More... | |
SLGLVertexArrayExt | _vaoCursor |
Virtual cursor for stereo rendering. More... | |
SLint | _scrW |
Screen width in pixels. More... | |
SLint | _scrH |
Screen height in pixels. More... | |
SLint | _scrWdiv2 |
Screen half width in pixels. More... | |
SLint | _scrHdiv2 |
Screen half height in pixels. More... | |
SLfloat | _scrWdivH |
Screen side aspect ratio. More... | |
int | _dpi |
dots per inch of screen More... | |
SLVec2i | _viewportRatio |
ratio of viewport More... | |
SLViewportAlign | _viewportAlign |
alignment of viewport More... | |
SLRecti | _viewportRect |
rectangle of viewport More... | |
SLbool | _viewportSameAsVideo |
Adapt viewport aspect to the input video. More... | |
SLbool | _screenCaptureIsRequested |
Flag if screen capture is requested. More... | |
SLint | _screenCaptureWaitFrames |
Frames to delay the screen capture. More... | |
SLGLOculusFB | _oculusFB |
Oculus framebuffer. More... | |
std::unordered_set< SLMaterial * > | _visibleMaterials3D |
visible materials 3D per frame More... | |
std::unordered_set< SLMaterial * > | _visibleMaterials2D |
visible materials 2D per frame More... | |
SLVNode | _nodesOpaque2D |
Vector of visible opaque nodes not in _visibleMaterials2D rendered in 2D. More... | |
SLVNode | _nodesBlended2D |
Vector of visible blended nodes not in _visibleMaterials2D rendered in 2D. More... | |
SLVNode | _nodesOpaque3D |
Vector of visible opaque nodes not in _visibleMaterials3D rendered in 3D. More... | |
SLVNode | _nodesBlended3D |
Vector of visible blended nodes not in _visibleMaterials3D rendered in 3D. More... | |
SLVNode | _nodesOverdrawn |
Vector of helper nodes drawn over all others. More... | |
SLRaytracer | _raytracer |
Whitted style raytracer. More... | |
SLbool | _stopRT |
Flag to stop the RT. More... | |
SLPathtracer | _pathtracer |
Pathtracer. More... | |
SLbool | _stopPT |
Flag to stop the PT. More... | |
SLInputManager & | _inputManager |
AvgFloat | _shadowMapTimesMS |
Averaged time for drawing the shadow maps in ms. More... | |
AvgFloat | _cullTimesMS |
Averaged time for culling in ms. More... | |
AvgFloat | _draw3DTimesMS |
Averaged time for 3D drawing in ms. More... | |
AvgFloat | _draw2DTimesMS |
Averaged time for 2D drawing in ms. More... | |
Protected Attributes inherited from SLObject | |
SLstring | _name |
name of an object More... | |
SLstring | _url |
uniform resource locator More... | |
The SLSceneView class is inherited because we override here the default event-handling for onMouseDown.
Definition at line 18 of file AppDemoSceneView.h.
AppDemoSceneView::AppDemoSceneView | ( | SLScene * | s, |
int | dpi, | ||
SLInputManager & | inputManager | ||
) |
Definition at line 16 of file AppDemoSceneView.cpp.
This method overrides the same method from the base class SLSceneView. It runs some app-specific code if a certain key is pressed and calls the default implementation from SLSceneView if it doesn't consume the event.
Reimplemented from SLSceneView.
Definition at line 27 of file AppDemoSceneView.cpp.
This method overrides the same method from the base class SLSceneView. It runs some app-specific code if a certain key is pressed and calls the default implementation from SLSceneView if it doesn't consume the event.
Reimplemented from SLSceneView.
Definition at line 60 of file AppDemoSceneView.cpp.
|
finalvirtual |
This method overrides the same method from the base class SLSceneView. Most events such as all mouse and keyboard events from the OS are forwarded to SLSceneview. SLSceneview implements a default behaviour. If you want a different or additional behaviour for a certain eventhandler you have to sub- class SLSceneView and override the eventhandler. Because all video processing (capturing and calibration) is handled outside of the core SLProject we need to add an additional handling for mouse down withing the calibration routine.
Reimplemented from SLSceneView.
Definition at line 80 of file AppDemoSceneView.cpp.
SLbool AppDemoSceneView::grab = false |
Definition at line 27 of file AppDemoSceneView.h.