svcore
1.9
|
#include <ScaleTickIntervals.h>
Classes | |
struct | Instruction |
struct | Range |
struct | Tick |
Public Types | |
typedef std::vector< Tick > | Ticks |
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
|
private |
Enumerator | |
---|---|
Fixed | |
Scientific | |
Auto |
Definition at line 75 of file ScaleTickIntervals.h.
Member Function Documentation
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().
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.
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().
|
inlinestaticprivate |
Definition at line 92 of file ScaleTickIntervals.h.
References Auto, Fixed, ScaleTickIntervals::Range::max, ScaleTickIntervals::Range::min, ScaleTickIntervals::Range::n, Scientific, and SVDEBUG.
Referenced by linearTicks().
|
inlinestaticprivate |
Definition at line 182 of file ScaleTickIntervals.h.
References Auto, ScaleTickIntervals::Range::max, ScaleTickIntervals::Range::min, ScaleTickIntervals::Range::n, and SVDEBUG.
Referenced by logTicks().
Definition at line 246 of file ScaleTickIntervals.h.
References explode(), and linearInstruction().
Referenced by linear().
Definition at line 252 of file ScaleTickIntervals.h.
References explode(), and logInstruction().
Referenced by logarithmicAlready().
|
inlinestaticprivate |
Definition at line 258 of file ScaleTickIntervals.h.
References Auto, Fixed, Scientific, and SVDEBUG.
Referenced by explode().
|
inlinestaticprivate |
Definition at line 318 of file ScaleTickIntervals.h.
References ScaleTickIntervals::Instruction::display, ScaleTickIntervals::Instruction::initial, ScaleTickIntervals::Instruction::limit, ScaleTickIntervals::Instruction::logUnmap, makeTick(), ScaleTickIntervals::Range::max, ScaleTickIntervals::Range::n, ScaleTickIntervals::Instruction::precision, ScaleTickIntervals::Instruction::roundTo, ScaleTickIntervals::Instruction::spacing, and SVDEBUG.
Referenced by linearTicks(), and logTicks().
The documentation for this class was generated from the following file:
Generated by 1.8.11