15 enum EMode { kAligned = 0, kFixed = 1 };
17 Axis(
double min = 0.0,
double max = 1.0,
EMode mode = kAligned,
double delta = 1);
23 void find(
double v,
double &
min,
double &
max, std::string & path,
int levelrequest = -1,
int levelmax = 100);
25 void expand(
char direction =
'>',
int power = 1);
27 void shrink(
char direction =
'>',
int power = 1);
63 void split(std::vector<double> & mins,
int level);
79 void find(
double & v,
int & levelrequest,
int & levelmax,
int & currentlevel,
double &
min,
double &
max,
std::string info() const
Returns info string.
void split(std::vector< double > &mins, int level)
double mMaxB
Internal maximum.
double to_user(double v) const
Convert interal to user format.
void info(std::string i)
Sets info string.
unsigned int level() const
Returns level.
double to_internal(double v) const
Convert user to internal format.
void level(unsigned int l)
Sets level.
bool is_bin() const
Returns user defined maximum.
void minmax(double min, double max)
Sets user defined minimum and maximum.
int decimels_right(double num, double mult=10, double min=0.01, double max=0.99)
void find(double v, double &min, double &max, std::string &path, int levelrequest=-1, int levelmax=100)
Find bin and print info for given value.
double mMinDelta
Minimal delta of axis range.
void max(double m)
Sets user defined maximum.
unsigned int mLevel
Level of division.
Axis object in n-dimensional space.
double max() const
Returns user defined maximum.
std::string mInfo
Some additional info for axis.
void is_bin(bool b)
Sets user defined maximum.
void print() const
Prints axis info.
double mMin
User defined minimum.
double mShift
Shift to the internal min/max parameters.
void expand(char direction= '>', int power=1)
Expand range.
void shrink(char direction= '>', int power=1)
Shrink range.
void min(double m)
Sets user defined minimum.
double maxb() const
Returns internal maximum.
void modify_range(char direction= '>', int power=1)
double mMultiply
Multiply to the internal min/max parameters.
double min() const
Returns user defined minimum.
double mMax
User defined maximum.
bool mIsBin
Min max is in bin/user format.
double maxb_user() const
Returns internal maximum2.
Axis(double min=0.0, double max=1.0, EMode mode=kAligned, double delta=1)
int decimels_left(double num, double mult=10, double min=0.01)