mirror of https://github.com/CGAL/cgal
Add override in cut_plugin
This commit is contained in:
parent
c342a88440
commit
0c7ba063a6
|
|
@ -799,7 +799,7 @@ public:
|
||||||
|
|
||||||
~Polyhedron_demo_cut_plugin();
|
~Polyhedron_demo_cut_plugin();
|
||||||
|
|
||||||
bool applicable(QAction*) const {
|
bool applicable(QAction*) const Q_DECL_OVERRIDE{
|
||||||
// returns true if one surface_mesh is in the entries
|
// returns true if one surface_mesh is in the entries
|
||||||
for (int i=0; i< scene->numberOfEntries(); ++i)
|
for (int i=0; i< scene->numberOfEntries(); ++i)
|
||||||
{
|
{
|
||||||
|
|
@ -809,30 +809,31 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString name() const
|
QString name() const Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
return "cut-plugin";
|
return "cut-plugin";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString nameFilters() const
|
QString nameFilters() const Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
return "Segment soup file (*.polylines.txt *.cgal)";
|
return "Segment soup file (*.polylines.txt *.cgal)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool canLoad(QFileInfo) const
|
bool canLoad(QFileInfo) const Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<Scene_item*> load(QFileInfo fileinfo, bool& ok, bool add_to_scene=true)
|
QList<Scene_item*> load(QFileInfo fileinfo, bool& ok, bool add_to_scene=true) Q_DECL_OVERRIDE
|
||||||
|
|
||||||
{
|
{
|
||||||
ok = false;
|
ok = false;
|
||||||
return QList<Scene_item*>();
|
return QList<Scene_item*>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool canSave(const CGAL::Three::Scene_item* item)
|
bool canSave(const CGAL::Three::Scene_item* item) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
// This plugin supports edges items
|
// This plugin supports edges items
|
||||||
bool b = qobject_cast<const Scene_edges_item*>(item) != 0;
|
bool b = qobject_cast<const Scene_edges_item*>(item) != 0;
|
||||||
|
|
@ -840,7 +841,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool save(QFileInfo fileinfo,QList<CGAL::Three::Scene_item*>& items)
|
bool save(QFileInfo fileinfo,QList<CGAL::Three::Scene_item*>& items) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
Scene_item* item = items.front();
|
Scene_item* item = items.front();
|
||||||
// This plugin supports edges items
|
// This plugin supports edges items
|
||||||
|
|
@ -859,10 +860,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface,
|
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface,
|
||||||
Messages_interface* m);
|
Messages_interface* m) Q_DECL_OVERRIDE;
|
||||||
QList<QAction*> actions() const;
|
QList<QAction*> actions() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
bool eventFilter(QObject *, QEvent *event)
|
bool eventFilter(QObject *, QEvent *event) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
if(!plane_item)
|
if(!plane_item)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue