mirror of https://github.com/CGAL/cgal
remove local_spacing plugin that was needed for splatting
This commit is contained in:
parent
19422b5103
commit
740d865f09
|
|
@ -3183,7 +3183,6 @@ Polyhedron/demo/Polyhedron/Polyhedron_demo_corefinement_plugin.cpp -text
|
|||
Polyhedron/demo/Polyhedron/Polyhedron_demo_normal_estimation_plugin.cpp -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_normal_estimation_plugin.ui -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_off_to_xyz_plugin.cpp -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_local_spacing_plugin.cpp -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_outliers_removal_plugin.cpp -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_outliers_removal_plugin.ui -text
|
||||
Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_simplification_plugin.ui -text
|
||||
|
|
|
|||
|
|
@ -359,9 +359,6 @@ if(CGAL_Qt4_FOUND AND QT4_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
|||
polyhedron_demo_plugin(point_set_smoothing_plugin Polyhedron_demo_point_set_smoothing_plugin)
|
||||
target_link_libraries(point_set_smoothing_plugin scene_points_with_normal_item)
|
||||
|
||||
polyhedron_demo_plugin(point_set_local_spacing_plugin Polyhedron_demo_point_set_local_spacing_plugin)
|
||||
target_link_libraries(point_set_local_spacing_plugin scene_points_with_normal_item)
|
||||
|
||||
polyhedron_demo_plugin(point_set_average_spacing_plugin Polyhedron_demo_point_set_average_spacing_plugin)
|
||||
target_link_libraries(point_set_average_spacing_plugin scene_points_with_normal_item)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,80 +0,0 @@
|
|||
#include "config.h"
|
||||
#include "Scene_points_with_normal_item.h"
|
||||
#include "Polyhedron_demo_plugin_helper.h"
|
||||
#include "Polyhedron_demo_plugin_interface.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QAction>
|
||||
#include <QMainWindow>
|
||||
#include <QApplication>
|
||||
#include <QtPlugin>
|
||||
#include <QInputDialog>
|
||||
|
||||
class Polyhedron_demo_point_set_local_spacing_plugin :
|
||||
public QObject,
|
||||
public Polyhedron_demo_plugin_helper
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(Polyhedron_demo_plugin_interface)
|
||||
|
||||
public:
|
||||
void init(QMainWindow* mainWindow, Scene_interface* scene_interface) {
|
||||
actionRadiusFromDensity = new QAction(tr("Point set local spacing"), mainWindow);
|
||||
actionRadiusFromDensity->setObjectName("actionRadiusFromDensity");
|
||||
|
||||
Polyhedron_demo_plugin_helper::init(mainWindow, scene_interface);
|
||||
}
|
||||
|
||||
QList<QAction*> actions() const {
|
||||
return QList<QAction*>() << actionRadiusFromDensity;
|
||||
}
|
||||
|
||||
//! Applicable if the currently selected item is a
|
||||
//! points_with_normal_item.
|
||||
bool applicable() const {
|
||||
return qobject_cast<Scene_points_with_normal_item*>(scene->item(scene->mainSelectionIndex()));
|
||||
}
|
||||
public slots:
|
||||
void on_actionRadiusFromDensity_triggered();
|
||||
|
||||
private:
|
||||
QAction* actionRadiusFromDensity;
|
||||
}; // end Polyhedron_demo_point_set_local_spacing_plugin
|
||||
|
||||
void Polyhedron_demo_point_set_local_spacing_plugin::on_actionRadiusFromDensity_triggered()
|
||||
{
|
||||
const Scene_interface::Item_id index = scene->mainSelectionIndex();
|
||||
|
||||
Scene_points_with_normal_item* item =
|
||||
qobject_cast<Scene_points_with_normal_item*>(scene->item(index));
|
||||
|
||||
if(item)
|
||||
{
|
||||
// Check there is a point set
|
||||
if(item->point_set() == NULL)
|
||||
return;
|
||||
|
||||
// Gets options
|
||||
bool ok;
|
||||
const int k =
|
||||
QInputDialog::getInteger((QWidget*)mw,
|
||||
tr("Local spacing"), // dialog title
|
||||
tr("Number of neighbors:"), // field label
|
||||
6, // default value = small
|
||||
1, // min
|
||||
1000, // max
|
||||
1, // step
|
||||
&ok);
|
||||
if(!ok) return;
|
||||
|
||||
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||
|
||||
item->computes_local_spacing(k);
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN2(Polyhedron_demo_point_set_local_spacing_plugin, Polyhedron_demo_point_set_local_spacing_plugin)
|
||||
|
||||
#include "Polyhedron_demo_point_set_local_spacing_plugin.moc"
|
||||
|
|
@ -135,7 +135,6 @@ else
|
|||
subdivision_methods_plugin \
|
||||
triangulate_facets_plugin \
|
||||
point_set_average_spacing_plugin \
|
||||
point_set_local_spacing_plugin \
|
||||
point_set_outliers_removal_plugin \
|
||||
point_set_simplification_plugin \
|
||||
point_set_smoothing_plugin \
|
||||
|
|
|
|||
Loading…
Reference in New Issue