mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 18:44:39 +00:00
added dummy plugin files
This commit is contained in:
parent
cf18845f09
commit
ca5ac3fc66
32
src/meshlabplugins/dummy/dummy.cpp
Normal file
32
src/meshlabplugins/dummy/dummy.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
|
||||
**
|
||||
** This file is part of the example classes of the Qt Toolkit.
|
||||
**
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Commercial License Agreement provided with the
|
||||
** Software.
|
||||
**
|
||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
||||
** information about Qt Commercial License Agreements.
|
||||
**
|
||||
** Contact info@trolltech.com if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "dummy.h"
|
||||
|
||||
using namespace vcg;
|
||||
|
||||
void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Q_EXPORT_PLUGIN(DummyPlugin)
|
||||
|
||||
54
src/meshlabplugins/dummy/dummy.h
Normal file
54
src/meshlabplugins/dummy/dummy.h
Normal file
@ -0,0 +1,54 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
|
||||
**
|
||||
** This file is part of the example classes of the Qt Toolkit.
|
||||
**
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Commercial License Agreement provided with the
|
||||
** Software.
|
||||
**
|
||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
||||
** information about Qt Commercial License Agreements.
|
||||
**
|
||||
** Contact info@trolltech.com if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef DUMMYPLUGIN_H
|
||||
#define DUMMYPLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QAction>
|
||||
#include <QString>
|
||||
|
||||
#include <meshlab/glArea.h>
|
||||
#include <meshlab/meshmodel.h>
|
||||
#include <meshlab/interfaces.h>
|
||||
|
||||
class DummyPlugin : public QObject, public MeshRenderInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(MeshRenderInterface)
|
||||
|
||||
QList<QAction *> actionList;
|
||||
|
||||
public:
|
||||
ExtraMeshIOPlugin()
|
||||
{
|
||||
actionList<<new QAction(QString("action 1"),this);
|
||||
actionList<<new QAction(QString("action 2"),this);
|
||||
actionList<<new QAction(QString("action 3"),this);
|
||||
}
|
||||
|
||||
QList<QAction *> actions () {return actionList;}
|
||||
|
||||
virtual void Render(QAction *, MeshModel &, RenderMode &, GLArea *);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
17
src/meshlabplugins/dummy/dummy.pro
Normal file
17
src/meshlabplugins/dummy/dummy.pro
Normal file
@ -0,0 +1,17 @@
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
INCLUDEPATH += ../.. ../../../../sf ../../../../code/lib/glew/include
|
||||
HEADERS = dummy.h
|
||||
SOURCES = dummy.cpp
|
||||
TARGET = dummy
|
||||
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
|
||||
|
||||
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