|
| | AppDemoSceneView (SLScene *s, int dpi, SLInputManager &inputManager) |
| |
| SLbool | onMouseDown (SLMouseButton button, SLint x, SLint y, SLKey mod) final |
| |
| | SLSceneView (SLScene *s, int dpi, SLInputManager &inputManager) |
| | SLSceneView default constructor. More...
|
| |
| | ~SLSceneView () override |
| |
| void | init (SLstring name, SLint screenWidth, SLint screenHeight, void *onWndUpdateCallback, void *onSelectNodeMeshCallback, SLUiInterface *gui, const string &configPath) |
| |
| void | unInit () |
| |
| void | onInitialize () |
| |
| SLbool | onPaint () |
| |
| void | onResize (SLint width, SLint height) |
| |
| virtual void | onStartup () |
| |
| virtual void | preDraw () |
| |
| virtual void | postDraw () |
| |
| virtual void | postSceneLoad () |
| |
| virtual SLbool | onMouseDown (SLMouseButton button, SLint scrX, SLint scrY, SLKey mod) |
| |
| virtual SLbool | onMouseUp (SLMouseButton button, SLint scrX, SLint scrY, SLKey mod) |
| |
| virtual SLbool | onMouseMove (SLint x, SLint y) |
| |
| virtual SLbool | onMouseWheelPos (SLint wheelPos, SLKey mod) |
| |
| virtual SLbool | onMouseWheel (SLint delta, SLKey mod) |
| |
| virtual SLbool | onTouch2Down (SLint scrX1, SLint scrY1, SLint scrX2, SLint scrY2) |
| |
| virtual SLbool | onTouch2Move (SLint scrX1, SLint scrY1, SLint scrX2, SLint scrY2) |
| |
| virtual SLbool | onTouch2Up (SLint scrX1, SLint scrY1, SLint scrX2, SLint scrY2) |
| |
| virtual SLbool | onDoubleClick (SLMouseButton button, SLint x, SLint y, SLKey mod) |
| |
| virtual SLbool | onKeyPress (SLKey key, SLKey mod) |
| |
| virtual SLbool | onKeyRelease (SLKey key, SLKey mod) |
| |
| virtual SLbool | onCharInput (SLuint c) |
| |
| SLbool | draw3DGL (SLfloat elapsedTimeSec) |
| | Draws the 3D scene with OpenGL. More...
|
| |
| void | draw3DGLAll () |
| |
| void | draw3DGLNodes (SLVNode &nodes, SLbool alphaBlended, SLbool depthSorted) |
| |
| void | draw3DGLLines (SLVNode &nodes) |
| |
| void | draw3DGLLinesOverlay (SLVNode &nodes) |
| |
| void | draw2DGL () |
| |
| void | draw2DGLNodes () |
| |
| SLbool | draw3DRT () |
| |
| SLbool | draw3DPT () |
| |
| SLbool | draw3DCT () |
| |
| void | initSceneViewCamera (const SLVec3f &dir=-SLVec3f::AXISZ, SLProjType proj=P_monoPerspective) |
| |
| void | switchToSceneViewCamera () |
| |
| void | switchToNextCameraInScene () |
| | Sets the active camera to the next in the scene. More...
|
| |
| SLbool | isSceneViewCameraActive () |
| |
| SLstring | windowTitle () |
| |
| void | printStats () |
| |
| void | startRaytracing (SLint maxDepth) |
| |
| void | startPathtracing (SLint maxDepth, SLint samples) |
| |
| void | setViewportFromRatio (const SLVec2i &vpRatio, SLViewportAlign vpAlignment, SLbool vpSameAsVideo) |
| | Sets the viewport ratio and the viewport rectangle. More...
|
| |
| void | saveFrameBufferAsImage (SLstring pathFilename, cv::Size targetSize=cv::Size(-1, -1)) |
| | Saves after n wait frames the front frame buffer as a PNG image. More...
|
| |
| void | camera (SLCamera *camera) |
| |
| void | scene (SLScene *scene) |
| |
| void | scrW (SLint scrW) |
| |
| void | scrH (SLint scrH) |
| |
| void | doWaitOnIdle (SLbool doWI) |
| |
| void | doMultiSampling (SLbool doMS) |
| |
| void | doDepthTest (SLbool doDT) |
| |
| void | doFrustumCulling (SLbool doFC) |
| |
| void | doAlphaSorting (SLbool doAS) |
| |
| void | renderType (SLRenderType rt) |
| |
| void | viewportSameAsVideo (bool sameAsVideo) |
| |
| void | screenCaptureIsRequested (bool doScreenCap) |
| |
| SLScene * | s () |
| |
| SLCamera * | camera () |
| |
| SLCamera * | sceneViewCamera () |
| |
| SLint | scrW () const |
| |
| SLint | scrH () const |
| |
| SLint | scrWdiv2 () const |
| |
| SLint | scrHdiv2 () const |
| |
| SLfloat | scrWdivH () const |
| |
| SLint | dpi () const |
| |
| SLRecti | viewportRect () const |
| |
| SLVec2i | viewportRatio () const |
| |
| SLfloat | viewportWdivH () const |
| |
| SLint | viewportW () const |
| |
| SLint | viewportH () const |
| |
| SLViewportAlign | viewportAlign () const |
| |
| SLbool | viewportSameAsVideo () const |
| |
| SLUiInterface * | gui () |
| |
| SLbool | doFrustumCulling () const |
| |
| SLbool | doAlphaSorting () const |
| |
| SLbool | doMultiSampling () const |
| |
| SLbool | doDepthTest () const |
| |
| SLbool | doWaitOnIdle () const |
| |
| SLVNode & | nodesOpaque3D () |
| |
| SLVNode & | nodesBlended3D () |
| |
| SLVNode & | nodesOpaque2D () |
| |
| SLVNode & | nodesBlended2D () |
| |
| SLVNode & | nodesOverdrawn () |
| |
| SLRaytracer * | raytracer () |
| |
| SLPathtracer * | pathtracer () |
| |
| SLRenderType | renderType () const |
| |
| SLGLOculusFB * | oculusFB () |
| |
| SLDrawBits * | drawBits () |
| |
| SLbool | drawBit (SLuint bit) |
| |
| AvgFloat & | shadowMapTimeMS () |
| |
| AvgFloat & | cullTimesMS () |
| |
| AvgFloat & | draw2DTimesMS () |
| |
| AvgFloat & | draw3DTimesMS () |
| |
| SLNodeStats & | stats2D () |
| |
| SLNodeStats & | stats3D () |
| |
| SLbool | screenCaptureIsRequested () |
| |
| std::unordered_set< SLMaterial * > & | visibleMaterials2D () |
| |
| std::unordered_set< SLMaterial * > & | visibleMaterials3D () |
| |
| | SLObject (const SLstring &Name="", const SLstring &url="") |
| |
| virtual | ~SLObject () |
| |
| void | name (const SLstring &Name) |
| |
| void | url (const SLstring &url) |
| |
| const SLstring & | name () const |
| |
| const SLstring & | url () const |
| |
The SLSceneView class is inherited because we override here the default event-handling for onMouseDown.