added dummy plugin files

This commit is contained in:
Paolo Cignoni cignoni 2005-12-02 16:16:23 +00:00
parent cf18845f09
commit ca5ac3fc66
3 changed files with 103 additions and 0 deletions

View 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)

View 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

View 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
}
}