#include <CGLHistogram.h>

Signals | |
| void | TransformChange (float, float) |
Public Member Functions | |
| CGLHistogram (QWidget *parent) | |
| ~CGLHistogram () | |
| void | DisplayData (float *data, int dataSize) |
| void | ResetDataView () |
| void | ResetDataViewH () |
| void | ResetDataViewV () |
Protected Member Functions | |
| virtual void | Update () |
| virtual void | onDraw () |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | onLOG (QString &) |
| virtual void | onLOG (const char *) |
Private Member Functions | |
| void | ResetView () |
| void | ResetViewH () |
| void | ResetViewV () |
Private Attributes | |
| QGLFramebufferObject * | fboObject1 |
| float | bgColor [4] |
| float | zoomX |
| float | zoomY |
| float | panX |
| float | panY |
| bool | doZoom |
| bool | doPan |
Definition at line 26 of file CGLHistogram.h.
| CGLHistogram::CGLHistogram | ( | QWidget * | parent = 0 |
) |
Definition at line 24 of file CGLHistogram.cpp.
References bgColor, CGLSurface::EnableThread(), fboObject1, ResetView(), and Update().
| CGLHistogram::~CGLHistogram | ( | ) |
| void CGLHistogram::DisplayData | ( | float * | data, | |
| int | dataSize | |||
| ) |
Definition at line 42 of file CGLHistogram.cpp.
References bgColor, fboObject1, CGLSurface::lockGLContext(), onDraw(), CGLSurface::unlockGLContext(), and Update().
Referenced by CTransferWdt::SetHistogramData().
| void CGLHistogram::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from CGLSurface.
Definition at line 150 of file CGLHistogram.cpp.
References doPan, doZoom, CGLSurface::dx, CGLSurface::dy, CGLSurface::oldPosX, CGLSurface::oldPosY, panX, panY, Update(), zoomX, and zoomY.
| void CGLHistogram::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from CGLSurface.
Definition at line 203 of file CGLHistogram.cpp.
References doPan, doZoom, CGLSurface::oldPosX, CGLSurface::oldPosY, ResetView(), and Update().
| void CGLHistogram::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
| void CGLHistogram::onDraw | ( | ) | [protected, virtual] |
Reimplemented from CGLSurface.
Definition at line 108 of file CGLHistogram.cpp.
References bgColor, fboObject1, panX, zoomX, and zoomY.
Referenced by DisplayData().
| virtual void CGLHistogram::onLOG | ( | const char * | ) | [inline, protected, virtual] |
| virtual void CGLHistogram::onLOG | ( | QString & | ) | [inline, protected, virtual] |
| void CGLHistogram::ResetDataView | ( | ) | [inline] |
| void CGLHistogram::ResetDataViewH | ( | ) | [inline] |
| void CGLHistogram::ResetDataViewV | ( | ) | [inline] |
| void CGLHistogram::ResetView | ( | ) | [private] |
Definition at line 236 of file CGLHistogram.cpp.
References doPan, doZoom, panX, panY, Update(), zoomX, and zoomY.
Referenced by CGLHistogram(), mousePressEvent(), and ResetDataView().
| void CGLHistogram::ResetViewH | ( | ) | [private] |
Definition at line 244 of file CGLHistogram.cpp.
References doPan, doZoom, panX, Update(), and zoomX.
Referenced by ResetDataViewH().
| void CGLHistogram::ResetViewV | ( | ) | [private] |
Definition at line 252 of file CGLHistogram.cpp.
References doPan, doZoom, Update(), and zoomY.
Referenced by ResetDataViewV().
| void CGLHistogram::TransformChange | ( | float | , | |
| float | ||||
| ) | [signal] |
Referenced by Update().
| virtual void CGLHistogram::Update | ( | ) | [inline, protected, virtual] |
Reimplemented from CGLSurface.
Definition at line 51 of file CGLHistogram.h.
References panX, TransformChange(), and zoomX.
Referenced by CGLHistogram(), DisplayData(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), ResetView(), ResetViewH(), and ResetViewV().
float CGLHistogram::bgColor[4] [private] |
Definition at line 75 of file CGLHistogram.h.
Referenced by CGLHistogram(), DisplayData(), and onDraw().
bool CGLHistogram::doPan [private] |
Definition at line 79 of file CGLHistogram.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), ResetView(), ResetViewH(), and ResetViewV().
bool CGLHistogram::doZoom [private] |
Definition at line 78 of file CGLHistogram.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), ResetView(), ResetViewH(), and ResetViewV().
QGLFramebufferObject* CGLHistogram::fboObject1 [private] |
Definition at line 74 of file CGLHistogram.h.
Referenced by CGLHistogram(), DisplayData(), onDraw(), and ~CGLHistogram().
float CGLHistogram::panX [private] |
Definition at line 77 of file CGLHistogram.h.
Referenced by mouseMoveEvent(), onDraw(), ResetView(), ResetViewH(), and Update().
float CGLHistogram::panY [private] |
float CGLHistogram::zoomX [private] |
Definition at line 77 of file CGLHistogram.h.
Referenced by mouseMoveEvent(), onDraw(), ResetView(), ResetViewH(), and Update().
float CGLHistogram::zoomY [private] |
Definition at line 77 of file CGLHistogram.h.
Referenced by mouseMoveEvent(), onDraw(), ResetView(), and ResetViewV().
1.5.7.1