VideoVis
0.9
Generates a volume visualisation of a video
|
#include <hoverpoints.h>
Public Types | |
enum | PointShape { CircleShape, RectangleShape } |
enum | LockType { LockToLeft = 0x01, LockToRight = 0x02, LockToTop = 0x04, LockToBottom = 0x08 } |
enum | SortType { NoSort, XSort, YSort } |
enum | ConnectionType { NoConnection, LineConnection, CurveConnection } |
Public Slots | |
void | setEnabled (bool enabled) |
void | setDisabled (bool disabled) |
Signals | |
void | pointsChanged (const QPolygonF &points) |
Public Member Functions | |
HoverPoints (QWidget *widget, PointShape shape) | |
bool | eventFilter (QObject *object, QEvent *event) |
void | paintPoints () |
QRectF | boundingRect () const |
void | setBoundingRect (const QRectF &boundingRect) |
QPolygonF | points () const |
void | setPoints (const QPolygonF &points) |
QSizeF | pointSize () const |
void | setPointSize (const QSizeF &size) |
SortType | sortType () const |
void | setSortType (SortType sortType) |
ConnectionType | connectionType () const |
void | setConnectionType (ConnectionType connectionType) |
void | setConnectionPen (const QPen &pen) |
void | setShapePen (const QPen &pen) |
void | setShapeBrush (const QBrush &brush) |
void | setPointLock (int pos, LockType lock) |
void | setEditable (bool editable) |
bool | editable () const |
void | firePointChange () |
This class manages the HoverPoints in the transfer function. Points can be added, moved and deleted. Points can also be locked to a certain axis. A linear curve or a spline curve can be drawn as a connection between the points. Points are sorted automatically when added. This class was taken from the Qt Gradients examples and modified to our own needs.
Definition at line 56 of file hoverpoints.h.
Enumerator | |
---|---|
NoConnection | |
LineConnection | |
CurveConnection |
Definition at line 78 of file hoverpoints.h.
Enumerator | |
---|---|
LockToLeft | |
LockToRight | |
LockToTop | |
LockToBottom |
Definition at line 65 of file hoverpoints.h.
Enumerator | |
---|---|
CircleShape | |
RectangleShape |
Definition at line 60 of file hoverpoints.h.
Enumerator | |
---|---|
NoSort | |
XSort | |
YSort |
Definition at line 72 of file hoverpoints.h.
HoverPoints::HoverPoints | ( | QWidget * | widget, |
PointShape | shape | ||
) |
Definition at line 53 of file hoverpoints.cpp.
|
inline |
Definition at line 164 of file hoverpoints.h.
|
inline |
Definition at line 103 of file hoverpoints.h.
|
inline |
Definition at line 113 of file hoverpoints.h.
bool HoverPoints::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) |
Definition at line 86 of file hoverpoints.cpp.
void HoverPoints::firePointChange | ( | ) |
Definition at line 399 of file hoverpoints.cpp.
void HoverPoints::paintPoints | ( | ) |
Definition at line 296 of file hoverpoints.cpp.
|
inline |
Definition at line 94 of file hoverpoints.h.
|
signal |
|
inline |
Definition at line 97 of file hoverpoints.h.
|
inline |
Definition at line 92 of file hoverpoints.h.
|
inline |
Definition at line 106 of file hoverpoints.h.
|
inline |
Definition at line 104 of file hoverpoints.h.
|
inlineslot |
Definition at line 117 of file hoverpoints.h.
|
inline |
Definition at line 112 of file hoverpoints.h.
|
slot |
Definition at line 77 of file hoverpoints.cpp.
|
inline |
Definition at line 110 of file hoverpoints.h.
void HoverPoints::setPoints | ( | const QPolygonF & | points) |
Definition at line 362 of file hoverpoints.cpp.
|
inline |
Definition at line 98 of file hoverpoints.h.
|
inline |
Definition at line 108 of file hoverpoints.h.
|
inline |
Definition at line 107 of file hoverpoints.h.
|
inline |
Definition at line 101 of file hoverpoints.h.
|
inline |
Definition at line 100 of file hoverpoints.h.