SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <AppNodeSceneView.h>
Public Attributes | |
SLMat4f | _curOrigin |
current origin of relative space (orientation and position of axes) More... | |
SLNode * | _moveBox |
big parent cube More... | |
SLNode * | _moveBoxChild |
little child cube More... | |
SLVec3f | _pivotPos |
position of the pivot point More... | |
SLNode * | _axesNode |
node for axis mesh More... | |
bool | _keyStates [65536] |
key press states of all keys More... | |
SLKey | _modifiers |
pressed modifier keys More... | |
bool | _continuousInput |
flag for continuous input processing More... | |
SLfloat | _deltaTime |
delta time of a frame More... | |
TransformMode | _curMode |
current transform mode More... | |
SLNode * | _curObject |
current object to transform More... | |
SLTransformSpace | _curSpace |
current transform space More... | |
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... | |
SLSceneView derived class for a node transform test application that demonstrates all transform possibilities in SLNode. The SLSceneView class is inherited because we override here the default event-handling for the keyboard (onKeyPress and onKeyRelease)
Definition at line 30 of file AppNodeSceneView.h.
AppNodeSceneView::AppNodeSceneView | ( | SLScene * | s, |
int | dpi, | ||
SLInputManager & | inputManager | ||
) |
AppNodeSceneView inherits the base class SLSceneView and overrides some eventhandler. Most events such as all mouse and keyboard events from the OS is 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.
Definition at line 31 of file AppNodeSceneView.cpp.
AppNodeSceneView::~AppNodeSceneView | ( | ) |
Definition at line 47 of file AppNodeSceneView.cpp.
Definition at line 137 of file AppNodeSceneView.cpp.
SLSceneView::onKeyPress gets get called whenever a key is pressed. Before passing the command to the eventhandlers the main key commands are handled by forwarding them to onCommand.
Reimplemented from SLSceneView.
Definition at line 222 of file AppNodeSceneView.cpp.
SLSceneView::onKeyRelease get called whenever a key is released.
Reimplemented from SLSceneView.
Definition at line 255 of file AppNodeSceneView.cpp.
|
virtual |
Reimplemented from SLSceneView.
Definition at line 51 of file AppNodeSceneView.cpp.
|
virtual |
Reimplemented from SLSceneView.
Definition at line 67 of file AppNodeSceneView.cpp.
void AppNodeSceneView::reset | ( | ) |
Definition at line 92 of file AppNodeSceneView.cpp.
Definition at line 109 of file AppNodeSceneView.cpp.
Definition at line 118 of file AppNodeSceneView.cpp.
Definition at line 99 of file AppNodeSceneView.cpp.
Definition at line 127 of file AppNodeSceneView.cpp.
void AppNodeSceneView::updateCurOrigin | ( | ) |
Definition at line 263 of file AppNodeSceneView.cpp.
void AppNodeSceneView::updateInfoText | ( | ) |
Definition at line 297 of file AppNodeSceneView.cpp.
SLNode* AppNodeSceneView::_axesNode |
node for axis mesh
Definition at line 58 of file AppNodeSceneView.h.
bool AppNodeSceneView::_continuousInput |
flag for continuous input processing
Definition at line 62 of file AppNodeSceneView.h.
TransformMode AppNodeSceneView::_curMode |
current transform mode
Definition at line 65 of file AppNodeSceneView.h.
SLNode* AppNodeSceneView::_curObject |
current object to transform
Definition at line 66 of file AppNodeSceneView.h.
SLMat4f AppNodeSceneView::_curOrigin |
current origin of relative space (orientation and position of axes)
Definition at line 53 of file AppNodeSceneView.h.
SLTransformSpace AppNodeSceneView::_curSpace |
current transform space
Definition at line 67 of file AppNodeSceneView.h.
SLfloat AppNodeSceneView::_deltaTime |
delta time of a frame
Definition at line 64 of file AppNodeSceneView.h.
bool AppNodeSceneView::_keyStates[65536] |
key press states of all keys
Definition at line 60 of file AppNodeSceneView.h.
SLKey AppNodeSceneView::_modifiers |
pressed modifier keys
Definition at line 61 of file AppNodeSceneView.h.
SLNode* AppNodeSceneView::_moveBox |
big parent cube
Definition at line 55 of file AppNodeSceneView.h.
SLNode* AppNodeSceneView::_moveBoxChild |
little child cube
Definition at line 56 of file AppNodeSceneView.h.
SLVec3f AppNodeSceneView::_pivotPos |
position of the pivot point
Definition at line 57 of file AppNodeSceneView.h.