From ca5ac3fc667bc6ac3cc674d6801b8eb8a11350f4 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Fri, 2 Dec 2005 16:16:23 +0000 Subject: [PATCH] added dummy plugin files --- src/meshlabplugins/dummy/dummy.cpp | 32 ++++++++++++++++++ src/meshlabplugins/dummy/dummy.h | 54 ++++++++++++++++++++++++++++++ src/meshlabplugins/dummy/dummy.pro | 17 ++++++++++ 3 files changed, 103 insertions(+) create mode 100644 src/meshlabplugins/dummy/dummy.cpp create mode 100644 src/meshlabplugins/dummy/dummy.h create mode 100644 src/meshlabplugins/dummy/dummy.pro diff --git a/src/meshlabplugins/dummy/dummy.cpp b/src/meshlabplugins/dummy/dummy.cpp new file mode 100644 index 000000000..4e8e3a430 --- /dev/null +++ b/src/meshlabplugins/dummy/dummy.cpp @@ -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) + diff --git a/src/meshlabplugins/dummy/dummy.h b/src/meshlabplugins/dummy/dummy.h new file mode 100644 index 000000000..c578c29ce --- /dev/null +++ b/src/meshlabplugins/dummy/dummy.h @@ -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 +#include +#include + +#include +#include +#include + +class DummyPlugin : public QObject, public MeshRenderInterface +{ + Q_OBJECT + Q_INTERFACES(MeshRenderInterface) + + QList actionList; + +public: + ExtraMeshIOPlugin() + { + actionList< actions () {return actionList;} + + virtual void Render(QAction *, MeshModel &, RenderMode &, GLArea *); + +}; + +#endif diff --git a/src/meshlabplugins/dummy/dummy.pro b/src/meshlabplugins/dummy/dummy.pro new file mode 100644 index 000000000..93d6df8f0 --- /dev/null +++ b/src/meshlabplugins/dummy/dummy.pro @@ -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 + } +}