do not use transparency and ui from MainWindow

This commit is contained in:
Sébastien Loriot 2015-07-03 15:42:46 +02:00
parent 06d4bb6c82
commit 65d11bd4ee
1 changed files with 2 additions and 5 deletions

View File

@ -365,7 +365,6 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionMCFSkeleton_t
| QDockWidget::DockWidgetClosable); | QDockWidget::DockWidgetClosable);
dockWidget->setWindowTitle("Mean Curvature Flow Skeleton"); dockWidget->setWindowTitle("Mean Curvature Flow Skeleton");
mw->addDockWidget(Qt::LeftDockWidgetArea, dockWidget); mw->addDockWidget(Qt::LeftDockWidgetArea, dockWidget);
mw->tabifyDockWidget(static_cast<MainWindow*>(mw)->get_ui()->consoleDockWidget, dockWidget);
dockWidget->show(); dockWidget->show();
dockWidget->raise(); dockWidget->raise();
@ -503,8 +502,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionConvert_to_me
skeleton_item->setName(QString("Medial skeleton curve of %1").arg(item->name())); skeleton_item->setName(QString("Medial skeleton curve of %1").arg(item->name()));
scene->addItem(skeleton_item); scene->addItem(skeleton_item);
item->setGouraudMode(); item->setPointsMode();
item->switch_transparency_on_off();
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
@ -832,8 +830,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionSkeletonize()
if (InputMeshItemIndex >= 0) if (InputMeshItemIndex >= 0)
{ {
scene->item(InputMeshItemIndex)->setVisible(true); scene->item(InputMeshItemIndex)->setVisible(true);
dynamic_cast<Scene_polyhedron_item*>(scene->item(InputMeshItemIndex))->switch_transparency_on_off(); scene->item(InputMeshItemIndex)->setPointsMode();
scene->item(InputMeshItemIndex)->setGouraudMode();
} }
// update scene // update scene