OpenStructure
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

◆ SymbolDrawingStrategy()

◆ ~SymbolDrawingStrategy()

virtual ~SymbolDrawingStrategy ( )
inlinevirtual

Definition at line 45 of file strategies.hh.

Member Function Documentation

◆ Draw()

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

Reimplemented in CrosshairBaseDrawingStrategy.

◆ DrawSymbol()

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

◆ GetBrush()

virtual QBrush GetBrush ( ) const
inlinevirtual

Definition at line 54 of file strategies.hh.

◆ GetPen()

virtual QPen GetPen ( ) const
inlinevirtual

Definition at line 52 of file strategies.hh.

◆ GetPenColor()

virtual QColor GetPenColor ( ) const
inlinevirtual

Definition at line 50 of file strategies.hh.

◆ GetShape()

virtual String GetShape ( )
pure virtual

◆ GetSymbolSize()

virtual unsigned int GetSymbolSize ( ) const
inlinevirtual

Definition at line 55 of file strategies.hh.

◆ GetSymbolStrength()

virtual unsigned int GetSymbolStrength ( ) const
inlinevirtual

Definition at line 57 of file strategies.hh.

◆ HasCrosshair()

virtual bool HasCrosshair ( )
inlinevirtual

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 59 of file strategies.hh.

◆ SetBrush()

virtual void SetBrush ( const QBrush &  brush)
inlinevirtual

Definition at line 53 of file strategies.hh.

◆ SetPen()

void SetPen ( const QPen &  pen)
inline

Definition at line 51 of file strategies.hh.

◆ SetPenColor()

virtual void SetPenColor ( const QColor &  color)
inlinevirtual

Reimplemented in CrosshairBaseDrawingStrategy.

Definition at line 49 of file strategies.hh.

◆ SetSymbolSize()

virtual void SetSymbolSize ( unsigned int  symbolsize)
inlinevirtual

Definition at line 56 of file strategies.hh.

◆ SetSymbolStrength()

virtual void SetSymbolStrength ( unsigned int  s)
inlinevirtual

Definition at line 58 of file strategies.hh.

Field Documentation

◆ brush_

QBrush brush_
protected

Definition at line 66 of file strategies.hh.

◆ pen_

QPen pen_
protected

Definition at line 65 of file strategies.hh.

◆ symbolsize_

unsigned int symbolsize_
protected

Definition at line 63 of file strategies.hh.

◆ symbolstrength_

unsigned int symbolstrength_
protected

Definition at line 64 of file strategies.hh.


The documentation for this class was generated from the following file: