GLPixelWidget Class Reference

#include <glpixwidget.h>

Inheritance diagram for GLPixelWidget:

QGLWidget

List of all members.


Detailed Description

Definition at line 26 of file glpixwidget.h.


Public Member Functions

 GLPixelWidget (QWidget *parent)
 ~GLPixelWidget ()
void initializeGL ()
void resizeGL (int w, int h)
void paintGL ()
void timerEvent (QTimerEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void drawCube (int i, GLfloat z, GLfloat ri, GLfloat jmp, GLfloat amp)
void initCommon ()
void initPbuffer ()

Private Attributes

GLfloat rot [3]
GLfloat xOffs [3]
GLfloat yOffs [3]
GLfloat xInc [3]
GLuint pbufferList
GLuint dynamicTexture
GLuint cubeTexture
int timerId
QGLPixelBufferpbuffer

Constructor & Destructor Documentation

GLPixelWidget::GLPixelWidget ( QWidget parent  ) 

Definition at line 59 of file glpixwidget.cpp.

References QGLWidget::format(), pbuffer, and timerId.

Here is the call graph for this function:

GLPixelWidget::~GLPixelWidget (  ) 

Definition at line 68 of file glpixwidget.cpp.

References dynamicTexture, pbuffer, pbufferList, and QGLPixelBuffer::releaseFromDynamicTexture().

Here is the call graph for this function:


Member Function Documentation

void GLPixelWidget::initializeGL (  ) 

Reimplemented from QGLWidget.

Definition at line 76 of file glpixwidget.cpp.

References QGLWidget::bindTexture(), cubeTexture, initCommon(), initPbuffer(), rot, xInc, xOffs, and yOffs.

Here is the call graph for this function:

void GLPixelWidget::resizeGL ( int  w,
int  h 
)

Reimplemented from QGLWidget.

Definition at line 96 of file glpixwidget.cpp.

void GLPixelWidget::paintGL (  ) 

Reimplemented from QGLWidget.

Definition at line 107 of file glpixwidget.cpp.

References cubeArray, cubeTexture, drawCube(), dynamicTexture, faceArray, QGLWidget::makeCurrent(), QGLPixelBuffer::makeCurrent(), pbuffer, pbufferList, and QGLPixelBuffer::updateDynamicTexture().

Here is the call graph for this function:

void GLPixelWidget::timerEvent ( QTimerEvent  )  [inline]

Definition at line 34 of file glpixwidget.h.

void GLPixelWidget::mousePressEvent ( QMouseEvent  )  [inline]

Definition at line 35 of file glpixwidget.h.

References timerId.

void GLPixelWidget::mouseReleaseEvent ( QMouseEvent  )  [inline]

Definition at line 36 of file glpixwidget.h.

References timerId.

void GLPixelWidget::drawCube ( int  i,
GLfloat  z,
GLfloat  ri,
GLfloat  jmp,
GLfloat  amp 
)

Definition at line 158 of file glpixwidget.cpp.

References rot, xInc, xOffs, and yOffs.

Referenced by paintGL().

void GLPixelWidget::initCommon (  ) 

Definition at line 182 of file glpixwidget.cpp.

References colorArray, cubeArray, and cubeTextureArray.

Referenced by initializeGL(), and initPbuffer().

void GLPixelWidget::initPbuffer (  ) 

Definition at line 198 of file glpixwidget.cpp.

References QGLPixelBuffer::bindToDynamicTexture(), cubeArray, dynamicTexture, faceArray, QGLPixelBuffer::generateDynamicTexture(), initCommon(), QGLWidget::makeCurrent(), QGLPixelBuffer::makeCurrent(), pbuffer, pbufferList, and QGLPixelBuffer::size().

Referenced by initializeGL().

Here is the call graph for this function:


Member Data Documentation

GLfloat GLPixelWidget::rot[3] [private]

Definition at line 43 of file glpixwidget.h.

Referenced by drawCube(), and initializeGL().

GLfloat GLPixelWidget::xOffs[3] [private]

Definition at line 43 of file glpixwidget.h.

Referenced by drawCube(), and initializeGL().

GLfloat GLPixelWidget::yOffs[3] [private]

Definition at line 43 of file glpixwidget.h.

Referenced by drawCube(), and initializeGL().

GLfloat GLPixelWidget::xInc[3] [private]

Definition at line 43 of file glpixwidget.h.

Referenced by drawCube(), and initializeGL().

GLuint GLPixelWidget::pbufferList [private]

Definition at line 44 of file glpixwidget.h.

Referenced by initPbuffer(), paintGL(), and ~GLPixelWidget().

GLuint GLPixelWidget::dynamicTexture [private]

Definition at line 45 of file glpixwidget.h.

Referenced by initPbuffer(), paintGL(), and ~GLPixelWidget().

GLuint GLPixelWidget::cubeTexture [private]

Definition at line 46 of file glpixwidget.h.

Referenced by initializeGL(), and paintGL().

int GLPixelWidget::timerId [private]

Definition at line 47 of file glpixwidget.h.

Referenced by GLPixelWidget(), mousePressEvent(), and mouseReleaseEvent().

QGLPixelBuffer* GLPixelWidget::pbuffer [private]

Definition at line 49 of file glpixwidget.h.

Referenced by GLPixelWidget(), initPbuffer(), paintGL(), and ~GLPixelWidget().


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