#include <kglimageviewer.h>
Public Types | |
typedef QValueList< KGLImage > | KGLImageList |
Public Slots | |
virtual void | updateGL () |
Public Member Functions | |
KGLImageViewer (QWidget *parent, const char *name, float fps=25, bool interactive=true) | |
~KGLImageViewer () | |
void | setInteractive (bool interactive=true) |
void | setCanvas (const QColor &color, bool update=true) |
float | position (Axis a) const |
float | rotation (Axis a) const |
float | scaleFactor (Axis a) const |
void | rotate (Axis a, float degrees, int msecs=0) |
void | rotate (float xDegrees, float yDegrees, float zDegrees, bool update=true) |
void | rotateTo (Axis a, float degrees, int msecs=0) |
void | rotateTo (float xDegrees, float yDegrees, float zDegrees, bool update=true) |
void | scale (Axis a, float percent, int msecs=0) |
void | scale (float xPercent, float yPercent, bool update=true) |
void | scaleTo (Axis a, float percent, int msecs=0) |
void | scaleTo (float xPercent, float yPercent, bool update=true) |
void | move (Axis a, float percent, int msecs=0) |
void | move (float xPercent, float yPercent, float zPercent, bool update=true) |
void | moveTo (Axis a, float percent, int msecs=0) |
void | moveTo (float xPercent, float yPercent, float zPercent, bool update=true) |
void | message (int x, int y, QString message, int msecs, const QColor *color=0L) |
void | hideMessage () |
uint | load (const KGLImage &image, bool show=false) |
uint | load (const QImage &img, bool show=false) |
int | load (const QString &imgPath, bool show=false) |
uint | load (const QPixmap &pix, bool show=false) |
void | remove (uint id) |
int | fpsDelay () |
bool | providesShaders () |
KGLImageList & | images () |
bool | isTimerActive () const |
GLhandleARB | loadShader (QString file, GLenum shaderType) |
ShaderList & | shaders () |
Protected Member Functions | |
void | ensureTimerIsActive () |
virtual void | mergeCnB (KGLImage &img) |
virtual void | initializeGL () |
virtual void | paintGL () |
virtual void | resizeGL (int w, int h) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | wheelEvent (QWheelEvent *e) |
void | blur (KGLImage &img) |
Friends | |
class | KGLImage |
|
|
|
Creates a new image display area
|
|
|
|
|
|
|
|
The FPS delay, i.e. after how many milliseconds the screen is updated in animations (1000/fps) |
|
|
|
A QValueList of all currently loaded KGLImages |
|
Reimplemented from QGLWidget |
|
|
|
Conveniance function, see below.
|
|
Conveniance function, see below.
|
|
Load an image from a QImage
|
|
Load an image from a KGLImage
|
|
Loads a vertex or fragment shader Returns the shader id (all shaders a stored in the shaders()) or 0 if shader could not be created from file
|
|
|
|
Display a message (string)
|
|
Reimplemented from QWidget for the interaction feature |
|
Reimplemented from QWidget for the interaction feature |
|
Reimplemented from QWidget for the interaction feature |
|
|
|
|
|
|
|
|
|
Reimplemented from QGLWidget, you may want to reimplement it yourself to change the scene rendering |
|
The position of the viewer
|
|
|
|
Removes the image with the id (glObject()) id from view
|
|
Reimplemented from QGLWidget, you may want to reimplement it yourself to change the behaviour on resizes |
|
Rotate around all three axes (accumulating)
|
|
Rotate by some degrees (accumulating)
|
|
Rotate around all three axes (NOT accumulative)
|
|
Rotate by some degrees (NOT accumulative)
|
|
The rotation of the viewer
|
|
Scale X and Y axis by some percent (accumulating)
|
|
Scale by some percent (accumulating)
|
|
The scale of the view
|
|
Scale X and Y axis by some percent (NOT accumulative)
|
|
Scale by some percent (NOT accumulative)
|
|
Sets the canvas, i.e. glClear Color (the background where no images appear... defaults to black)
|
|
Whether the user may influence the view using the mouse cursor
|
|
Returns a list of all available shader programs |
|
Reimplemented to skip if timer is active, i.e. we have an animation |
|
Not really reimplemented from QWidget yet |
|
|