![]() |
PeriDyno 1.2.1
|
#include <WSimulationCanvas.h>


Public Member Functions | |
| WSimulationCanvas () | |
| ~WSimulationCanvas () | |
| void | setScene (std::shared_ptr< dyno::SceneGraph > scene) |
| void | update () |
| void | onMousePressed (const Wt::WMouseEvent &evt) |
| void | onMouseDrag (const Wt::WMouseEvent &evt) |
| void | onMouseReleased (const Wt::WMouseEvent &evt) |
| void | onMouseWheeled (const Wt::WMouseEvent &evt) |
| void | onKeyWentDown (const Wt::WKeyEvent &evt) |
| void | onKeyWentUp (const Wt::WKeyEvent &evt) |
| void | selectNode (std::shared_ptr< dyno::Node > node) |
| Wt::Signal< std::shared_ptr< dyno::Node > > & | selectNodeSignal () |
| void | setDefaultAnimationOption (bool op) override |
Public Member Functions inherited from dyno::RenderWindow | |
| RenderWindow () | |
| virtual void | initialize (int width, int height) |
| virtual void | mainLoop () |
| virtual std::shared_ptr< RenderEngine > | getRenderEngine () |
| virtual void | setRenderEngine (std::shared_ptr< RenderEngine > engine) |
| virtual std::shared_ptr< Camera > | getCamera () |
| virtual void | setCamera (std::shared_ptr< Camera > camera) |
| RenderParams & | getRenderParams () |
| void | setRenderParams (const RenderParams &rparams) |
| virtual void | setWindowSize (int w, int h) |
| SelectionMode | getSelectionMode () |
| void | setSelectionMode (SelectionMode mode) |
| void | toggleImGUI () |
| bool | showImGUI () |
| bool & | isScreenRecordingOn () |
| int & | screenRecordingInterval () |
| void | setScreenRecordingPath (std::string path) |
| void | saveScreen (unsigned int frame) |
| void | setMainLightDirection (glm::vec3 dir) |
| virtual const Selection & | select (int x, int y, int w, int h) |
| virtual void | select (std::shared_ptr< Node > node, int instance=-1, int primitive=-1) |
| virtual std::shared_ptr< Node > | getCurrentSelectedNode () |
Protected Member Functions | |
| void | initializeGL () |
| void | makeCurrent () |
| void | doneCurrent () |
| void | render (Wt::WFlags< Wt::RenderFlag > flags) override |
| void | layoutSizeChanged (int width, int height) override |
Protected Member Functions inherited from dyno::RenderWindow | |
| virtual void | onSaveScreen (const std::string &filename) |
| virtual void | onSelected (const Selection &s) |
Protected Attributes | |
| int | width = 800 |
| int | height = 600 |
Protected Attributes inherited from dyno::RenderWindow | |
| std::shared_ptr< RenderEngine > | mRenderEngine |
| RenderParams | mRenderParams |
| std::shared_ptr< Camera > | mCamera |
| Selection | selectedObject |
| SelectionMode | mSelectionMode = SelectionMode::OBJECT_MODE |
| bool | mShowImWindow = true |
| bool | mSaveScreenToggle = false |
| int | mSaveScreenInterval = 1 |
| std::string | mScreenRecordingPath |
Private Attributes | |
| Wt::WImage * | mImage |
| Wt::WApplication * | mApp |
| GLFWwindow * | mContext |
| ImGuiBackendWt * | mImGuiCtx |
| dyno::ImWindow | mImWindow |
| std::vector< unsigned char > | mImageData |
| std::vector< unsigned char > | mJpegBuffer |
| std::unique_ptr< ImageEncoder > | mJpegEncoder |
| std::unique_ptr< Wt::WMemoryResource > | mJpegResource |
| std::shared_ptr< dyno::SceneGraph > | mScene = nullptr |
| dyno::Framebuffer | mFramebuffer |
| dyno::Texture2D | mFrameColor |
| bool | mMouseButtonDown = false |
| int | mCursorX = -1 |
| int | mCursorY = -1 |
| int | mtempCursorX = -1 |
| Wt::Signal< std::shared_ptr< dyno::Node > > | _selectNodeSignal |
Additional Inherited Members | |
Public Types inherited from dyno::RenderWindow | |
| enum | SelectionMode { OBJECT_MODE , PRIMITIVE_MODE } |
Definition at line 26 of file WSimulationCanvas.h.
| WSimulationCanvas::WSimulationCanvas | ( | ) |
| WSimulationCanvas::~WSimulationCanvas | ( | ) |
|
protected |
|
protected |
Definition at line 195 of file WSimulationCanvas.cpp.


|
overrideprotected |
|
protected |
| void WSimulationCanvas::onKeyWentDown | ( | const Wt::WKeyEvent & | evt | ) |
Definition at line 363 of file WSimulationCanvas.cpp.


| void WSimulationCanvas::onKeyWentUp | ( | const Wt::WKeyEvent & | evt | ) |
| void WSimulationCanvas::onMouseDrag | ( | const Wt::WMouseEvent & | evt | ) |
Definition at line 299 of file WSimulationCanvas.cpp.


| void WSimulationCanvas::onMousePressed | ( | const Wt::WMouseEvent & | evt | ) |
Definition at line 275 of file WSimulationCanvas.cpp.


| void WSimulationCanvas::onMouseReleased | ( | const Wt::WMouseEvent & | evt | ) |
Definition at line 324 of file WSimulationCanvas.cpp.


| void WSimulationCanvas::onMouseWheeled | ( | const Wt::WMouseEvent & | evt | ) |
|
overrideprotected |
| void WSimulationCanvas::selectNode | ( | std::shared_ptr< dyno::Node > | node | ) |
|
inline |
Definition at line 51 of file WSimulationCanvas.h.
|
inlineoverridevirtual |
Implements dyno::RenderWindow.
Definition at line 53 of file WSimulationCanvas.h.
| void WSimulationCanvas::setScene | ( | std::shared_ptr< dyno::SceneGraph > | scene | ) |
| void WSimulationCanvas::update | ( | ) |
Definition at line 400 of file WSimulationCanvas.cpp.


|
private |
Definition at line 93 of file WSimulationCanvas.h.
|
protected |
Definition at line 64 of file WSimulationCanvas.h.
|
private |
Definition at line 68 of file WSimulationCanvas.h.
|
private |
Definition at line 70 of file WSimulationCanvas.h.
|
private |
Definition at line 89 of file WSimulationCanvas.h.
|
private |
Definition at line 90 of file WSimulationCanvas.h.
|
private |
Definition at line 84 of file WSimulationCanvas.h.
|
private |
Definition at line 85 of file WSimulationCanvas.h.
|
private |
Definition at line 67 of file WSimulationCanvas.h.
|
private |
Definition at line 75 of file WSimulationCanvas.h.
|
private |
Definition at line 71 of file WSimulationCanvas.h.
|
private |
Definition at line 73 of file WSimulationCanvas.h.
|
private |
Definition at line 76 of file WSimulationCanvas.h.
|
private |
Definition at line 77 of file WSimulationCanvas.h.
|
private |
Definition at line 78 of file WSimulationCanvas.h.
|
private |
Definition at line 87 of file WSimulationCanvas.h.
|
private |
Definition at line 80 of file WSimulationCanvas.h.
|
private |
Definition at line 91 of file WSimulationCanvas.h.
|
protected |
Definition at line 63 of file WSimulationCanvas.h.