26 #ifndef IMG_POINTLIST_OVERLAY_BASE_HH
27 #define IMG_POINTLIST_OVERLAY_BASE_HH
43 #include <QColorDialog>
44 #include <QPushButton>
45 #include <QVBoxLayout>
48 namespace ost {
namespace img {
namespace gui {
58 void OnPassiveColor();
59 void OnSymbolSize(
int v);
60 void OnSymbolStrength(
int v);
83 virtual void OnMenuEvent(QAction* e);
87 virtual void DrawPointList(QPainter& pnt,
DataViewerPanel* dvp,
const QColor& col ,
const std::vector<QPoint>& pointlist);
88 virtual void DrawVariableSizePointList(QPainter& pnt,
DataViewerPanel* dvp,
const QColor& col ,
const std::vector<std::pair<QPoint,double> >& pointlist);
91 unsigned int GetSymbolSize()
const;
92 void SetSymbolSize(
unsigned int symbolsize);
93 unsigned int GetSymbolShape()
const;
94 void SetSymbolShape(
unsigned int symbolshape);
95 bool GetCrosshair()
const;
96 void SetCrosshair(
bool flag);
97 void SetActiveColor(
const QColor& col);
98 void SetPassiveColor(
const QColor& col);
101 template <
class StrategyClass>
102 void ReplaceStrategy();
QVBoxLayout * main_layout_
#define DLLEXPORT_OST_GUI
SymbolDrawingStrategyPtr strategy_
boost::shared_ptr< SymbolDrawingStrategy > SymbolDrawingStrategyPtr
QPushButton * passive_color_b_
virtual void OnDraw(QPainter &pnt, DataViewerPanel *dvp, bool is_active)
call when redrawing is necessary
unsigned int symbolstrength_
QPushButton * active_color_b_