#include <ScaleTickIntervals.h>

Classes

struct  Instruction
 
struct  Range
 
struct  Tick
 

Public Types

typedef std::vector< TickTicks
 

Static Public Member Functions

static Ticks linear (Range r)
 Return a set of ticks that divide the range r linearly into roughly r.n equal divisions, in such a way as to yield reasonably human-readable labels. More...
 
static Ticks logarithmic (Range r)
 Return a set of ticks that divide the range r into roughly r.n logarithmic divisions, in such a way as to yield reasonably human-readable labels. More...
 
static Ticks logarithmicAlready (Range r)
 Return a set of ticks that divide the range r into roughly r.n logarithmic divisions, on the asssumption that r.min and r.max already represent the logarithms of the boundary values rather than the values themselves. More...
 

Private Types

enum  Display { Fixed, Scientific, Auto }
 

Static Private Member Functions

static Instruction linearInstruction (Range r)
 
static Instruction logInstruction (Range r)
 
static Ticks linearTicks (Range r)
 
static Ticks logTicks (Range r)
 
static Tick makeTick (Display display, int precision, double value)
 
static Ticks explode (Instruction instruction)
 

Detailed Description

Definition at line 29 of file ScaleTickIntervals.h.

Member Typedef Documentation

typedef std::vector<Tick> ScaleTickIntervals::Ticks

Definition at line 43 of file ScaleTickIntervals.h.

Member Enumeration Documentation

Enumerator
Fixed 
Scientific 
Auto 

Definition at line 75 of file ScaleTickIntervals.h.

Member Function Documentation

static Ticks ScaleTickIntervals::linear ( Range  r)
inlinestatic

Return a set of ticks that divide the range r linearly into roughly r.n equal divisions, in such a way as to yield reasonably human-readable labels.

Definition at line 50 of file ScaleTickIntervals.h.

References linearTicks().

static Ticks ScaleTickIntervals::logarithmic ( Range  r)
inlinestatic

Return a set of ticks that divide the range r into roughly r.n logarithmic divisions, in such a way as to yield reasonably human-readable labels.

Definition at line 59 of file ScaleTickIntervals.h.

References logarithmicAlready(), LogRange::mapRange(), ScaleTickIntervals::Range::max, and ScaleTickIntervals::Range::min.

static Ticks ScaleTickIntervals::logarithmicAlready ( Range  r)
inlinestatic

Return a set of ticks that divide the range r into roughly r.n logarithmic divisions, on the asssumption that r.min and r.max already represent the logarithms of the boundary values rather than the values themselves.

Definition at line 70 of file ScaleTickIntervals.h.

References logTicks().

Referenced by logarithmic().

static Instruction ScaleTickIntervals::linearInstruction ( Range  r)
inlinestaticprivate
static Instruction ScaleTickIntervals::logInstruction ( Range  r)
inlinestaticprivate
static Ticks ScaleTickIntervals::linearTicks ( Range  r)
inlinestaticprivate

Definition at line 246 of file ScaleTickIntervals.h.

References explode(), and linearInstruction().

Referenced by linear().

static Ticks ScaleTickIntervals::logTicks ( Range  r)
inlinestaticprivate

Definition at line 252 of file ScaleTickIntervals.h.

References explode(), and logInstruction().

Referenced by logarithmicAlready().

static Tick ScaleTickIntervals::makeTick ( Display  display,
int  precision,
double  value 
)
inlinestaticprivate

Definition at line 258 of file ScaleTickIntervals.h.

References Auto, Fixed, Scientific, and SVDEBUG.

Referenced by explode().


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