MityDSP Documentation Index
Public Member Functions | Public Attributes
MityDSP::tcGraphAxis Class Reference

#include <gui_graph.h>

List of all members.

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
tsGraphAxism_axis
 array of axis description points used for rendering
bool m_reverse
 when true, indicates the axis translation should be reveresed for calc_pos()

Detailed Description

This class is used by the tcGuiGraph class to represent axis control for both X, Y, and Y (right) axis description.


Constructor & Destructor Documentation

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 ( )

Member Function Documentation

int tcGraphAxis::calc_pos ( double  value) const
float tcGraphAxis::calc_val ( int  pos) const

Member Data Documentation

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()


  
Generated on Mon Apr 22 2013 11:33:51 for MityDSP Skinnable Graphics User Interface (GGUI) by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.