diff --git a/src/meshlabplugins/dummy/dummy.cpp b/src/meshlabplugins/dummy/dummy.cpp deleted file mode 100644 index c6ef810c8..000000000 --- a/src/meshlabplugins/dummy/dummy.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -* 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. * -* * -****************************************************************************/ -/**************************************************************************** - History -$Log$ -Revision 1.6 2005/12/12 11:22:19 cignoni -commented a parameter name to remove a warning - -Revision 1.5 2005/12/04 10:51:30 glvertex -Minor changes - -Revision 1.4 2005/12/03 22:49:46 cignoni -Added copyright info - -****************************************************************************/ -#include - -#include -#include -#include - -#include "dummy.h" - -using namespace vcg; - -void DummyPlugin::Render(QAction *a, MeshModel &/*m*/, RenderMode &rm, GLArea * /*gla*/) -{ - if(a->text() == "action 1") - { - rm.colorMode = GLW::CMNone; - return; - } - - if(a->text() == "action 2") - { - rm.colorMode = GLW::CMPerVert; - return; - } - - if(a->text() == "action 3") - { - rm.colorMode = GLW::CMPerFace; - return; - } - -} - -Q_EXPORT_PLUGIN(DummyPlugin) \ No newline at end of file diff --git a/src/meshlabplugins/dummy/dummy.h b/src/meshlabplugins/dummy/dummy.h deleted file mode 100644 index d15a13c7b..000000000 --- a/src/meshlabplugins/dummy/dummy.h +++ /dev/null @@ -1,67 +0,0 @@ -/**************************************************************************** -* 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. * -* * -****************************************************************************/ -/**************************************************************************** - History -$Log$ -Revision 1.5 2005/12/05 18:10:05 ggangemi -Added isSupported method definition - -Revision 1.4 2005/12/03 22:49:46 cignoni -Added copyright info - -****************************************************************************/ - -#ifndef DUMMYPLUGIN_H -#define DUMMYPLUGIN_H - -#include -#include -#include - -#include -#include -#include - - -class DummyPlugin : public QObject, public MeshRenderInterface -{ - Q_OBJECT - Q_INTERFACES(MeshRenderInterface) - - QList actionList; - -public: - DummyPlugin() - { - actionList << new QAction(QString("action 1"),this); - actionList << new QAction(QString("action 2"),this); - actionList << new QAction(QString("action 3"),this); - } - - virtual bool isSupported() {return false;} - QList actions () const {return actionList;} - - void Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla); -}; - -#endif \ No newline at end of file diff --git a/src/meshlabplugins/dummy/dummy.pro b/src/meshlabplugins/dummy/dummy.pro deleted file mode 100644 index fe447c732..000000000 --- a/src/meshlabplugins/dummy/dummy.pro +++ /dev/null @@ -1,27 +0,0 @@ -TEMPLATE = lib -CONFIG += qt plugin -INCLUDEPATH += ../.. ../../../../sf ../../../../code/lib/glew/include -HEADERS = dummy.h -SOURCES = dummy.cpp -TARGET = dummy -QT += opengl -DESTDIR = ../../meshlab/plugins -# the following line is needed to avoid mismatch between -# the awful min/max macros of windows and the limits max -win32:DEFINES += NOMINMAX - -unix{ - LIBS += -lGLEW - QMAKE_CC = gcc - QMAKE_CXX = g++ - QMAKE_LINK = gcc - CONFIG += warn_off debug_and_release -} - - -contains(TEMPLATE,lib) { - CONFIG(debug, debug|release) { - unix:TARGET = $$member(TARGET, 0)_debug - else:TARGET = $$member(TARGET, 0)d - } -} diff --git a/src/meshlabplugins/sampleplugins/sampleplugins.cpp b/src/meshlabplugins/sampleplugins/sampleplugins.cpp deleted file mode 100644 index 6e24149c8..000000000 --- a/src/meshlabplugins/sampleplugins/sampleplugins.cpp +++ /dev/null @@ -1,110 +0,0 @@ -/**************************************************************************** -* 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. * -* * -****************************************************************************/ -/**************************************************************************** - History -$Log$ -Revision 1.3 2006/11/29 00:59:20 cignoni -Cleaned plugins interface; changed useless help class into a plain string - -Revision 1.2 2006/11/27 06:57:21 cignoni -Wrong way of using the __DATE__ preprocessor symbol - -Revision 1.1 2006/09/25 09:24:39 e_cerisoli -add sampleplugins - -****************************************************************************/ - -#include - -#include -#include -#include -#include "sampleplugins.h" - -#include -#include -#include -#include -#include - -//Constructor -ExtraSamplePlugin::ExtraSamplePlugin() -{ - typeList << FP_MOVE_VERTEX; - - FilterType tt; - - foreach(tt , types()) - actionList << new QAction(ST(tt), this); - init_randnumber = false; -} - - -const QString ExtraSamplePlugin::ST(FilterType filter) -{ - return QString("Move Vertex"); -} - -//Destructor -ExtraSamplePlugin::~ExtraSamplePlugin() -{} - -const QString &ExtraSamplePlugin::Info(QAction *action) -{ - return tr("Apply Filter Move Vertex"); -} - - -const PluginInfo &ExtraSamplePlugin::Info() -{ - static PluginInfo ai; - ai.Date=tr(__DATE__); - ai.Version = tr("0.5"); - ai.Author = ("Elisa Cerisoli"); - return ai; - } - -//Move Vertex of random quantity -bool ExtraSamplePlugin::applyFilter(QAction *filter, MeshModel &m, FilterParameter & par, vcg::CallBackPos *cb) -{ - if(!init_randnumber) - { - srand(time(NULL)); - init_randnumber = true; - } - const float max_displacement = m.cm.bbox.Diag()/100; - for(int i = 0; i< m.cm.vert.size(); i++){ - - float rndax = (float(rand())/RAND_MAX)*max_displacement; - float rnday = (float(rand())/RAND_MAX)*max_displacement; - float rndaz = (float(rand())/RAND_MAX)*max_displacement; - m.cm.vert[i].P() += vcg::Point3f(rndax,rnday,rndaz); - - } - vcg::tri::UpdateNormals::PerVertexNormalizedPerFace(m.cm); - vcg::tri::UpdateBounding::Box(m.cm); - - return true; -} - -Q_EXPORT_PLUGIN(ExtraSamplePlugin) diff --git a/src/meshlabplugins/sampleplugins/sampleplugins.h b/src/meshlabplugins/sampleplugins/sampleplugins.h deleted file mode 100644 index 3fc5d117c..000000000 --- a/src/meshlabplugins/sampleplugins/sampleplugins.h +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -* 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. * -* * -****************************************************************************/ -/**************************************************************************** - History -$Log$ -Revision 1.2 2006/11/29 00:59:21 cignoni -Cleaned plugins interface; changed useless help class into a plain string - -Revision 1.1 2006/09/25 09:24:39 e_cerisoli -add sampleplugins - -****************************************************************************/ - -#ifndef EXTRAFILTERSPLUGIN_H -#define EXTRAFILTERSPLUGIN_H - -#include -#include -#include - -#include -#include - - -class ExtraSamplePlugin : public QObject, public MeshFilterInterface -{ - Q_OBJECT - Q_INTERFACES(MeshFilterInterface) - -public: - enum { FP_MOVE_VERTEX - } ; - - ExtraSamplePlugin(); - ~ExtraSamplePlugin(); - - bool init_randnumber; - virtual const QString ST(FilterType filter); - virtual const QString &Info(QAction *); - virtual const PluginInfo &Info(); - virtual bool applyFilter(QAction *filter, MeshModel &m, FilterParameter & /*parent*/, vcg::CallBackPos * cb) ; - -}; - -#endif \ No newline at end of file diff --git a/src/meshlabplugins/sampleplugins/sampleplugins.pro b/src/meshlabplugins/sampleplugins/sampleplugins.pro deleted file mode 100644 index bbbdc8802..000000000 --- a/src/meshlabplugins/sampleplugins/sampleplugins.pro +++ /dev/null @@ -1,32 +0,0 @@ -TEMPLATE = lib -CONFIG += plugin -INCLUDEPATH += ../.. ../../../../sf ../../../../code/lib/glew/include -HEADERS = sampleplugins.h - -SOURCES = sampleplugins.cpp - -TARGET = sampleplugins -DESTDIR = ../../meshlab/plugins -# the following line is needed to avoid mismatch between -# the awful min/max macros of windows and the limits max -win32:DEFINES += NOMINMAX -# all dialog are stored in meshlab/ui directory - - -QT += opengl -unix{ - QMAKE_CC = gcc - QMAKE_CXX = g++ - QMAKE_LINK = gcc - CONFIG += warn_off debug_and_release -} - -contains(TEMPLATE,lib) { - CONFIG(debug, debug|release) { - unix:TARGET = $$member(TARGET, 0)_debug - else:TARGET = $$member(TARGET, 0)d - } -} - - -