CGAL 4.12.2 - Three
|
#include <CGAL/Three/Polyhedron_demo_plugin_interface.h>
Inherited by CGAL::Three::Polyhedron_demo_plugin_helper.
This virtual class provides the basic functions used for making a plugin.
Public Member Functions | |
virtual void | init (QMainWindow *, CGAL::Three::Scene_interface *, Messages_interface *)=0 |
Initializes the plugin This function acts like a constructor. More... | |
virtual bool | applicable (QAction *action) const =0 |
Indicates if an action is usable or not. More... | |
virtual QList< QAction * > | actions () const =0 |
Contains all the plugin's actions. | |
virtual void | closure () |
Is called when the application is closed. More... | |
|
pure virtual |
Indicates if an action is usable or not.
This function usually tests the type of the selected item to determine if action
can be applied to it, but not necessarly.
true
if action
can be called in the current state, false
otherwise
|
virtual |
Is called when the application is closed.
Override this function if you need to perform a specific action when the application is closed, like hide the widgets if you don't want their visibility to be saved.
|
pure virtual |
Initializes the plugin This function acts like a constructor.
This is where the attributes must be initialized. The Message_interface allows to print warnings or errors on the screen and the Console
widget.