QBackground_Streamline Class Reference

#include <QBackground_Streamline.h>

List of all members.

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
VVectorm_StreamlinesColor


Detailed Description

class for rendering the color of the background, when clicked it provides the user with a color picker dialog

Definition at line 18 of file QBackground_Streamline.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
e Pointer to QMouseEvent
Returns:
VMouseEvent

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

Parameters:
e QKeyEvent
Returns:
VKeyboardEvent

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


Member Data Documentation

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* QBackground_Streamline::m_StreamlinesColor [private]

VVector Pointer pointing at the Color of the mainrenderercanvas.

Definition at line 130 of file QBackground_Streamline.h.

Referenced by mousePressEvent(), and setStreamlinesColorPtr().


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 01:15:16 2008 for FlowVis by  doxygen 1.5.4