libigl v2.5.0
|
Abstract class for plugins All plugins MUST have this class as their parent and may implement any/all the callbacks marked virtual
here.
More...
#include <ViewerPlugin.h>
Public Member Functions | |
ViewerPlugin () | |
virtual | ~ViewerPlugin () |
virtual void | init (Viewer *_viewer) |
This function is called when the viewer is initialized (no mesh will be loaded at this stage) | |
virtual void | shutdown () |
This function is called before shutdown. | |
virtual bool | load (std::string) |
This function is called before a mesh is loaded. | |
virtual bool | save (std::string) |
This function is called before a mesh is saved. | |
virtual bool | serialize (std::vector< char > &) const |
This function is called when the scene is serialized. | |
virtual bool | deserialize (const std::vector< char > &) |
This function is called when the scene is deserialized. | |
virtual bool | post_load () |
Runs immediately after a new mesh has been loaded. | |
virtual bool | pre_draw () |
This function is called before the draw procedure of Viewer. | |
virtual bool | post_draw () |
This function is called after the draw procedure of Viewer. | |
virtual void | post_resize (int, int) |
This function is called after the window has been resized. | |
virtual bool | mouse_down (int, int) |
virtual bool | mouse_up (int, int) |
virtual bool | mouse_move (int, int) |
virtual bool | mouse_scroll (float) |
virtual bool | key_pressed (unsigned int, int) |
virtual bool | key_down (int, int) |
virtual bool | key_up (int, int) |
Public Attributes | |
std::string | plugin_name |
Protected Attributes | |
Viewer * | viewer |
Abstract class for plugins All plugins MUST have this class as their parent and may implement any/all the callbacks marked virtual
here.
Return value of callbacks: returning true to any of the callbacks tells Viewer that the event has been handled and that it should not be passed to other plugins or to other internal functions of Viewer
|
inline |
|
inlinevirtual |
|
inlinevirtual |
This function is called when the viewer is initialized (no mesh will be loaded at this stage)
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
This function is called before shutdown.
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
This function is called before a mesh is loaded.
|
inlinevirtual |
This function is called before a mesh is saved.
|
inlinevirtual |
This function is called when the scene is serialized.
|
inlinevirtual |
This function is called when the scene is deserialized.
|
inlinevirtual |
Runs immediately after a new mesh has been loaded.
|
inlinevirtual |
This function is called before the draw procedure of Viewer.
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
This function is called after the draw procedure of Viewer.
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
This function is called after the window has been resized.
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
|
inlinevirtual |
Reimplemented in igl::opengl::glfw::imgui::ImGuiPlugin.
std::string igl::opengl::glfw::ViewerPlugin::plugin_name |
|
protected |