MityDSP Documentation Index

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

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


  
Generated on Wed Mar 17 18:24:43 2010 for MityDSP Skinnable Graphics User Interface (GGUI) by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.