MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ViewerPlugin Class Reference

#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

Viewerviewer = &getViewerInstance()
 Pointer to the main Viewer class.
 

Detailed Description

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


The documentation for this class was generated from the following file: