workaround: added RenderMode parameter to MeshColorizePlugin::compute

This commit is contained in:
Paolo Cignoni cignoni 2005-12-05 11:38:52 +00:00
parent 8a4476baf5
commit 8a04e568ef
2 changed files with 8 additions and 2 deletions

View File

@ -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*/) {};

View File

@ -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<QAction *>(sender());
MeshColorizeInterface *iColor = qobject_cast<MeshColorizeInterface *>(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());