![]() |
VR-Forces Development_Version Class Documentation
|
A widget class for editing gradients. More...

Public Slots | |
| virtual void | decorate () |
| Line up everything properly when first shown. | |
Public Member Functions | |
| DtGradientEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0) | |
| CTOR. | |
| virtual | ~DtGradientEditorWidget () |
| DTOR. | |
| virtual void | resizeEvent (QResizeEvent *event) |
| Reimplementation of QWidget::resizeEvent() to redraw the gradient preview. | |
| virtual void | clearGradient () |
| Blank the currently-set gradient. | |
| virtual void | setAltitudeUnits (const QString &units) |
| Set the units for the altitude label. | |
| virtual void | setAltitudeDecimals (int decimals) |
| Set the decimals for the altitude label. | |
| virtual void | addControlPoint (double location, double red, double green, double blue, double alpha=1.0) |
| Add a single control point to the currently-set gradient. | |
| virtual void | addControlPoint (DtGradientEditorInterface::ControlPoint cp) |
| Add a single control point to the currently-set gradient. | |
| virtual void | setGradient (DtGradientEditorInterface::Gradient grad) |
| Replace the currently-set gradient with gradient specified. | |
| virtual const DtGradientEditorInterface::Gradient | gradient () const |
| Return the currently-set gradient. | |
| virtual void | removeControlPoint (int index) |
| Remove a single control point from the currently-set gradient. | |
Public Member Functions inherited from makVrv::DtGradientEditorInterface | |
| virtual | ~DtGradientEditorInterface () |
| Virtual DTOR. | |
Static Public Attributes | |
| static const int | theAltitudeColumn = 0 |
| static const int | theDisplayColorColumn = 1 |
Protected Slots | |
| virtual void | insertNewControlPoint () |
| Insert a new control point at the selection Called when "add point" is pressed. | |
| virtual void | removeSelectedControlPoint () |
| Remove control point at the selection Called when "delete point" is pressed. | |
| virtual void | updateGradient () |
| Redraw the gradient preview and point window. | |
Protected Member Functions | |
| void | setupGui () |
| Lays out the widget. | |
| void | connectToSignals () |
| Connects to signals from widgets. | |
| virtual void | insertNewControlPoint (double height, const QColor &color) |
| Creates a new item in the model with the given parameters. | |
| std::string | colorStringFromColor (const QColor &color) |
| Returns the color as a hex string ( "RRGGBB" ). | |
| QList< QStandardItem * > | modelRowFromAltitudeColor (double altitude, std::string color) |
| Creates the items for each column in a new row. | |
Protected Attributes | |
| QString | myAltitudeUnitsLabel |
| QAbstractItemDelegate * | myColorDelegate |
| QAbstractItemDelegate * | myAltitudeDelegate |
| QStandardItemModel * | myControlPointModel |
| QGraphicsScene * | myGradientScene |
| QTreeView * | myControlPointView |
| QGraphicsView * | myGradientView |
| QPushButton * | myAddControlPointButton |
| QPushButton * | myRemoveControlPointButton |
| makVrv::DtDe & | myDe |
Additional Inherited Members | |
Public Types inherited from makVrv::DtGradientEditorInterface | |
| typedef std::vector< double > | ControlPoint |
| typedef std::vector < DtGradientEditorInterface::ControlPoint > | Gradient |
Public Attributes inherited from makVrv::DtGradientEditorInterface | |
| boost::signal< void(const DtGradientEditorInterface::Gradient &)> | signal_gradientChanged |
| Signal emitted when the user changes the gradient. | |
A widget class for editing gradients.
| makVrv::DtGradientEditorWidget::DtGradientEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Reimplementation of QWidget::resizeEvent() to redraw the gradient preview.
|
virtual |
Blank the currently-set gradient.
Implements makVrv::DtGradientEditorInterface.
|
virtual |
Set the units for the altitude label.
|
virtual |
Set the decimals for the altitude label.
|
virtual |
Add a single control point to the currently-set gradient.
Implements makVrv::DtGradientEditorInterface.
|
virtual |
Add a single control point to the currently-set gradient.
Implements makVrv::DtGradientEditorInterface.
|
virtual |
Replace the currently-set gradient with gradient specified.
Implements makVrv::DtGradientEditorInterface.
|
virtual |
Return the currently-set gradient.
Implements makVrv::DtGradientEditorInterface.
|
virtual |
Remove a single control point from the currently-set gradient.
|
virtualslot |
Line up everything properly when first shown.
|
protectedvirtualslot |
Insert a new control point at the selection Called when "add point" is pressed.
|
protectedvirtualslot |
Remove control point at the selection Called when "delete point" is pressed.
|
protectedvirtualslot |
Redraw the gradient preview and point window.
|
protected |
Lays out the widget.
Non-virtual (Called from CTOR).
|
protected |
Connects to signals from widgets.
Non-virtual (Called from CTOR).
|
protectedvirtual |
Creates a new item in the model with the given parameters.
|
protected |
Returns the color as a hex string ( "RRGGBB" ).
|
protected |
Creates the items for each column in a new row.
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |