mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
Filter which merge layers taken from different scans into one mesh
This commit is contained in:
parent
c31368de5d
commit
b4040b7fbc
58
src/fgt/filter_scan_merging/filter_scan_merging.cpp
Normal file
58
src/fgt/filter_scan_merging/filter_scan_merging.cpp
Normal 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)
|
||||
46
src/fgt/filter_scan_merging/filter_scan_merging.h
Normal file
46
src/fgt/filter_scan_merging/filter_scan_merging.h
Normal 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
|
||||
5
src/fgt/filter_scan_merging/filter_scan_merging.pro
Normal file
5
src/fgt/filter_scan_merging/filter_scan_merging.pro
Normal file
@ -0,0 +1,5 @@
|
||||
include (../../shared.pri)
|
||||
|
||||
HEADERS += filter_scan_merging.h
|
||||
SOURCES += filter_scan_merging.cpp
|
||||
TARGET = filter_scan_merging
|
||||
Loading…
x
Reference in New Issue
Block a user