26 #ifndef __TERRALIB_QT_QWT_INTERNAL_COLORBAR_H_
27 #define __TERRALIB_QT_QWT_INTERNAL_COLORBAR_H_
31 #include <qwt_scale_widget.h>
37 #include "../widgets/Config.h"
54 class ColorPickerToolButton;
108 void setScaleVisible(
bool flag);
115 void setHeight(
int value);
123 void setInterval(
double min,
double max);
138 void setClickPrecision(
double precision);
158 void setScaleEngine();
163 void buildColorBar();
172 double getPin(
int pos);
181 double convert2toolbarPos(
int pos);
188 virtual void paintEvent(QPaintEvent* e);
197 virtual void mousePressEvent(QMouseEvent* e);
205 virtual void mouseReleaseEvent(QMouseEvent* e);
213 virtual void mouseMoveEvent(QMouseEvent* e);
221 virtual void wheelEvent(QWheelEvent* e);
249 void colorBarChanged();
287 #endif // __TERRALIB_QT_QWT_INTERNAL_COLORBAR_H_
It models the concept of color bar.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
te::qt::widgets::ColorPickerToolButton * m_pinPicker
Color picker for pin menu.
QWidgetAction * m_addPinAction
Add Pin Action.
It QWidget implementation of color bar.
te::color::ColorBar * m_colorBar
Color map information.
double m_initialXPos
Position initial to move color.
QAction * m_equalStepAction
Equal Step Pin Action.
QMenu * m_colorBarMenu
Popup menu for Pin on color bar.
double m_clickPrecision
Precision of click to get a color stop.
QMenu * m_pinMenu
Popup menu for Pin on color bar.
int m_height
Height of colobar.
te::qt::widgets::ColorPickerToolButton * m_colorBarPicker
Color picker for colorbar menu.
QwtInterval m_interval
Color vector.
QWidgetAction * m_editPinAction
Edit Pin Action.
Custom tool button used to pick a color.
QAction * m_removePinAction
Remove Pin Action.
double m_currentPinPos
Value of the current Pin position.