#include <MRViewerPlugin.h>
Inheritance diagram for MR::ViewerPlugin:Public Member Functions | |
| 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. | |
Protected Attributes | |
| Viewer * | viewer = &getViewerInstance() |
| Pointer to the main Viewer class. | |
Abstract class for plugins All plugins MUST have this class as their parent and may implement any/all the callbacks marked virtual here.
/////For an example of a basic plugins see plugins/skeleton.h
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