QtiPlot  0.9.8.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScaleEngine Class Reference

#include <ScaleEngine.h>

Inheritance diagram for ScaleEngine:

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 (ScaleTransformation::Type type=ScaleTransformation::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 (ScaleTransformation::Type type)
 
double stepAfterBreak () const
 
double stepBeforeBreak () const
 
QwtScaleTransformation * transformation () const
 
ScaleTransformation::Type type () const
 

Private Member Functions

QwtScaleEngine * newScaleEngine () const
 

Private Attributes

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

Constructor & Destructor Documentation

◆ ScaleEngine()

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

Member Function Documentation

◆ autoScale()

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

◆ axisBreakLeft()

double ScaleEngine::axisBreakLeft ( ) const

◆ axisBreakRight()

double ScaleEngine::axisBreakRight ( ) const

◆ breakPosition()

int ScaleEngine::breakPosition ( ) const

References d_break_pos.

Referenced by clone(), and MultiLayer::updateLayerAxes().

◆ breakWidth()

int ScaleEngine::breakWidth ( ) const

References d_break_width.

Referenced by clone(), and MultiLayer::updateLayerAxes().

◆ clone()

void ScaleEngine::clone ( const ScaleEngine engine)

◆ divideScale()

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

◆ drawBreakDecoration()

void ScaleEngine::drawBreakDecoration ( bool  draw)
inline

Referenced by Graph::setScale().

◆ hasBreak()

bool ScaleEngine::hasBreak ( ) const

◆ hasBreakDecoration()

bool ScaleEngine::hasBreakDecoration ( ) const

◆ log10ScaleAfterBreak()

bool ScaleEngine::log10ScaleAfterBreak ( ) const

◆ minTicksAfterBreak()

int ScaleEngine::minTicksAfterBreak ( ) const

◆ minTicksBeforeBreak()

int ScaleEngine::minTicksBeforeBreak ( ) const

◆ newScaleEngine()

QwtScaleEngine * ScaleEngine::newScaleEngine ( ) const
private

◆ setBreakPosition()

void ScaleEngine::setBreakPosition ( int  pos)
inline

Referenced by Graph::setScale().

◆ setBreakRegion()

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

Referenced by Graph::setScale().

◆ setBreakWidth()

void ScaleEngine::setBreakWidth ( int  width)
inline

Referenced by Graph::setScale().

◆ setLog10ScaleAfterBreak()

void ScaleEngine::setLog10ScaleAfterBreak ( bool  on)
inline

Referenced by Graph::setScale().

◆ setMinTicksAfterBreak()

void ScaleEngine::setMinTicksAfterBreak ( int  ticks)
inline

Referenced by Graph::setScale().

◆ setMinTicksBeforeBreak()

void ScaleEngine::setMinTicksBeforeBreak ( int  ticks)
inline

Referenced by Graph::setScale().

◆ setStepAfterBreak()

void ScaleEngine::setStepAfterBreak ( double  step)
inline

Referenced by Graph::setScale().

◆ setStepBeforeBreak()

void ScaleEngine::setStepBeforeBreak ( double  step)
inline

Referenced by Graph::setScale().

◆ setType()

void ScaleEngine::setType ( ScaleTransformation::Type  type)
inline

Referenced by Graph::setScale().

◆ stepAfterBreak()

double ScaleEngine::stepAfterBreak ( ) const

References d_step_after.

Referenced by clone(), and MultiLayer::updateLayerAxes().

◆ stepBeforeBreak()

double ScaleEngine::stepBeforeBreak ( ) const

References d_step_before.

Referenced by clone(), and MultiLayer::updateLayerAxes().

◆ transformation()

QwtScaleTransformation * ScaleEngine::transformation ( ) const

◆ type()

ScaleTransformation::Type ScaleEngine::type ( ) const

Member Data Documentation

◆ d_break_decoration

bool ScaleEngine::d_break_decoration
private

If true draw the break decoration.

Referenced by clone(), and hasBreakDecoration().

◆ d_break_left

double ScaleEngine::d_break_left
private

◆ d_break_pos

int ScaleEngine::d_break_pos
private

Position of axis break (% of axis length)

Referenced by breakPosition(), and clone().

◆ d_break_right

double ScaleEngine::d_break_right
private

◆ d_break_width

int ScaleEngine::d_break_width
private

Width of the axis break in pixels.

Referenced by breakWidth(), and clone().

◆ d_log10_scale_after

bool ScaleEngine::d_log10_scale_after
private

Log10 scale after break.

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

◆ d_minor_ticks_after

int ScaleEngine::d_minor_ticks_after
private

◆ d_minor_ticks_before

int ScaleEngine::d_minor_ticks_before
private

Minor ticks before and after break.

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

◆ d_step_after

double ScaleEngine::d_step_after
private

Referenced by clone(), divideScale(), and stepAfterBreak().

◆ d_step_before

double ScaleEngine::d_step_before
private

Scale increment before and after break.

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

◆ d_type

ScaleTransformation::Type ScaleEngine::d_type
private

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