From 2b490d136a094dfd607a640b300b15b15b6ecbeb Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Mon, 5 Dec 2005 12:17:09 +0000 Subject: [PATCH] Added MeshDecorateInterface --- src/meshlab/interfaces.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/meshlab/interfaces.h b/src/meshlab/interfaces.h index ccbabfa85..a83a024fb 100644 --- a/src/meshlab/interfaces.h +++ b/src/meshlab/interfaces.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.21 2005/12/05 12:17:09 ggangemi +Added MeshDecorateInterface + Revision 1.20 2005/12/05 11:38:52 ggangemi workaround: added RenderMode parameter to MeshColorizePlugin::compute @@ -170,6 +173,26 @@ public: virtual QList actions() const = 0; }; + + +class MeshDecorateInterface +{ +public: + virtual ~MeshDecorateInterface() {} + + //virtual void Init( const QString &/*mode*/, MeshModel &/*m*/, QWidget * /*parent*/){}; + virtual void Init(QAction * /*mode*/, MeshModel &/*m*/, GLArea * /*parent*/){}; + + //virtual void Render( const QString &/*mode*/, MeshModel &/*m*/, RenderMode &/*rm*/, QWidget * /*parent*/) =0; + virtual void Decorate(QAction * /*mode*/, MeshModel &/*m*/, RenderMode &/*rm*/, GLArea * /*parent*/) = 0; + + //virtual void Finalize(const QString &/*mode*/, MeshModel &/*m*/, QWidget * /*parent*/){}; + virtual void Finalize(QAction * /*mode*/, MeshModel &/*m*/, GLArea * /*parent*/){}; + + //virtual QStringList modes() const = 0; + virtual QList actions() const = 0; +}; + Q_DECLARE_INTERFACE(MeshIOInterface, "vcg.meshlab.MeshIOInterface/1.0") Q_DECLARE_INTERFACE(MeshFilterInterface, @@ -178,5 +201,7 @@ Q_DECLARE_INTERFACE(MeshRenderInterface, "vcg.meshlab.MeshRenderInterface/1.0") Q_DECLARE_INTERFACE(MeshColorizeInterface, "vcg.meshlab.MeshColorizeInterface/1.0") +Q_DECLARE_INTERFACE(MeshDecorateInterface, + "vcg.meshlab.MeshDecorateInterface/1.0") #endif