\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12.2 - Three
CGAL::Three::Polyhedron_demo_plugin_interface Class Referenceabstract

#include <CGAL/Three/Polyhedron_demo_plugin_interface.h>

Inherited by CGAL::Three::Polyhedron_demo_plugin_helper.

Definition

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...
 

Member Function Documentation

◆ applicable()

virtual bool CGAL::Three::Polyhedron_demo_plugin_interface::applicable ( QAction *  action) const
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.

Returns
true if action can be called in the current state, false otherwise
Examples:
Three/Example_plugin/Basic_item_plugin.cpp.

◆ closure()

virtual void CGAL::Three::Polyhedron_demo_plugin_interface::closure ( )
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.

◆ init()

virtual void CGAL::Three::Polyhedron_demo_plugin_interface::init ( QMainWindow *  ,
CGAL::Three::Scene_interface ,
Messages_interface *   
)
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.

Examples:
Three/Example_plugin/Basic_item_plugin.cpp.