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);
88 void SetPen(
const QPen& pen);
90 virtual void Draw(QPainter& pnt,
const QPoint& center);
93 virtual void DrawCrosshair(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);
unsigned int symbolstrength_
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
virtual bool HasCrosshair()
virtual String GetShape()
virtual void Draw(QPainter &pnt, const QPoint ¢er)
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
CrosshairBaseDrawingStrategy()
CrosshairCircleDrawingStrategy()
virtual String GetShape()
virtual void SetSymbolStrength(unsigned int s)
virtual String GetShape()=0
CrosshairSquareDrawingStrategy()
virtual void SetSymbolSize(unsigned int symbolsize)
virtual QColor GetPenColor() const
void SetPen(const QPen &pen)
virtual QPen GetPen() const
virtual void Draw(QPainter &pnt, const QPoint ¢er)
void SetPen(const QPen &pen)
virtual void SetPenColor(const QColor &color)
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)=0
virtual bool HasCrosshair()
virtual QBrush GetBrush() const
SquareDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual void DrawCrosshair(QPainter &pnt, const QPoint ¢er)
virtual unsigned int GetSymbolStrength() const
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
virtual unsigned int GetSymbolSize() const
CrosshairCircleDrawingStrategy(const SymbolDrawingStrategy &strategy)
CircleDrawingStrategy(const SymbolDrawingStrategy &strategy)
CrosshairSquareDrawingStrategy(const SymbolDrawingStrategy &strategy)
virtual ~SymbolDrawingStrategy()
virtual String GetShape()
virtual void DrawSymbol(QPainter &pnt, const QPoint ¢er)
virtual String GetShape()
virtual void SetBrush(const QBrush &brush)
void SetPenColor(const QColor &color)