42 lines
784 B
C++
42 lines
784 B
C++
#ifndef CVTAB_H
|
|
#define CVTAB_H
|
|
|
|
#include <QTabWidget>
|
|
#include <QPainter>
|
|
#include<QLabel>
|
|
#include "GLwindow.h"
|
|
|
|
class cvTab : public QTabWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit cvTab(QWidget *parent = 0);
|
|
// void keyPressEvent(QKeyEvent* event);
|
|
// void mouseMoveEvent(QMouseEvent *event);
|
|
void paintEvent(QPaintEvent* e);
|
|
void _Onglet();
|
|
void setImg(QImage* Img);
|
|
|
|
// void setModel(QGLWidget * Model);
|
|
static void calculHist(QImage* image , int* histR,int*histG,int* histB);
|
|
signals:
|
|
|
|
private:
|
|
QLabel Visuel;
|
|
QLabel Histograme_2D ;
|
|
GLwindow Histogramme_3D ;
|
|
QImage* _image;
|
|
|
|
// QGLWidget *_model;
|
|
public slots:
|
|
//Slot that is called when Tab selection changes
|
|
void _currentChangedSlot(int index);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif // CVTAB_H
|