Commit cabcccf8 authored by Thery Sylvain's avatar Thery Sylvain

Minor modification tutu_histo (update mesh colorization)

parent f2e7e195
......@@ -173,12 +173,16 @@ void MyQT::cb_keyPress(int keycode)
l_nbc++;
l_histo->populateHisto(l_nbc);
l_histodraw->repaint();
l_histo->histoColorizeVBO(*m_colorVBO2);
updateGL();
break;
case '-' :
if (l_nbc>0)
l_nbc--;
l_histo->populateHisto(l_nbc);
l_histodraw->repaint();
l_histo->histoColorizeVBO(*m_colorVBO2);
updateGL();
break;
case 'p' :
......@@ -205,6 +209,8 @@ void MyQT::cb_keyPress(int keycode)
l_histo->centerOnZero();
l_histo->populateHisto(l_nbc);
l_histodraw->repaint();
l_histo->histoColorizeVBO(*m_colorVBO2);
updateGL();
break;
case 'w' :
......@@ -214,6 +220,8 @@ void MyQT::cb_keyPress(int keycode)
l_histo->setMax(av*0.1 + l_histo->getMax()*0.9);
l_histo->populateHisto(l_nbc);
l_histodraw->repaint();
l_histo->histoColorizeVBO(*m_colorVBO2);
updateGL();
}
break;
case 'x' :
......@@ -223,6 +231,8 @@ void MyQT::cb_keyPress(int keycode)
l_histo->setMax(-0.1*av + l_histo->getMax()*1.1);
l_histo->populateHisto(l_nbc);
l_histodraw->repaint();
l_histo->histoColorizeVBO(*m_colorVBO2);
updateGL();
}
break;
......
......@@ -26,6 +26,7 @@
#define __QEM__
#include "Utils/os_spec.h" // allow compilation under windows
#include <cmath>
#include "Geometry/vector_gen.h"
#include "Geometry/matrix.h"
......@@ -155,7 +156,7 @@ private:
bool optimize(VEC4& v) const
{
if (isnan(A(0,0)))
if (std::isnan(A(0,0)))
return false ;
MATRIX44 A2(A) ;
......
......@@ -170,7 +170,7 @@ void RenderHistogram::drawHisto(QPainter& painter)
const char* ptr =sv.c_str();
QString qsv(ptr);
painter.drawText (1,h-6,widthAxl,12,Qt::AlignRight,qsv);
painter.drawText (1,h-6,widthAxl,15,Qt::AlignRight,qsv);
}
painter.setPen(QColor(0,0,0));
......
Markdown is supported
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