glVertex
5.5.2
|
Qt OpenGL widget convenience class. More...
#include <glvertex_qt_glui.h>
Public Member Functions | |
lgl_Qt_GLUI (QWidget *parent=NULL, bool core=true) | |
ctor | |
int | args () const |
get number of arguments | |
QString | getArg (int i) const |
get argument | |
int | opts () const |
get number of options | |
QString | getOption (int i) const |
get option | |
bool | hasOption (QString opt) const |
check for option | |
QString | getOptionString (QString opt) const |
get option string | |
double | getOptionValue (QString opt) const |
get option value | |
bool | capture (std::string filename) |
capture a screen shot | |
void | toggleCapture (std::string filename) |
toggle capturing a screen shot series | |
void | triggerExport (std::string filename, mat4 m=mat4(1)) |
trigger OBJ scene export on next frame | |
void | toggleFPS () |
toggle fps printing | |
void | setFPS (double rate) |
set frame rate | |
void | setTimeLapse (double speedup) |
set time lapse speedup | |
void | background (double red, double green, double blue, double alpha=1) |
set background color | |
void | toggle_background () |
toggle background color | |
void | animation (bool on) |
enable animation | |
void | toggle_animation () |
toggle animation | |
void | ztest (bool on) |
enable z-buffer test | |
void | toggle_ztest () |
toggle z-buffer test | |
void | culling (bool on) |
enable back-face culling | |
void | toggle_culling () |
toggle back-face culling | |
void | blending (bool on) |
enable alpha blending | |
void | toggle_blending () |
toggle alpha blending | |
void | atest (bool on) |
enable alpha testing | |
void | toggle_atest () |
toggle alpha testing | |
void | wireframe (bool on) |
enable wireframe mode | |
void | toggle_wireframe () |
toggle wireframe mode | |
void | override (bool on) |
enable override | |
void | fullscreen (bool on) |
enable fullscreen mode | |
void | toggle_fullscreen () |
toggle fullscreen mode | |
void | restart () |
restart time | |
Protected Member Functions | |
void | prepareOpenGL (double dt) |
implement this method to prepare state before rendering | |
void | updateOpenGL (double dt) |
implement this method to update state after rendering | |
void | finishOpenGL (double t) |
implement this method to finish OpenGL state | |
virtual std::string | getUsageInfo () |
reimplement to show usage info | |
virtual std::string | getKeyInfo () |
reimplement to show key info | |
bool | isSpinning () |
check for manipulator spin | |
void | stopSpin () |
stop manipulator spin | |
virtual void | mouseMoved (double dx, double dy) |
reimplement to be called in case of a mouse move | |
virtual void | mouseClick (double x, double y) |
reimplement to be called in case of a mouse click | |
virtual void | doubleClick (double x, double y) |
reimplement to be called in case of a double click | |
virtual void | interaction () |
reimplement to be called in case of a user interaction | |
virtual void | initializeOpenGL ()=0 |
implement this method to initialize OpenGL state | |
virtual void | renderOpenGL (double dt)=0 |
implement this method to render a frame | |
Qt OpenGL widget convenience class.