VideoVis  0.9
Generates a volume visualisation of a video
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
TransferBox Class Reference

The TransferBox widget class. More...

#include <transferbox.h>

Inheritance diagram for TransferBox:

Public Types

enum  ShadeType { RedShade, GreenShade, BlueShade }
 

Signals

void valueChanged (float *value)
 

Public Member Functions

 TransferBox (QWidget *parent=0)
 
QSize sizeHint () const
 
void setPoints (QPolygonF points)
 
void addColor (QPolygonF points, QColor color)
 
void deleteColor (QPolygonF points)
 
void changeColor (int index, QColor color)
 

Detailed Description

The TransferBox widget class.

This class renders the transfer function. Every Point from m_points has a corresponding color that gets rendered when a paintEvent occurs. Points are managed, displayed and returned by the HoverPoints class. The widget is drawn with a QLinearGradient. Users can select the colors from a QColorDialog.

Definition at line 17 of file transferbox.h.

Member Enumeration Documentation

Enumerator
RedShade 
GreenShade 
BlueShade 

Definition at line 21 of file transferbox.h.

Constructor & Destructor Documentation

TransferBox::TransferBox ( QWidget *  parent = 0)
explicit

Definition at line 8 of file transferbox.cpp.

Member Function Documentation

void TransferBox::addColor ( QPolygonF  points,
QColor  color 
)

add a color to m_colors

Definition at line 52 of file transferbox.cpp.

void TransferBox::changeColor ( int  index,
QColor  color 
)

change a color from m_colors by removing and inserting one.

Definition at line 84 of file transferbox.cpp.

void TransferBox::deleteColor ( QPolygonF  points)

delete a color from m_colors

Definition at line 68 of file transferbox.cpp.

void TransferBox::setPoints ( QPolygonF  points)
inline

Definition at line 29 of file transferbox.h.

QSize TransferBox::sizeHint ( ) const
inline

Definition at line 28 of file transferbox.h.

void TransferBox::valueChanged ( float *  value)
signal

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