#include <glframewidget.h>
Definition at line 32 of file glframewidget.h.
Public Slots | |
void | animate (qreal) |
void | animFinished () |
void | draw () |
void | setRotX (int val) |
void | setRotY (int val) |
void | setRotZ (int val) |
void | setScale (int val) |
void | setScroll (int val) |
void | setAutoRun (int run) |
Public Member Functions | |
GLFrameWidget (QWidget *parent) | |
~GLFrameWidget () | |
void | saveGLState () |
void | restoreGLState () |
void | paintEvent (QPaintEvent *) |
void | mousePressEvent (QMouseEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | timerEvent (QTimerEvent *) |
void | wheelEvent (QWheelEvent *) |
Private Attributes | |
int | RunTimer |
QPoint | anchor |
float | scale |
float | rot_x |
float | rot_y |
float | rot_z |
GLuint | tile_list |
GLfloat * | wave |
QImage | logo |
QTimeLine * | anim |
QSvgRenderer * | svg_renderer |
QGLFramebufferObject * | fbo |
GLFrameWidget::GLFrameWidget | ( | QWidget * | parent | ) |
Definition at line 11 of file glframewidget.cpp.
References anim, animate(), animFinished(), QImage::convertToFormat(), draw(), fbo, QImage::height(), logo, QGLWidget::makeCurrent(), rot_x, rot_y, rot_z, scale, svg_renderer, tile_list, wave, and QImage::width().
GLFrameWidget::~GLFrameWidget | ( | ) |
void GLFrameWidget::saveGLState | ( | ) |
void GLFrameWidget::restoreGLState | ( | ) |
void GLFrameWidget::paintEvent | ( | QPaintEvent * | ) |
void GLFrameWidget::mousePressEvent | ( | QMouseEvent * | e | ) |
Definition at line 198 of file glframewidget.cpp.
References anchor, and QMouseEvent::pos().
void GLFrameWidget::mouseDoubleClickEvent | ( | QMouseEvent * | ) |
Definition at line 223 of file glframewidget.cpp.
References anim, and QTimeLine::start().
void GLFrameWidget::mouseMoveEvent | ( | QMouseEvent * | e | ) |
Definition at line 203 of file glframewidget.cpp.
References anchor, draw(), QMouseEvent::pos(), rot_x, rot_y, rot_z, QPoint::x(), and QPoint::y().
void GLFrameWidget::timerEvent | ( | QTimerEvent * | ) |
Definition at line 262 of file glframewidget.cpp.
References logo, PI, rot_x, rot_z, RunTimer, scale, wave, and QImage::width().
void GLFrameWidget::wheelEvent | ( | QWheelEvent * | e | ) |
Definition at line 217 of file glframewidget.cpp.
References QWheelEvent::delta(), draw(), and scale.
void GLFrameWidget::animate | ( | qreal | val | ) | [slot] |
void GLFrameWidget::animFinished | ( | ) | [slot] |
void GLFrameWidget::draw | ( | ) | [slot] |
Definition at line 117 of file glframewidget.cpp.
References QPainter::drawRect(), QPainter::drawText(), QPainter::end(), fbo, QPainter::font(), GL_MULTISAMPLE, QImage::height(), logo, QSvgRenderer::render(), restoreGLState(), rot_x, rot_y, rot_z, saveGLState(), scale, QImage::scanLine(), QPainter::setBrush(), QPainter::setPen(), svg_renderer, QGLFramebufferObject::texture(), tile_list, uchar, uint, wave, and QImage::width().
Referenced by animate(), GLFrameWidget(), mouseMoveEvent(), paintEvent(), and wheelEvent().
void GLFrameWidget::setRotX | ( | int | val | ) | [slot] |
void GLFrameWidget::setRotY | ( | int | val | ) | [slot] |
void GLFrameWidget::setRotZ | ( | int | val | ) | [slot] |
void GLFrameWidget::setScale | ( | int | val | ) | [slot] |
void GLFrameWidget::setScroll | ( | int | val | ) | [slot] |
Definition at line 101 of file glframewidget.cpp.
void GLFrameWidget::setAutoRun | ( | int | run | ) | [slot] |
int GLFrameWidget::RunTimer [private] |
QPoint GLFrameWidget::anchor [private] |
Definition at line 66 of file glframewidget.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
float GLFrameWidget::scale [private] |
Definition at line 67 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), setScale(), timerEvent(), and wheelEvent().
float GLFrameWidget::rot_x [private] |
Definition at line 68 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), mouseMoveEvent(), setRotX(), and timerEvent().
float GLFrameWidget::rot_y [private] |
Definition at line 68 of file glframewidget.h.
Referenced by animate(), draw(), GLFrameWidget(), mouseMoveEvent(), and setRotY().
float GLFrameWidget::rot_z [private] |
Definition at line 68 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), mouseMoveEvent(), setRotZ(), and timerEvent().
GLuint GLFrameWidget::tile_list [private] |
Definition at line 69 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), and ~GLFrameWidget().
GLfloat* GLFrameWidget::wave [private] |
Definition at line 70 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), timerEvent(), and ~GLFrameWidget().
QImage GLFrameWidget::logo [private] |
Definition at line 72 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), and timerEvent().
QTimeLine* GLFrameWidget::anim [private] |
Definition at line 73 of file glframewidget.h.
Referenced by animFinished(), GLFrameWidget(), and mouseDoubleClickEvent().
QSvgRenderer* GLFrameWidget::svg_renderer [private] |
QGLFramebufferObject* GLFrameWidget::fbo [private] |
Definition at line 75 of file glframewidget.h.
Referenced by draw(), GLFrameWidget(), and ~GLFrameWidget().