SymbolDrawingStrategy Class Reference

#include <strategies.hh>

Inherited by CircleDrawingStrategy, CrosshairBaseDrawingStrategy, and SquareDrawingStrategy.

Public Member Functions

 SymbolDrawingStrategy ()
virtual ~SymbolDrawingStrategy ()
virtual void Draw (QPainter &pnt, const QPoint &center)
virtual void SetPenColor (const QColor &color)
virtual QColor GetPenColor () const
void SetPen (const QPen &pen)
virtual QPen GetPen () const
virtual void SetBrush (const QBrush &brush)
virtual QBrush GetBrush () const
virtual unsigned int GetSymbolSize () const
virtual void SetSymbolSize (unsigned int symbolsize)
virtual unsigned int GetSymbolStrength () const
virtual void SetSymbolStrength (unsigned int s)
virtual bool HasCrosshair ()
virtual String GetShape ()=0

Protected Member Functions

virtual void DrawSymbol (QPainter &pnt, const QPoint &center)=0

Protected Attributes

unsigned int symbolsize_
unsigned int symbolstrength_
QPen pen_
QBrush brush_

Detailed Description

Definition at line 41 of file strategies.hh.


Constructor & Destructor Documentation

virtual ~SymbolDrawingStrategy (  )  [inline, virtual]

Definition at line 45 of file strategies.hh.


Member Function Documentation

virtual void Draw ( QPainter &  pnt,
const QPoint &  center 
) [virtual]

Reimplemented in CrosshairBaseDrawingStrategy.

virtual void DrawSymbol ( QPainter &  pnt,
const QPoint &  center 
) [protected, pure virtual]
virtual QBrush GetBrush (  )  const [inline, virtual]

Definition at line 54 of file strategies.hh.

virtual QPen GetPen (  )  const [inline, virtual]

Definition at line 52 of file strategies.hh.

virtual QColor GetPenColor (  )  const [inline, virtual]

Definition at line 50 of file strategies.hh.

virtual String GetShape (  )  [pure virtual]
virtual unsigned int GetSymbolSize (  )  const [inline, virtual]

Definition at line 55 of file strategies.hh.

virtual unsigned int GetSymbolStrength (  )  const [inline, virtual]

Definition at line 57 of file strategies.hh.

virtual bool HasCrosshair (  )  [inline, virtual]

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 59 of file strategies.hh.

virtual void SetBrush ( const QBrush &  brush  )  [inline, virtual]

Definition at line 53 of file strategies.hh.

void SetPen ( const QPen &  pen  )  [inline]

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 51 of file strategies.hh.

virtual void SetPenColor ( const QColor &  color  )  [inline, virtual]

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 49 of file strategies.hh.

virtual void SetSymbolSize ( unsigned int  symbolsize  )  [inline, virtual]

Definition at line 56 of file strategies.hh.

virtual void SetSymbolStrength ( unsigned int  s  )  [inline, virtual]

Definition at line 58 of file strategies.hh.


Field Documentation

QBrush brush_ [protected]

Definition at line 66 of file strategies.hh.

QPen pen_ [protected]

Definition at line 65 of file strategies.hh.

unsigned int symbolsize_ [protected]

Definition at line 63 of file strategies.hh.

unsigned int symbolstrength_ [protected]

Definition at line 64 of file strategies.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1