mirror of https://github.com/CGAL/cgal
Remove the init() function without Messages_interface from the plugins API
This commit is contained in:
parent
57a5a91ccf
commit
473c92c00c
|
|
@ -332,9 +332,6 @@ public:
|
|||
return (out && edges_item->save(out));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface* m);
|
||||
QList<QAction*> actions() const;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class Polyhedron_demo_camera_positions_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.IOPluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface);
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface* );
|
||||
QList<QAction*> actions() const;
|
||||
|
||||
QString name() const { return "camera_positions_plugin"; }
|
||||
|
|
@ -34,7 +34,7 @@ private:
|
|||
Camera_positions_list* cpl;
|
||||
};
|
||||
|
||||
void Polyhedron_demo_camera_positions_plugin::init(QMainWindow* mainWindow, Scene_interface*)
|
||||
void Polyhedron_demo_camera_positions_plugin::init(QMainWindow* mainWindow, Scene_interface*, Messages_interface *)
|
||||
{
|
||||
|
||||
cpl = new Camera_positions_list(mainWindow);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ class Polyhedron_demo_nef_plugin :
|
|||
public:
|
||||
|
||||
void init(QMainWindow* mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface* )
|
||||
{
|
||||
scene = scene_interface;
|
||||
this->mw = mw;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ class Polyhedron_demo_convex_hull_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
public:
|
||||
void init(QMainWindow*mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
QAction *actionConvexHull = new QAction("Convex Hull", mw);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public:
|
|||
return qobject_cast<Scene_polyhedron_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
typedef Polyhedron_demo_plugin_helper Plugin_helper;
|
||||
|
||||
using Plugin_helper::init;
|
||||
virtual void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface);
|
||||
virtual void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*);
|
||||
|
||||
QList<QAction*> actions() const
|
||||
{
|
||||
|
|
@ -93,7 +93,7 @@ Io_implicit_function_plugin()
|
|||
|
||||
void
|
||||
Io_implicit_function_plugin::
|
||||
init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface *)
|
||||
{
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ public:
|
|||
|
||||
//! Adds an action to the menu and configures the widget
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface) {
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface*) {
|
||||
//get the references
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ public:
|
|||
|
||||
//! Adds an action to the menu and configures the widget
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface) {
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface*) {
|
||||
//get the references
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -146,7 +146,8 @@ class Polyhedron_demo_mesh_2_plugin :
|
|||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface)
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class Polyhedron_demo_c3t3_binary_io_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface* sc )
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface* sc, Messages_interface*)
|
||||
{
|
||||
this->scene = sc;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class Polyhedron_demo_detect_sharp_edges_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
actionSharEdges = new QAction("Detect Sharp Features", mw);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public:
|
|||
typedef Polyhedron_demo_plugin_helper Plugin_helper;
|
||||
|
||||
using Plugin_helper::init;
|
||||
virtual void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface);
|
||||
virtual void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*);
|
||||
|
||||
QList<QAction*> actions() const
|
||||
{
|
||||
|
|
@ -92,7 +92,7 @@ Io_implicit_function_plugin()
|
|||
|
||||
void
|
||||
Io_implicit_function_plugin::
|
||||
init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface *)
|
||||
{
|
||||
|
||||
this->scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -46,9 +46,6 @@ class Mesh_3_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow*,
|
||||
CGAL::Three::Scene_interface*){}
|
||||
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface* msg_interface)
|
||||
|
|
|
|||
|
|
@ -84,8 +84,6 @@ class Mesh_3_optimization_plugin :
|
|||
typedef Polyhedron_demo_plugin_interface Base;
|
||||
public:
|
||||
Mesh_3_optimization_plugin();
|
||||
|
||||
virtual void init(QMainWindow*, Scene_interface*){}
|
||||
virtual void init(QMainWindow*, Scene_interface*, Messages_interface*);
|
||||
inline virtual QList<QAction*> actions() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ public:
|
|||
return qobject_cast<Scene_segmented_image_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
x_control = NULL;
|
||||
|
|
|
|||
|
|
@ -94,9 +94,6 @@ class Q_DECL_EXPORT Clip_polyhedron_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public :
|
||||
|
||||
void init(QMainWindow*,
|
||||
CGAL::Three::Scene_interface*) {}
|
||||
// Adds an action to the menu and configures the widget
|
||||
void init(QMainWindow* mw,
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public:
|
|||
return QList<QAction*>() << actionPolyhedronCorefinement_3;
|
||||
}
|
||||
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
actionPolyhedronCorefinement_3 = new QAction("Polyhedra Corefinement (A/B)", mw);
|
||||
actionPolyhedronCorefinement_3->setProperty("subMenuName", "Operations on Polyhedra");
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
return QList<QAction*>() << actionPolyhedronIntersection_3;
|
||||
}
|
||||
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
actionPolyhedronIntersection_3 = new QAction("Intersect Polyhedra (A/B)", mw);
|
||||
actionPolyhedronIntersection_3->setProperty("subMenuName", "Operations on Polyhedra");
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class Polyhedron_demo_point_set_from_vertices_plugin :
|
|||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface);
|
||||
CGAL::Three::Scene_interface* scene_interface, Messages_interface*);
|
||||
|
||||
bool applicable(QAction*) const {
|
||||
const CGAL::Three::Scene_interface::Item_id index = scene->mainSelectionIndex();
|
||||
|
|
@ -44,7 +44,8 @@ private:
|
|||
}; // end Polyhedron_demo_point_set_from_vertices_plugin
|
||||
|
||||
void Polyhedron_demo_point_set_from_vertices_plugin::init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface)
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
actionPointSetFromPolyhedronVertices = new QAction(tr("&Create Point Set from Vertices"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class Create_bbox_mesh_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface);
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface*);
|
||||
QList<QAction*> actions() const;
|
||||
bool applicable(QAction*) const {
|
||||
if(scene->mainSelectionIndex() != -1)
|
||||
|
|
@ -91,7 +91,7 @@ private:
|
|||
|
||||
}; // end Create_bbox_mesh_plugin
|
||||
|
||||
void Create_bbox_mesh_plugin::init(QMainWindow* mainWindow, Scene_interface* scene_interface)
|
||||
void Create_bbox_mesh_plugin::init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
actionBbox = new QAction(tr("Create &Bbox Mesh"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
QAction *actionFitPlane = new QAction("Fit Plane", mw);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public:
|
|||
qobject_cast<Scene_polyhedron_transform_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mw, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
actionTransformPolyhedron = new QAction("Affine Transformation", mw);
|
||||
if(actionTransformPolyhedron) {
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class Polyhedron_demo_trivial_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface);
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*);
|
||||
QList<QAction*> actions() const {
|
||||
return QList<QAction*>() << actionBbox;
|
||||
}
|
||||
|
|
@ -165,7 +165,7 @@ private:
|
|||
|
||||
}; // end Polyhedron_demo_trivial_plugin
|
||||
|
||||
void Polyhedron_demo_trivial_plugin::init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
void Polyhedron_demo_trivial_plugin::init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
actionBbox = new QAction(tr("Create Bbox"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ public:
|
|||
QList<QAction*> actions() const { return QList<QAction*>() << actionFairing; }
|
||||
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*) {}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m) {
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -304,7 +304,6 @@ public:
|
|||
QList<QAction*> actions() const { return QList<QAction*>() << actionHoleFilling; }
|
||||
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m);
|
||||
|
||||
virtual void closure()
|
||||
|
|
|
|||
|
|
@ -74,9 +74,6 @@ public:
|
|||
bool applicable(QAction *) const { return qobject_cast<Scene_polylines_item*>(scene->item(scene->mainSelectionIndex())); }
|
||||
void print_message(QString message) { messages->information(message); }
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionHoleFillingPolyline; }
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*)
|
||||
{
|
||||
}
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m){
|
||||
mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
QAction* actionInsideOut = new QAction(tr("Inside Out"), mw);
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class Polyhedron_demo_isotropic_remeshing_plugin :
|
|||
typedef Scene_polyhedron_selection_item::Is_constrained_map<Edge_set> Edge_constrained_pmap;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface)
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ public:
|
|||
return _actions;
|
||||
}
|
||||
void init(QMainWindow* mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
QAction *actionEstimateCurvature = new QAction(tr("Curvature Estimation"), mw);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ class Polyhedron_demo_join_and_split_polyhedra_plugin:
|
|||
public:
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionJoinPolyhedra << actionSplitPolyhedra << actionColorConnectedComponents; }
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m)
|
||||
{
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Polyhedron_demo_mean_curvature_flow_skeleton_plugin :
|
|||
|
||||
public:
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
|
||||
this->mw = mainWindow;
|
||||
this->scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@ public:
|
|||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface* m);
|
||||
void init(QMainWindow*,
|
||||
CGAL::Three::Scene_interface*){}
|
||||
bool applicable(QAction* action) const {
|
||||
Q_FOREACH(CGAL::Three::Scene_interface::Item_id index, scene->selectionIndices()) {
|
||||
if(qobject_cast<Scene_polygon_soup_item*>(scene->item(index)))
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ public:
|
|||
QList<QAction*> actions() const { return QList<QAction*>() << actionPointInsidePolyhedron; }
|
||||
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface* ){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m)
|
||||
{
|
||||
mw = mainWindow;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ public:
|
|||
bool applicable(QAction*) const { return qobject_cast<Scene_polyhedron_item*>(scene->item(scene->mainSelectionIndex())); }
|
||||
void print_message(QString message) { messages->information(message);}
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m);
|
||||
virtual void closure()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ class Polyhedron_demo_polyhedron_stitching_plugin :
|
|||
QAction* actionStitchBorders;
|
||||
public:
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionDetectBorders << actionStitchBorders; }
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* /* m */)
|
||||
{
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ class Polyhedron_demo_repair_polyhedron_plugin :
|
|||
|
||||
public:
|
||||
|
||||
void init(QMainWindow*, Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow,
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface* m)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ public:
|
|||
void print_message(QString message) { messages->information(message); }
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionSelection; }
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*) {}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m) {
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mainWindow,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@ class Polyhedron_demo_triangulate_facets_plugin :
|
|||
|
||||
public:
|
||||
|
||||
void init(QMainWindow*,
|
||||
CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow,
|
||||
CGAL::Three::Scene_interface* scene_interface,
|
||||
Messages_interface* m) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Polyhedron_demo_features_detection_plugin :
|
|||
QAction* actionDetectFeatures;
|
||||
public:
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionDetectFeatures; }
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
actionDetectFeatures= new QAction(tr("VCM Features Estimation"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ private:
|
|||
QAction* actionMergePointSets;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionMergePointSets = new QAction(tr("Merge"), mainWindow);
|
||||
actionMergePointSets->setObjectName("actionMergePointSets");
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ private:
|
|||
QAction* actionAverageSpacing;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
mw = mainWindow;
|
||||
actionAverageSpacing = new QAction(tr("Point Set Average Spacing"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class Polyhedron_demo_point_set_bilateral_smoothing_plugin :
|
|||
QAction* actionBilateralSmoothing;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionBilateralSmoothing = new QAction(tr("Point Set Bilateral Smoothing"), mainWindow);
|
||||
actionBilateralSmoothing->setObjectName("actionBilateralSmoothing");
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class Polyhedron_demo_point_set_normal_estimation_plugin :
|
|||
QAction* actionNormalInversion;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
|
||||
scene = scene_interface;
|
||||
actionNormalEstimation = new QAction(tr("Point Set Normal Estimation"), mainWindow);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ private:
|
|||
QAction* actionOutlierRemoval;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionOutlierRemoval = new QAction(tr("Point Set Outliers Selection"), mainWindow);
|
||||
actionOutlierRemoval->setObjectName("actionOutlierRemoval");
|
||||
|
|
|
|||
|
|
@ -192,7 +192,6 @@ public:
|
|||
void print_message(QString message) { messages->information(message); }
|
||||
QList<QAction*> actions() const { return QList<QAction*>() << actionPointSetSelection; }
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*) {}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* m) {
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class Polyhedron_demo_point_set_shape_detection_plugin :
|
|||
typedef CGAL::Shape_detection_3::Efficient_RANSAC<Traits> Shape_detection;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionDetect = new QAction(tr("Point Set Shape Detection"), mainWindow);
|
||||
actionDetect->setObjectName("actionDetect");
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class Polyhedron_demo_point_set_simplification_plugin :
|
|||
QAction* actionSimplify;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface,Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionSimplify = new QAction(tr("Point Set Simplification Selection"), mainWindow);
|
||||
actionSimplify->setObjectName("actionSimplify");
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Polyhedron_demo_point_set_smoothing_plugin :
|
|||
QAction* actionJetSmoothing;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionJetSmoothing = new QAction(tr("Point Set Jet Smoothing"), mainWindow);
|
||||
actionJetSmoothing->setObjectName("actionJetSmoothing");
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class Polyhedron_demo_point_set_upsampling_plugin :
|
|||
QAction* actionEdgeAwareUpsampling;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionEdgeAwareUpsampling = new QAction(tr("Point Set Edge Aware Upsampling"), mainWindow);
|
||||
actionEdgeAwareUpsampling->setObjectName("actionEdgeAwareUpsampling");
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class Polyhedron_demo_point_set_wlop_plugin :
|
|||
QAction* actionSimplifyAndRegularize;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionSimplifyAndRegularize = new QAction(tr("Point Set WLOP Simplification and Regularization Selection"), mainWindow);
|
||||
actionSimplifyAndRegularize->setObjectName("actionSimplifyAndRegularize");
|
||||
|
|
|
|||
|
|
@ -468,7 +468,7 @@ class Polyhedron_demo_surface_reconstruction_plugin :
|
|||
QAction* actionSurfaceReconstruction;
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
scene = scene_interface;
|
||||
actionSurfaceReconstruction = new QAction(tr("Surface Reconstruction"), mainWindow);
|
||||
actionSurfaceReconstruction->setObjectName("actionSurfaceReconstruction");
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mw,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
scene = scene_interface;
|
||||
QAction *actionLoop = new QAction("Loop", mw);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public:
|
|||
qobject_cast<Scene_polyhedron_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
actionSegmentation = new QAction("Mesh Segmentation", mw);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mainWindow,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ public:
|
|||
}
|
||||
|
||||
void init(QMainWindow* mainWindow,
|
||||
Scene_interface* scene_interface)
|
||||
Scene_interface* scene_interface,
|
||||
Messages_interface*)
|
||||
{
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Polyhedron_demo_remeshing_plugin :
|
|||
Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0")
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface) {
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*) {
|
||||
this->scene = scene_interface;
|
||||
this->mw = mainWindow;
|
||||
actionRemeshing = new QAction(tr("Remeshing"), mw);
|
||||
|
|
|
|||
|
|
@ -71,8 +71,6 @@ public:
|
|||
return qobject_cast<Scene_polyhedron_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
|
||||
|
||||
void init(QMainWindow*, CGAL::Three::Scene_interface*){}
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface* messages)
|
||||
{
|
||||
this->scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public:
|
|||
~Polyhedron_demo_edit_polyhedron_plugin()
|
||||
{ }
|
||||
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface);
|
||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*);
|
||||
virtual void closure()
|
||||
{
|
||||
dock_widget->hide();
|
||||
|
|
@ -87,7 +87,7 @@ bool Polyhedron_demo_edit_polyhedron_plugin::applicable(QAction*) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
void Polyhedron_demo_edit_polyhedron_plugin::init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface)
|
||||
void Polyhedron_demo_edit_polyhedron_plugin::init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface, Messages_interface*)
|
||||
{
|
||||
mw = mainWindow;
|
||||
scene = scene_interface;
|
||||
|
|
|
|||
|
|
@ -39,17 +39,10 @@ class Scene_interface;
|
|||
class Polyhedron_demo_plugin_interface
|
||||
{
|
||||
public:
|
||||
//!Initializes the plugin.
|
||||
//! This acts like a constructor for a plugin. Do all you want to do when the plugin is created :
|
||||
//! get the references to the mainwindow and the scene, connect your signals and slots, etc.
|
||||
virtual void init(QMainWindow*, CGAL::Three::Scene_interface*) = 0;
|
||||
//!This is an overloaded function.
|
||||
//! Initializes the plugin and gives access to a Message interface, that
|
||||
//! can be used to display messages in the console dock widget.
|
||||
//! @see init(QMainWindow*, CGAL::Three::Scene_interface*)
|
||||
virtual void init(QMainWindow* mw, CGAL::Three::Scene_interface* sc, Messages_interface*) {
|
||||
init(mw, sc);
|
||||
}
|
||||
virtual void init(QMainWindow* , CGAL::Three::Scene_interface* , Messages_interface*) = 0;
|
||||
|
||||
//! Decides if the plugin's actions will be displayed or not.
|
||||
//! @returns \c true, if the plugin is applicable, \c false
|
||||
|
|
|
|||
Loading…
Reference in New Issue