#include <ShadeWidget.h>

Public Types | |
| enum | ShadeType { RedShade, GreenShade, BlueShade, ARGBShade } |
Signals | |
| void | colorsChanged () |
Public Member Functions | |
| ShadeWidget (ShadeType type, QWidget *parent, std::string name) | |
| void | setGradientStops (const QGradientStops &stops) |
| QGradientStops | getGradientStops () const |
| void | paintEvent (QPaintEvent *e) |
| QSize | sizeHint () const |
| void | setPoints (QPolygonF pts) |
| QPolygonF | points () const |
| void | setHistogram (const int *) |
| void | clearHistogram () |
| std::string | getName () const |
| HoverPoints * | hoverPoints () const |
| uint | colorAt (int x) |
Definition at line 7 of file ShadeWidget.h.
| ShadeWidget::ShadeWidget | ( | ShadeType | type, | |
| QWidget * | parent, | |||
| std::string | name | |||
| ) |
Definition at line 5 of file ShadeWidget.cpp.
References ARGBShade, HoverPoints::CircleShape, clearHistogram(), colorsChanged(), HoverPoints::LockToLeft, HoverPoints::LockToRight, points(), HoverPoints::setPointLock(), HoverPoints::setPoints(), HoverPoints::setSortType(), sizeHint(), and HoverPoints::XSort.

| void ShadeWidget::setGradientStops | ( | const QGradientStops & | stops | ) |
Definition at line 115 of file ShadeWidget.cpp.
References ARGBShade.
Referenced by GradientEditor::pointsUpdated().
| QGradientStops ShadeWidget::getGradientStops | ( | ) | const [inline] |
| void ShadeWidget::paintEvent | ( | QPaintEvent * | e | ) |
| QSize ShadeWidget::sizeHint | ( | ) | const [inline] |
| void ShadeWidget::setPoints | ( | QPolygonF | pts | ) |
Definition at line 52 of file ShadeWidget.cpp.
References HoverPoints::setPoints().
Referenced by GradientEditor::loadTransferFunction().

| QPolygonF ShadeWidget::points | ( | ) | const |
Definition at line 47 of file ShadeWidget.cpp.
References HoverPoints::points().
Referenced by GradientEditor::pointsUpdated(), GradientEditor::saveTransferFunction(), and ShadeWidget().

| void ShadeWidget::setHistogram | ( | const int * | density | ) |
Definition at line 135 of file ShadeWidget.cpp.
References DENSITY_COUNT.
Referenced by GradientEditor::showHistogram().
| void ShadeWidget::clearHistogram | ( | ) |
Definition at line 171 of file ShadeWidget.cpp.
Referenced by GradientEditor::clearHistogram(), and ShadeWidget().
| std::string ShadeWidget::getName | ( | ) | const |
Definition at line 57 of file ShadeWidget.cpp.
Referenced by GradientEditor::loadTransferFunction().
| HoverPoints* ShadeWidget::hoverPoints | ( | ) | const [inline] |
Definition at line 35 of file ShadeWidget.h.
| uint ShadeWidget::colorAt | ( | int | x | ) |
Definition at line 62 of file ShadeWidget.cpp.
References HoverPoints::points().
Referenced by GradientEditor::pointsUpdated().

| void ShadeWidget::colorsChanged | ( | ) | [signal] |
Referenced by ShadeWidget().
1.5.4