OpenStructure
Public Member Functions | Protected Member Functions | Protected Attributes
PointlistOverlayBase Class Reference

#include <pointlist_overlay_base.hh>

Inherits Overlay.

Inherited by PointlistOverlay.

Public Member Functions

 PointlistOverlayBase (const String &name)
 
virtual void OnDraw (QPainter &pnt, DataViewerPanel *dvp, bool is_active)
 
virtual void OnMenuEvent (QAction *e)
 
virtual QMenu * GetMenu ()
 
virtual void DrawPointList (QPainter &pnt, DataViewerPanel *dvp, const QColor &col, const std::vector< QPoint > &pointlist)
 
virtual void DrawVariableSizePointList (QPainter &pnt, DataViewerPanel *dvp, const QColor &col, const std::vector< std::pair< QPoint, double > > &pointlist)
 
unsigned int GetSymbolSize () const
 
void SetSymbolSize (unsigned int symbolsize)
 
unsigned int GetSymbolShape () const
 
void SetSymbolShape (unsigned int symbolshape)
 
bool GetCrosshair () const
 
void SetCrosshair (bool flag)
 
void SetActiveColor (const QColor &col)
 
void SetPassiveColor (const QColor &col)
 
- Public Member Functions inherited from Overlay
 Overlay (const String &name)
 
void SetName (const String &name)
 
String GetName () const
 
virtual bool OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse)
 
virtual bool OnKeyEvent (QKeyEvent *e, DataViewerPanel *dvp)
 

Protected Member Functions

void SetProps (PointlistOverlayBaseSettings *props)
 

Protected Attributes

SymbolDrawingStrategyPtr strategy_
 
QColor active_color_
 
QColor passive_color_
 
unsigned int symbolsize_
 
unsigned int symbolstrength_
 
QMenu * menu_
 
QAction * a_sq_
 
QAction * a_ci_
 
QAction * a_cr_
 
QAction * a_settings_
 

Additional Inherited Members

- Public Slots inherited from Overlay
void OnMenuEventSlot (QAction *e)
 
- Signals inherited from Overlay
void SettingsChanged ()
 
void InfoTextChanged (const QString &t)
 

Detailed Description

Definition at line 75 of file pointlist_overlay_base.hh.

Constructor & Destructor Documentation

◆ PointlistOverlayBase()

PointlistOverlayBase ( const String name)

Member Function Documentation

◆ DrawPointList()

virtual void DrawPointList ( QPainter &  pnt,
DataViewerPanel dvp,
const QColor &  col,
const std::vector< QPoint > &  pointlist 
)
virtual

◆ DrawVariableSizePointList()

virtual void DrawVariableSizePointList ( QPainter &  pnt,
DataViewerPanel dvp,
const QColor &  col,
const std::vector< std::pair< QPoint, double > > &  pointlist 
)
virtual

◆ GetCrosshair()

bool GetCrosshair ( ) const

◆ GetMenu()

virtual QMenu* GetMenu ( )
virtual

return overlay specific pulldown menu

Reimplemented from Overlay.

◆ GetSymbolShape()

unsigned int GetSymbolShape ( ) const

◆ GetSymbolSize()

unsigned int GetSymbolSize ( ) const

◆ OnDraw()

virtual void OnDraw ( QPainter &  pnt,
DataViewerPanel dvp,
bool  is_active 
)
inlinevirtual

call when redrawing is necessary

params: the drawing context, the parent data viewer, as well as a flag to indicate wether this overlay is currently active

Reimplemented from Overlay.

Reimplemented in PointlistOverlay.

Definition at line 82 of file pointlist_overlay_base.hh.

◆ OnMenuEvent()

virtual void OnMenuEvent ( QAction *  e)
virtual

Reimplemented from Overlay.

Reimplemented in PointlistOverlay.

◆ SetActiveColor()

void SetActiveColor ( const QColor &  col)

◆ SetCrosshair()

void SetCrosshair ( bool  flag)

◆ SetPassiveColor()

void SetPassiveColor ( const QColor &  col)

◆ SetProps()

void SetProps ( PointlistOverlayBaseSettings props)
protected

◆ SetSymbolShape()

void SetSymbolShape ( unsigned int  symbolshape)

◆ SetSymbolSize()

void SetSymbolSize ( unsigned int  symbolsize)

Field Documentation

◆ a_ci_

QAction* a_ci_
protected

Definition at line 113 of file pointlist_overlay_base.hh.

◆ a_cr_

QAction* a_cr_
protected

Definition at line 114 of file pointlist_overlay_base.hh.

◆ a_settings_

QAction* a_settings_
protected

Definition at line 115 of file pointlist_overlay_base.hh.

◆ a_sq_

QAction* a_sq_
protected

Definition at line 112 of file pointlist_overlay_base.hh.

◆ active_color_

QColor active_color_
protected

Definition at line 106 of file pointlist_overlay_base.hh.

◆ menu_

QMenu* menu_
protected

Definition at line 110 of file pointlist_overlay_base.hh.

◆ passive_color_

QColor passive_color_
protected

Definition at line 107 of file pointlist_overlay_base.hh.

◆ strategy_

SymbolDrawingStrategyPtr strategy_
protected

Definition at line 105 of file pointlist_overlay_base.hh.

◆ symbolsize_

unsigned int symbolsize_
protected

Definition at line 108 of file pointlist_overlay_base.hh.

◆ symbolstrength_

unsigned int symbolstrength_
protected

Definition at line 109 of file pointlist_overlay_base.hh.


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