remove local_spacing plugin that was needed for splatting

This commit is contained in:
Sébastien Loriot 2012-07-27 10:53:31 +00:00
parent 19422b5103
commit 740d865f09
4 changed files with 0 additions and 85 deletions

1
.gitattributes vendored
View File

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

View File

@ -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)

View File

@ -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"

View File

@ -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 \