#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 |
GSTRING MityDSP::tcGraphAxis::m_label |
label to use for the graph axis
eGraphAxisType MityDSP::tcGraphAxis::m_type |
type of axis described by object
int MityDSP::tcGraphAxis::m_plot_size |
the length of the axis (in screen pixels)
float MityDSP::tcGraphAxis::m_min_range |
the minimum value of the axis (world coordinates)
float MityDSP::tcGraphAxis::m_max_range |
the maximum value of the axis (world coordiantes)
int MityDSP::tcGraphAxis::m_count |
the number of axis description points
tsGraphAxis* MityDSP::tcGraphAxis::m_axis |
array of axis description points used for rendering
bool MityDSP::tcGraphAxis::m_reverse |
when true, indicates the axis translation should be reveresed for calc_pos()