GLFrameWidget Class Reference

#include <glframewidget.h>

Inheritance diagram for GLFrameWidget:

QGLWidget

List of all members.


Detailed Description

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
QTimeLineanim
QSvgRenderersvg_renderer
QGLFramebufferObjectfbo

Constructor & Destructor Documentation

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().

Here is the call graph for this function:

GLFrameWidget::~GLFrameWidget (  ) 

Definition at line 72 of file glframewidget.cpp.

References fbo, tile_list, and wave.


Member Function Documentation

void GLFrameWidget::saveGLState (  ) 

Definition at line 242 of file glframewidget.cpp.

Referenced by draw().

void GLFrameWidget::restoreGLState (  ) 

Definition at line 251 of file glframewidget.cpp.

Referenced by draw().

void GLFrameWidget::paintEvent ( QPaintEvent  ) 

Reimplemented from QGLWidget.

Definition at line 112 of file glframewidget.cpp.

References draw().

void GLFrameWidget::mousePressEvent ( QMouseEvent e  ) 

Definition at line 198 of file glframewidget.cpp.

References anchor, and QMouseEvent::pos().

Here is the call graph for this function:

void GLFrameWidget::mouseDoubleClickEvent ( QMouseEvent  ) 

Definition at line 223 of file glframewidget.cpp.

References anim, and QTimeLine::start().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void GLFrameWidget::wheelEvent ( QWheelEvent e  ) 

Definition at line 217 of file glframewidget.cpp.

References QWheelEvent::delta(), draw(), and scale.

Here is the call graph for this function:

void GLFrameWidget::animate ( qreal  val  )  [slot]

Definition at line 228 of file glframewidget.cpp.

References draw(), and rot_y.

Referenced by GLFrameWidget().

void GLFrameWidget::animFinished (  )  [slot]

Definition at line 234 of file glframewidget.cpp.

References anim.

Referenced by GLFrameWidget().

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]

Definition at line 81 of file glframewidget.cpp.

References rot_x.

void GLFrameWidget::setRotY ( int  val  )  [slot]

Definition at line 86 of file glframewidget.cpp.

References rot_y.

void GLFrameWidget::setRotZ ( int  val  )  [slot]

Definition at line 91 of file glframewidget.cpp.

References rot_z.

void GLFrameWidget::setScale ( int  val  )  [slot]

Definition at line 96 of file glframewidget.cpp.

References scale.

void GLFrameWidget::setScroll ( int  val  )  [slot]

Definition at line 101 of file glframewidget.cpp.

void GLFrameWidget::setAutoRun ( int  run  )  [slot]

Definition at line 105 of file glframewidget.cpp.

References RunTimer.


Member Data Documentation

int GLFrameWidget::RunTimer [private]

Definition at line 64 of file glframewidget.h.

Referenced by setAutoRun(), and timerEvent().

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]

Definition at line 74 of file glframewidget.h.

Referenced by draw(), and GLFrameWidget().

QGLFramebufferObject* GLFrameWidget::fbo [private]

Definition at line 75 of file glframewidget.h.

Referenced by draw(), GLFrameWidget(), and ~GLFrameWidget().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:41 2007 for BBoB by  doxygen 1.5.3