25 #ifndef IMG_GUI_STRATEGIES_HH_
26 #define IMG_GUI_STRATEGIES_HH_
38 namespace ost {
namespace img {
namespace gui {
47 virtual void Draw(QPainter& pnt,
const QPoint& center);
62 virtual void DrawSymbol(QPainter& pnt,
const QPoint& center)=0;
80 virtual void DrawSymbol(QPainter& pnt,
const QPoint& center);
90 virtual void Draw(QPainter& pnt,
const QPoint& center);
108 virtual void DrawSymbol(QPainter& pnt,
const QPoint& center);
122 virtual void DrawSymbol(QPainter& pnt,
const QPoint& center);
136 virtual void DrawSymbol(QPainter& pnt,
const QPoint& center);
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
CircleDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual String GetShape()
void SetPenColor(const QColor &color)
CrosshairBaseDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual void DrawCrosshair(QPainter &pnt, const QPoint ¢er)
virtual bool HasCrosshair()
CrosshairBaseDrawingStrategy()
void SetPen(const QPen &pen)
virtual void Draw(QPainter &pnt, const QPoint ¢er)
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
CrosshairCircleDrawingStrategy()
virtual String GetShape()
CrosshairCircleDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
CrosshairSquareDrawingStrategy(const SymbolDrawingStrategy &strategy)
CrosshairSquareDrawingStrategy()
virtual String GetShape()
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
SquareDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual String GetShape()
virtual void SetSymbolStrength(unsigned int s)
virtual QPen GetPen() const
virtual void SetBrush(const QBrush &brush)
virtual unsigned int GetSymbolSize() const
virtual QColor GetPenColor() const
virtual void SetPenColor(const QColor &color)
virtual QBrush GetBrush() const
virtual String GetShape()=0
unsigned int symbolstrength_
virtual void SetSymbolSize(unsigned int symbolsize)
virtual bool HasCrosshair()
virtual ~SymbolDrawingStrategy()
void SetPen(const QPen &pen)
virtual void Draw(QPainter &pnt, const QPoint ¢er)
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)=0
virtual unsigned int GetSymbolStrength() const