From 8a04e568eff367d87f0d03a837fa56a4ce83c0b5 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Mon, 5 Dec 2005 11:38:52 +0000 Subject: [PATCH] workaround: added RenderMode parameter to MeshColorizePlugin::compute --- src/meshlab/interfaces.h | 5 ++++- src/meshlab/mainwindow_RunTime.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/meshlab/interfaces.h b/src/meshlab/interfaces.h index d484dc40a..ccbabfa85 100644 --- a/src/meshlab/interfaces.h +++ b/src/meshlab/interfaces.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.20 2005/12/05 11:38:52 ggangemi +workaround: added RenderMode parameter to MeshColorizePlugin::compute + Revision 1.19 2005/12/03 23:50:15 cignoni changed io interface to return a list instead of a vector @@ -155,7 +158,7 @@ class MeshColorizeInterface { public: //virtual void Compute(const QString &/*mode*/, MeshModel &/*m*/, QWidget * /*parent*/){}; - virtual void Compute(QAction * /*mode*/, MeshModel &/*m*/, GLArea * /*parent*/){}; + virtual void Compute(QAction * /*mode*/, MeshModel &/*m*/, RenderMode &/*rm*/, GLArea * /*parent*/){}; //virtual void Show(const QString &/*mode*/, bool /*show*/, MeshModel &/*m*/, QWidget * /*parent*/) {}; virtual void Show(QAction * /*mode*/, bool /*show*/, MeshModel &/*m*/, GLArea * /*parent*/) {}; diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index 6b25d97a1..af076a1ca 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.20 2005/12/05 11:38:39 ggangemi +workaround: added RenderMode parameter to MeshColorizePlugin::compute + Revision 1.19 2005/12/05 10:27:39 vannini Snapshot in png format instead of ppm @@ -415,7 +418,7 @@ void MainWindow::applyColorMode() { QAction *action = qobject_cast(sender()); MeshColorizeInterface *iColor = qobject_cast(action->parent()); - iColor->Compute(action,*(GLA()->mm ), GLA()); + iColor->Compute(action,*(GLA()->mm ),GLA()->getCurrentRenderMode(), GLA()); if (action->isChecked()) { action->setChecked(true); GLA()->log.Log(GLLogStream::Info,"Applied colorize %s",action->text().toLocal8Bit().constData());