Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Signals | Public Member Functions | Private Member Functions | Private Attributes
GradientStopWidget Class Reference

This widget handles the gradient stops above the transfer function. More...

#include <GradientStopWidget.h>

List of all members.

Signals

void gradientChanged (const QGradientStops &stops)

Public Member Functions

 GradientStopWidget (QWidget *parent)
 ~GradientStopWidget (void)
void mouseReleaseEvent (QMouseEvent *ev)
void mousePressEvent (QMouseEvent *ev)
void mouseMoveEvent (QMouseEvent *ev)
void mouseDoubleClickEvent (QMouseEvent *ev)
void paintEvent (QPaintEvent *ev)
QGradientStops getGradientStops ()
void setGradientStops (const QGradientStops &stops)
QSize sizeHint () const

Private Member Functions

void removePoint (int idx)
void insertPoint (int x)
void startMovePoint (int idx)
void stopMovePoint (int x)
void fireChanged ()
int pointNearCoordinate (int x)

Private Attributes

QGradientStops _stops
 Our gradient stops.
int _moveIdx
 The point which is gonna to be moved (dragged)

Detailed Description

This widget handles the gradient stops above the transfer function.


Constructor & Destructor Documentation

GradientStopWidget::GradientStopWidget ( QWidget *  parent)

Constructor

GradientStopWidget::~GradientStopWidget ( void  )

Member Function Documentation

void GradientStopWidget::fireChanged ( )
private
QGradientStops GradientStopWidget::getGradientStops ( )
inline

Returns all gradient stops

void GradientStopWidget::gradientChanged ( const QGradientStops &  stops)
signal
void GradientStopWidget::insertPoint ( int  x)
private
void GradientStopWidget::mouseDoubleClickEvent ( QMouseEvent *  ev)
void GradientStopWidget::mouseMoveEvent ( QMouseEvent *  ev)
void GradientStopWidget::mousePressEvent ( QMouseEvent *  ev)
void GradientStopWidget::mouseReleaseEvent ( QMouseEvent *  ev)
void GradientStopWidget::paintEvent ( QPaintEvent *  ev)
int GradientStopWidget::pointNearCoordinate ( int  x)
private
void GradientStopWidget::removePoint ( int  idx)
private
void GradientStopWidget::setGradientStops ( const QGradientStops &  stops)

Sets the gradient stops

QSize GradientStopWidget::sizeHint ( ) const
inline
void GradientStopWidget::startMovePoint ( int  idx)
private
void GradientStopWidget::stopMovePoint ( int  x)
private

Member Data Documentation

int GradientStopWidget::_moveIdx
private

The point which is gonna to be moved (dragged)

QGradientStops GradientStopWidget::_stops
private

Our gradient stops.


The documentation for this class was generated from the following files: