Filter which merge layers taken from different scans into one mesh

This commit is contained in:
Manuele Sabbadin msabbadin 2012-08-07 15:27:25 +00:00
parent c31368de5d
commit b4040b7fbc
3 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,58 @@
/****************************************************************************
* MeshLab o o *
* A versatile mesh processing toolbox o o *
* _ O _ *
* Copyright(C) 2005 \/)\/ *
* Visual Computing Lab /\/| *
* ISTI - Italian National Research Council | *
* \ *
* All rights reserved. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
* for more details. *
* *
****************************************************************************/
#include <QtGui>
#include "filter_scan_merging.h"
using namespace std;
using namespace vcg;
// Constructor
FilterScanMergingPlugin::FilterScanMergingPlugin()
{
}
// ST() return the very short string describing each filtering action
QString FilterScanMergingPlugin::filterName() const
{
return QString("Merges different layers into one mesh.");
}
// Info() return the longer string describing each filtering action
QString FilterScanMergingPlugin::filterInfo() const
{
return QString("All the layers are merged into one mesh without loss of the high frequencies details.");
}
// This function define the needed parameters for each filter.
void FilterScanMergingPlugin::initParameterSet(QAction *action, MeshDocument &md, RichParameterSet &parlst)
{
}
// Core Function doing the actual mesh processing.
bool FilterScanMergingPlugin::applyFilter(QAction *filter, MeshDocument &md, RichParameterSet & par, vcg::CallBackPos *cb)
{
}
Q_EXPORT_PLUGIN(FilterScanMergingPlugin)

View File

@ -0,0 +1,46 @@
/****************************************************************************
* MeshLab o o *
* A versatile mesh processing toolbox o o *
* _ O _ *
* Copyright(C) 2005 \/)\/ *
* Visual Computing Lab /\/| *
* ISTI - Italian National Research Council | *
* \ *
* All rights reserved. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
* for more details. *
* *
****************************************************************************/
#ifndef FILTER_SCAN_MERGING_H
#define FILTER_SCAN_MERGING_H
#include <QObject>
#include <common/interfaces.h>
class FilterScanMergingPlugin : public QObject, public MeshFilterInterface
{
Q_OBJECT
Q_INTERFACES(MeshFilterInterface)
public:
FilterLayerPlugin();
virtual QString filterName() const;
virtual QString filterInfo() const;
virtual FilterClass getClass(QAction *);
virtual void initParameterSet(QAction *,MeshDocument &/*m*/, RichParameterSet & /*parent*/);
virtual bool applyFilter(QAction *filter, MeshDocument &md, RichParameterSet & /*parent*/, vcg::CallBackPos * cb) ;
};
#endif

View File

@ -0,0 +1,5 @@
include (../../shared.pri)
HEADERS += filter_scan_merging.h
SOURCES += filter_scan_merging.cpp
TARGET = filter_scan_merging