Commit 8db5ec3f authored by Pierre Kraemer's avatar Pierre Kraemer
Browse files

SCHNApps: change the way to update views after map or attribute update

parent 7b6088f7
......@@ -66,13 +66,10 @@ void DifferentialPropertiesPlugin::cb_computeNormal()
if(m_computeNormalDialog->check_createVBO->checkState() == Qt::Checked)
mh->createVBO(normal);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
}
}
void DifferentialPropertiesPlugin::cb_computeCurvature()
......@@ -157,13 +154,10 @@ void DifferentialPropertiesPlugin::cb_computeCurvature()
if(m_computeCurvatureDialog->check_KnormalCreateVBO->checkState() == Qt::Checked)
mh->createVBO(Knormal);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
}
}
#ifndef DEBUG
......
......@@ -89,13 +89,10 @@ void SubdivideSurfacePlugin::cb_loopSubdivision()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
}
}
void SubdivideSurfacePlugin::cb_CCSubdivision()
......@@ -116,13 +113,10 @@ void SubdivideSurfacePlugin::cb_CCSubdivision()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
}
}
void SubdivideSurfacePlugin::cb_trianguleFaces()
......@@ -143,13 +137,10 @@ void SubdivideSurfacePlugin::cb_trianguleFaces()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
}
}
#ifndef DEBUG
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment