mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-16 09:34:36 +00:00
removed no more updated files
This commit is contained in:
parent
875c22f19c
commit
423a5ae830
@ -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 <QtGui>
|
||||
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
#include <meshlab/glarea.h>
|
||||
|
||||
#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)
|
||||
@ -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 <QObject>
|
||||
#include <QAction>
|
||||
#include <QList>
|
||||
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
#include <meshlab/glarea.h>
|
||||
|
||||
|
||||
class DummyPlugin : public QObject, public MeshRenderInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(MeshRenderInterface)
|
||||
|
||||
QList <QAction *> 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<QAction *> actions () const {return actionList;}
|
||||
|
||||
void Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla);
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
@ -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 <QtGui>
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "sampleplugins.h"
|
||||
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
#include <vcg/complex/trimesh/clean.h>
|
||||
#include <vcg/complex/trimesh/update/normal.h>
|
||||
#include <vcg/complex/trimesh/update/bounding.h>
|
||||
|
||||
//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<CMeshO>::PerVertexNormalizedPerFace(m.cm);
|
||||
vcg::tri::UpdateBounding<CMeshO>::Box(m.cm);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(ExtraSamplePlugin)
|
||||
@ -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 <QObject>
|
||||
#include <QStringList>
|
||||
#include <QList>
|
||||
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
|
||||
|
||||
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
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user