#include <QBackground_Streamline.h>
Public Member Functions | |
QBackground_Streamline (QWidget *parent=0) | |
virtual | ~QBackground_Streamline () |
void | setObjectName (const QString &name) |
void | setStreamlinesColorPtr (VVector *v) |
virtual void | resizeGL (int w, int h) |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | keyReleaseEvent (QKeyEvent *e) |
const VMouseEvent | getMouseEvent (QMouseEvent *e) |
const VKeyboardEvent | getKeyboardEvent (QKeyEvent *e) |
virtual void | redraw () |
Protected Member Functions | |
virtual void | initializeGL () |
virtual void | paintGL () |
Private Attributes | |
VVector | m_CanvasColor |
VVector * | m_StreamlinesColor |
Definition at line 18 of file QBackground_Streamline.h.
QBackground_Streamline::QBackground_Streamline | ( | QWidget * | parent = 0 |
) |
constructor with given QWidget Pointer
Definition at line 3 of file QBackground_Streamline.cpp.
References m_CanvasColor, VVector::setX(), VVector::setY(), and VVector::setZ().
QBackground_Streamline::~QBackground_Streamline | ( | ) | [virtual] |
default destructor
Definition at line 13 of file QBackground_Streamline.cpp.
void QBackground_Streamline::initializeGL | ( | ) | [protected, virtual] |
method to initialize opengl
Definition at line 30 of file QBackground_Streamline.cpp.
References VVector::getX(), VVector::getY(), VVector::getZ(), and m_CanvasColor.
void QBackground_Streamline::paintGL | ( | ) | [protected, virtual] |
method for repainting. called in every refresh
Definition at line 50 of file QBackground_Streamline.cpp.
References VVector::getX(), VVector::getY(), VVector::getZ(), and m_CanvasColor.
void QBackground_Streamline::setObjectName | ( | const QString & | name | ) |
sets the name of the Object
name | reference to a QString containing the name |
Definition at line 18 of file QBackground_Streamline.cpp.
Referenced by Ui_QMain::setupUi().
void QBackground_Streamline::setStreamlinesColorPtr | ( | VVector * | v | ) |
method for setting the pointer to the streamlines color
v | Pointer to VVector |
Definition at line 23 of file QBackground_Streamline.cpp.
References m_StreamlinesColor.
Referenced by QMain::QMain().
void QBackground_Streamline::resizeGL | ( | int | w, | |
int | h | |||
) | [virtual] |
method called when window is resized
w | width of widget | |
h | height of widget |
Definition at line 41 of file QBackground_Streamline.cpp.
void QBackground_Streamline::paintEvent | ( | QPaintEvent * | e | ) | [virtual] |
event callback for the paint event
e | pointer to QPaintEvent |
Definition at line 86 of file QBackground_Streamline.cpp.
void QBackground_Streamline::mousePressEvent | ( | QMouseEvent * | e | ) | [virtual] |
event callback for the mousepressevent
e | Pointer to QMouseEvent |
Definition at line 91 of file QBackground_Streamline.cpp.
References VVector::getX(), VVector::getY(), VVector::getZ(), m_CanvasColor, m_StreamlinesColor, redraw(), VVector::setX(), VVector::setY(), and VVector::setZ().
void QBackground_Streamline::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [virtual] |
event callback for the mousereleaseevent
e | Pointer to QMouseEvent |
Definition at line 108 of file QBackground_Streamline.cpp.
void QBackground_Streamline::mouseMoveEvent | ( | QMouseEvent * | e | ) | [virtual] |
event callback for the mousemoveevent
e | Pointer to QMouseEvent |
Definition at line 114 of file QBackground_Streamline.cpp.
References getMouseEvent(), and VMouseEvent::getPosition().
void QBackground_Streamline::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [virtual] |
event callback for the mousedoubleclickevent
e | Pointer to QMouseEvent |
Definition at line 127 of file QBackground_Streamline.cpp.
void QBackground_Streamline::keyPressEvent | ( | QKeyEvent * | e | ) | [virtual] |
event callback for the keypressevent
e | Pointer to QKeyEvent |
Definition at line 132 of file QBackground_Streamline.cpp.
void QBackground_Streamline::keyReleaseEvent | ( | QKeyEvent * | e | ) | [virtual] |
event callback for the keyreleaseevent
e | Pointer to QKeyEvent |
Definition at line 138 of file QBackground_Streamline.cpp.
const VMouseEvent QBackground_Streamline::getMouseEvent | ( | QMouseEvent * | e | ) |
Method for creating the current Mousevent
e | Pointer to QMouseEvent |
Definition at line 144 of file QBackground_Streamline.cpp.
References VMouseEvent::BUTTON_LEFT, VMouseEvent::BUTTON_MIDDLE, VMouseEvent::BUTTON_NONE, VMouseEvent::BUTTON_RIGHT, VKeyboardEvent::MODIFIER_ALT, VKeyboardEvent::MODIFIER_CTRL, VKeyboardEvent::MODIFIER_SHIFT, VMouseEvent::STATE_DOWN, and VMouseEvent::STATE_UP.
Referenced by mouseMoveEvent().
const VKeyboardEvent QBackground_Streamline::getKeyboardEvent | ( | QKeyEvent * | e | ) |
Method for creating the Keybard event
e | QKeyEvent |
Definition at line 166 of file QBackground_Streamline.cpp.
References VKeyboardEvent::key, VKeyboardEvent::MODIFIER_ALT, VKeyboardEvent::MODIFIER_CTRL, and VKeyboardEvent::MODIFIER_SHIFT.
void QBackground_Streamline::redraw | ( | ) | [virtual] |
method called when Canvas is readrawn. Calls paintGl
Definition at line 80 of file QBackground_Streamline.cpp.
Referenced by mousePressEvent().
VVector QBackground_Streamline::m_CanvasColor [private] |
VVector containing the Color of the Canvas.
Definition at line 129 of file QBackground_Streamline.h.
Referenced by initializeGL(), mousePressEvent(), paintGL(), and QBackground_Streamline().
VVector Pointer pointing at the Color of the mainrenderercanvas.
Definition at line 130 of file QBackground_Streamline.h.
Referenced by mousePressEvent(), and setStreamlinesColorPtr().