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

#include <MRStatePluginUpdate.h>

+ Inheritance diagram for MR::PluginCloseOnChangeMesh:

Protected Member Functions

virtual MRVIEWER_API bool reactOnFaceSelectionChanges_ () const
 plugin can override it to make this helper class also react on face selections updates
 
virtual MRVIEWER_API void onPluginEnable_ () override
 called when plugin started
 
virtual MRVIEWER_API void onPluginDisable_ () override
 called when plugin stops
 
virtual MRVIEWER_API bool shouldClose_ () const override
 called each frame, return true to close plugin
 

Protected Attributes

bool meshChanged_ { false }
 plugin can return the value to false after mesh change if it changed the mesh by itself and does not want to close
 

Additional Inherited Members

- Public Member Functions inherited from MR::IPluginUpdate
virtual ~IPluginUpdate ()=default
 
virtual void preDrawUpdate ()
 called each frame in before drawDialog
 

Detailed Description

Helper class to close plugin if any of active object meshes was changed inherit your plugin from it


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