OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
SymbolDrawingStrategy Class Referenceabstract

#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 ( )
inlinevirtual

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 
)
protectedpure virtual
virtual QBrush GetBrush ( ) const
inlinevirtual

Definition at line 54 of file strategies.hh.

virtual QPen GetPen ( ) const
inlinevirtual

Definition at line 52 of file strategies.hh.

virtual QColor GetPenColor ( ) const
inlinevirtual

Definition at line 50 of file strategies.hh.

virtual String GetShape ( )
pure virtual
virtual unsigned int GetSymbolSize ( ) const
inlinevirtual

Definition at line 55 of file strategies.hh.

virtual unsigned int GetSymbolStrength ( ) const
inlinevirtual

Definition at line 57 of file strategies.hh.

virtual bool HasCrosshair ( )
inlinevirtual

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 59 of file strategies.hh.

virtual void SetBrush ( const QBrush &  brush)
inlinevirtual

Definition at line 53 of file strategies.hh.

void SetPen ( const QPen &  pen)
inline

Definition at line 51 of file strategies.hh.

virtual void SetPenColor ( const QColor &  color)
inlinevirtual

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 49 of file strategies.hh.

virtual void SetSymbolSize ( unsigned int  symbolsize)
inlinevirtual

Definition at line 56 of file strategies.hh.

virtual void SetSymbolStrength ( unsigned int  s)
inlinevirtual

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: