ScaleEngine Class Reference

#include <ScaleEngine.h>

List of all members.

Public Member Functions

virtual void autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const
double axisBreakLeft () const
double axisBreakRight () const
int breakPosition () const
int breakWidth () const
void clone (const ScaleEngine *engine)
virtual QwtScaleDiv divideScale (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const
void drawBreakDecoration (bool draw)
bool hasBreak () const
bool hasBreakDecoration () const
bool log10ScaleAfterBreak () const
int minTicksAfterBreak () const
int minTicksBeforeBreak () const
 ScaleEngine (QwtScaleTransformation::Type type=QwtScaleTransformation::Linear, double left_break=-DBL_MAX, double right_break=DBL_MAX)
void setBreakPosition (int pos)
void setBreakRegion (double from, double to)
void setBreakWidth (int width)
void setLog10ScaleAfterBreak (bool on)
void setMinTicksAfterBreak (int ticks)
void setMinTicksBeforeBreak (int ticks)
void setStepAfterBreak (double step)
void setStepBeforeBreak (double step)
void setType (QwtScaleTransformation::Type type)
double stepAfterBreak () const
double stepBeforeBreak () const
QwtScaleTransformation * transformation () const
QwtScaleTransformation::Type type () const

Private Attributes

bool d_break_decoration
 If true draw the break decoration.
double d_break_left
int d_break_pos
 Position of axis break (% of axis length).
double d_break_right
int d_break_width
 Width of the axis break in pixels.
bool d_log10_scale_after
 Log10 scale after break.
int d_minor_ticks_after
int d_minor_ticks_before
 Minor ticks before and after break.
double d_step_after
double d_step_before
 Scale increment before and after break.
QwtScaleTransformation::Type d_type


Constructor & Destructor Documentation

ScaleEngine::ScaleEngine ( QwtScaleTransformation::Type  type = QwtScaleTransformation::Linear,
double  left_break = -DBL_MAX,
double  right_break = DBL_MAX 
)


Member Function Documentation

void ScaleEngine::autoScale ( int  maxNumSteps,
double &  x1,
double &  x2,
double &  stepSize 
) const [virtual]

double ScaleEngine::axisBreakLeft (  )  const

double ScaleEngine::axisBreakRight (  )  const

int ScaleEngine::breakPosition (  )  const

int ScaleEngine::breakWidth (  )  const

void ScaleEngine::clone ( const ScaleEngine engine  ) 

QwtScaleDiv ScaleEngine::divideScale ( double  x1,
double  x2,
int  maxMajSteps,
int  maxMinSteps,
double  stepSize = 0.0 
) const [virtual]

void ScaleEngine::drawBreakDecoration ( bool  draw  )  [inline]

References d_break_decoration.

Referenced by Graph::setScale().

bool ScaleEngine::hasBreak (  )  const

bool ScaleEngine::hasBreakDecoration (  )  const

bool ScaleEngine::log10ScaleAfterBreak (  )  const

int ScaleEngine::minTicksAfterBreak (  )  const

References d_minor_ticks_after.

Referenced by clone().

int ScaleEngine::minTicksBeforeBreak (  )  const

References d_minor_ticks_before.

Referenced by clone().

void ScaleEngine::setBreakPosition ( int  pos  )  [inline]

References d_break_pos.

Referenced by Graph::setScale().

void ScaleEngine::setBreakRegion ( double  from,
double  to 
) [inline]

References d_break_left, and d_break_right.

Referenced by Graph::setScale().

void ScaleEngine::setBreakWidth ( int  width  )  [inline]

References d_break_width.

Referenced by Graph::setScale().

void ScaleEngine::setLog10ScaleAfterBreak ( bool  on  )  [inline]

References d_log10_scale_after.

Referenced by Graph::setScale().

void ScaleEngine::setMinTicksAfterBreak ( int  ticks  )  [inline]

References d_minor_ticks_after.

Referenced by Graph::setScale().

void ScaleEngine::setMinTicksBeforeBreak ( int  ticks  )  [inline]

References d_minor_ticks_before.

Referenced by Graph::setScale().

void ScaleEngine::setStepAfterBreak ( double  step  )  [inline]

References d_step_after.

Referenced by Graph::setScale().

void ScaleEngine::setStepBeforeBreak ( double  step  )  [inline]

References d_step_before.

Referenced by Graph::setScale().

void ScaleEngine::setType ( QwtScaleTransformation::Type  type  )  [inline]

References d_type.

Referenced by Graph::setScale().

double ScaleEngine::stepAfterBreak (  )  const

References d_step_after.

Referenced by clone().

double ScaleEngine::stepBeforeBreak (  )  const

References d_step_before.

Referenced by clone().

QwtScaleTransformation * ScaleEngine::transformation (  )  const

QwtScaleTransformation::Type ScaleEngine::type (  )  const


Member Data Documentation

If true draw the break decoration.

Referenced by clone(), drawBreakDecoration(), and hasBreakDecoration().

double ScaleEngine::d_break_left [private]

int ScaleEngine::d_break_pos [private]

Position of axis break (% of axis length).

Referenced by breakPosition(), clone(), and setBreakPosition().

double ScaleEngine::d_break_right [private]

Width of the axis break in pixels.

Referenced by breakWidth(), clone(), and setBreakWidth().

Log10 scale after break.

Referenced by clone(), divideScale(), log10ScaleAfterBreak(), and setLog10ScaleAfterBreak().

Minor ticks before and after break.

Referenced by clone(), divideScale(), minTicksBeforeBreak(), and setMinTicksBeforeBreak().

double ScaleEngine::d_step_after [private]

double ScaleEngine::d_step_before [private]

Scale increment before and after break.

Referenced by clone(), divideScale(), setStepBeforeBreak(), and stepBeforeBreak().

QwtScaleTransformation::Type ScaleEngine::d_type [private]


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

Generated on Fri Nov 7 03:36:56 2008 for QtiPlot by  doxygen 1.5.6