#include <gui_graph.h>
Public Member Functions | |
tcGraphAxis (const char *label, int count, eGraphAxisType type, float min_range, float max_range, int plot_size, tsGraphAxisCfg *cfg, bool abReverse=false) | |
~tcGraphAxis () | |
int | calc_pos (double value) const |
float | calc_val (int pos) const |
Public Attributes | |
GSTRING | m_label |
label to use for the graph axis | |
eGraphAxisType | m_type |
type of axis described by object | |
int | m_plot_size |
the length of the axis (in screen pixels) | |
float | m_min_range |
the minimum value of the axis (world coordinates) | |
float | m_max_range |
the maximum value of the axis (world coordiantes) | |
int | m_count |
the number of axis description points | |
tsGraphAxis * | m_axis |
array of axis description points used for rendering | |
bool | m_reverse |
when true, indicates the axis translation should be reveresed for calc_pos() |
This class is used by the tcGuiGraph class to represent axis control for both X, Y, and Y (right) axis description.
tcGraphAxis::tcGraphAxis | ( | const char * | label, | |
int | count, | |||
eGraphAxisType | type, | |||
float | min_range, | |||
float | max_range, | |||
int | plot_size, | |||
tsGraphAxisCfg * | cfg, | |||
bool | abReverse = false | |||
) |
tcGraphAxis::~tcGraphAxis | ( | ) |
int tcGraphAxis::calc_pos | ( | double | value | ) | const |
float tcGraphAxis::calc_val | ( | int | pos | ) | const |
label to use for the graph axis
type of axis described by object
the length of the axis (in screen pixels)
the minimum value of the axis (world coordinates)
the maximum value of the axis (world coordiantes)
the number of axis description points
array of axis description points used for rendering
when true, indicates the axis translation should be reveresed for calc_pos()