ScalePlot Class Reference

#include <ScalePlot.h>

Collaboration diagram for ScalePlot:

Collaboration graph
[legend]

List of all members.

Public Slots

void draw ()
void drawRefresh ()
void setBackgroundColor (QColor &)
void setBorderColor (QColor &)
void setPlotFont (QFont &)
void slotScaleToScreenChanged (bool)
void slotLogScaleChanged (bool)
void drawScale ()
void setMainFlag (bool)

Public Member Functions

 ScalePlot (QWidget *)
 ~ScalePlot ()
void clear ()
void setData (double)
void setScaleWidth (int)
void setLogScale (bool)
void setScaleToScreen (bool)
void strip (double, int, QString &)
void setScaler (Scaler &)

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Private Attributes

QFont plotFont
QPixmap buffer
QColor backgroundColor
QColor borderColor
bool scaleToScreen
bool logScale
int scaleWidth
double close
Scaler scaler
bool mainFlag
bool activeFlag


Detailed Description

Definition at line 31 of file ScalePlot.h.


Constructor & Destructor Documentation

ScalePlot::ScalePlot ( QWidget *  w  ) 

Definition at line 34 of file ScalePlot.cpp.

References activeFlag, backgroundColor, borderColor, close, logScale, mainFlag, plotFont, SCALE_WIDTH, scaleToScreen, and scaleWidth.

ScalePlot::~ScalePlot (  ) 

Definition at line 54 of file ScalePlot.cpp.


Member Function Documentation

void ScalePlot::clear (  ) 

Definition at line 58 of file ScalePlot.cpp.

References close.

Referenced by Plot::clear().

void ScalePlot::setData ( double  c  ) 

Definition at line 63 of file ScalePlot.cpp.

References activeFlag, and close.

Referenced by Plot::setData().

void ScalePlot::setScaleWidth ( int  d  ) 

Definition at line 118 of file ScalePlot.cpp.

References SCALE_WIDTH, and scaleWidth.

void ScalePlot::setLogScale ( bool  d  ) 

Definition at line 79 of file ScalePlot.cpp.

References logScale.

Referenced by Plot::setLogScale(), and slotLogScaleChanged().

void ScalePlot::setScaleToScreen ( bool  d  ) 

Definition at line 74 of file ScalePlot.cpp.

References scaleToScreen.

Referenced by Plot::setScaleToScreen(), and slotScaleToScreenChanged().

void ScalePlot::strip ( double  d,
int  p,
QString &  s 
)

Definition at line 221 of file ScalePlot.cpp.

Referenced by drawScale().

void ScalePlot::setScaler ( Scaler d  ) 

Definition at line 254 of file ScalePlot.cpp.

References scaler.

Referenced by Plot::draw(), and Plot::slotUpdateScalePlot().

void ScalePlot::draw (  )  [slot]

Definition at line 84 of file ScalePlot.cpp.

References activeFlag, backgroundColor, buffer, drawScale(), and paintEvent().

Referenced by Plot::draw(), resizeEvent(), slotLogScaleChanged(), slotScaleToScreenChanged(), and Plot::slotUpdateScalePlot().

void ScalePlot::drawRefresh (  )  [slot]

Definition at line 102 of file ScalePlot.cpp.

References paintEvent().

Referenced by Plot::drawRefresh().

void ScalePlot::setBackgroundColor ( QColor &  d  )  [slot]

Definition at line 126 of file ScalePlot.cpp.

References backgroundColor.

Referenced by Plot::setBackgroundColor().

void ScalePlot::setBorderColor ( QColor &  d  )  [slot]

Definition at line 131 of file ScalePlot.cpp.

References borderColor.

Referenced by Plot::setBorderColor().

void ScalePlot::setPlotFont ( QFont &  d  )  [slot]

Definition at line 136 of file ScalePlot.cpp.

References plotFont.

Referenced by Plot::setPlotFont().

void ScalePlot::slotScaleToScreenChanged ( bool  d  )  [slot]

Definition at line 242 of file ScalePlot.cpp.

References draw(), and setScaleToScreen().

void ScalePlot::slotLogScaleChanged ( bool  d  )  [slot]

Definition at line 248 of file ScalePlot.cpp.

References draw(), and setLogScale().

void ScalePlot::drawScale (  )  [slot]

Definition at line 141 of file ScalePlot.cpp.

References backgroundColor, borderColor, buffer, close, Scaler::convertToY(), Scaler::getScaleArray(), mainFlag, plotFont, scaler, and strip().

Referenced by draw().

void ScalePlot::setMainFlag ( bool  d  )  [slot]

Definition at line 69 of file ScalePlot.cpp.

References mainFlag.

void ScalePlot::paintEvent ( QPaintEvent *   )  [protected, virtual]

Definition at line 107 of file ScalePlot.cpp.

References buffer.

Referenced by draw(), and drawRefresh().

void ScalePlot::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Definition at line 112 of file ScalePlot.cpp.

References buffer, and draw().


Member Data Documentation

QFont ScalePlot::plotFont [private]

Definition at line 62 of file ScalePlot.h.

Referenced by drawScale(), ScalePlot(), and setPlotFont().

QPixmap ScalePlot::buffer [private]

Definition at line 63 of file ScalePlot.h.

Referenced by draw(), drawScale(), paintEvent(), and resizeEvent().

QColor ScalePlot::backgroundColor [private]

Definition at line 64 of file ScalePlot.h.

Referenced by draw(), drawScale(), ScalePlot(), and setBackgroundColor().

QColor ScalePlot::borderColor [private]

Definition at line 65 of file ScalePlot.h.

Referenced by drawScale(), ScalePlot(), and setBorderColor().

bool ScalePlot::scaleToScreen [private]

Definition at line 66 of file ScalePlot.h.

Referenced by ScalePlot(), and setScaleToScreen().

bool ScalePlot::logScale [private]

Definition at line 67 of file ScalePlot.h.

Referenced by ScalePlot(), and setLogScale().

int ScalePlot::scaleWidth [private]

Definition at line 68 of file ScalePlot.h.

Referenced by ScalePlot(), and setScaleWidth().

double ScalePlot::close [private]

Definition at line 69 of file ScalePlot.h.

Referenced by clear(), drawScale(), ScalePlot(), and setData().

Scaler ScalePlot::scaler [private]

Definition at line 70 of file ScalePlot.h.

Referenced by drawScale(), and setScaler().

bool ScalePlot::mainFlag [private]

Definition at line 71 of file ScalePlot.h.

Referenced by drawScale(), ScalePlot(), and setMainFlag().

bool ScalePlot::activeFlag [private]

Definition at line 72 of file ScalePlot.h.

Referenced by draw(), ScalePlot(), and setData().


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