8#ifndef IGL_OPENGL_GLFW_VIEWERPLUGIN_H 
    9#define IGL_OPENGL_GLFW_VIEWERPLUGIN_H 
   17#include "../../igl_inline.h" 
   85      namespace serialization
 
 
Abstract class for plugins All plugins MUST have this class as their parent and may implement any/all...
Definition ViewerPlugin.h:39
 
virtual bool mouse_up(int, int)
Definition ViewerPlugin.h:67
 
virtual bool save(std::string)
This function is called before a mesh is saved.
Definition ViewerPlugin.h:50
 
virtual bool deserialize(const std::vector< char > &)
This function is called when the scene is deserialized.
Definition ViewerPlugin.h:55
 
virtual bool key_up(int, int)
Definition ViewerPlugin.h:77
 
virtual bool key_down(int, int)
Definition ViewerPlugin.h:75
 
std::string plugin_name
Definition ViewerPlugin.h:79
 
virtual bool post_load()
Runs immediately after a new mesh has been loaded.
Definition ViewerPlugin.h:58
 
virtual bool load(std::string)
This function is called before a mesh is loaded.
Definition ViewerPlugin.h:48
 
Viewer * viewer
Definition ViewerPlugin.h:82
 
virtual void shutdown()
This function is called before shutdown.
Definition ViewerPlugin.h:46
 
virtual void post_resize(int, int)
This function is called after the window has been resized.
Definition ViewerPlugin.h:64
 
virtual bool serialize(std::vector< char > &) const
This function is called when the scene is serialized.
Definition ViewerPlugin.h:52
 
virtual bool pre_draw()
This function is called before the draw procedure of Viewer.
Definition ViewerPlugin.h:60
 
virtual bool post_draw()
This function is called after the draw procedure of Viewer.
Definition ViewerPlugin.h:62
 
virtual bool mouse_scroll(float)
Definition ViewerPlugin.h:71
 
virtual bool key_pressed(unsigned int, int)
Definition ViewerPlugin.h:73
 
ViewerPlugin()
Definition ViewerPlugin.h:41
 
virtual void init(Viewer *_viewer)
This function is called when the viewer is initialized (no mesh will be loaded at this stage)
Definition ViewerPlugin.h:44
 
virtual ~ViewerPlugin()
Definition ViewerPlugin.h:42
 
virtual bool mouse_down(int, int)
Definition ViewerPlugin.h:65
 
virtual bool mouse_move(int, int)
Definition ViewerPlugin.h:69
 
#define IGL_INLINE
Definition igl_inline.h:15
 
void serialize(const ViewerPlugin &obj, std::vector< char > &buffer)
Definition ViewerPlugin.h:87
 
void deserialize(ViewerPlugin &obj, const std::vector< char > &buffer)
Definition ViewerPlugin.h:92