Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TGraphScale Class Reference

The class containing a scale used in the graph. More...

#include <TGraph.h>

List of all members.

Public Member Functions

 TGraphScale (float _min=0, float _max=0, bool _horizontal=false, bool _left=true, wxString _name=_T(""), wxString _unit=_T(""), wxColour _col=*wxBLACK, wxString _type=_T("linear"))
 Constructor.
int GetWidth ()
 Returns height/width in pixels.
void drawit (wxDC &dc, wxRect &r, wxRect &inner)
 Draws the scale, adjusts the inner rectangle.
void DrawMark (wxDC &dc, float p, wxRect &ir, wxString text, bool big=false)
 Draws the red marker for cursor position.
int GetRealCoord (float f, wxRect &inner)
 Converts float value to pixel.
float GetVirtualCoordinate (int i, wxRect &inner)
 Converts pixel to float.
wxRect CalcInternalRect (wxRect &r)
 Returns the internal rectangle.
void Drag (int delta)
 Drags the scale into a direction (pixel).
float GetTotalWidth ()
 Returns the height/width in arb. units.
float GetVisibleWidth ()
 Returns the visible height/width in arb. units.

Public Attributes

wxRect outline
wxRect last_inner
float min
float max
float top
float bottom
bool horizontal
bool left
bool selected
wxString name
wxString unit
wxString type
wxColour col
int mark
bool show_mark


Detailed Description

The class containing a scale used in the graph.


Constructor & Destructor Documentation

TGraphScale::TGraphScale float  _min = 0,
float  _max = 0,
bool  _horizontal = false,
bool  _left = true,
wxString  _name = _T(""),
wxString  _unit = _T(""),
wxColour  _col = *wxBLACK,
wxString  _type = _T("linear")
 

Constructor.


Member Function Documentation

wxRect TGraphScale::CalcInternalRect wxRect &  r  ) 
 

Returns the internal rectangle.

void TGraphScale::Drag int  delta  ) 
 

Drags the scale into a direction (pixel).

void TGraphScale::drawit wxDC &  dc,
wxRect &  r,
wxRect &  inner
 

Draws the scale, adjusts the inner rectangle.

void TGraphScale::DrawMark wxDC &  dc,
float  p,
wxRect &  ir,
wxString  text,
bool  big = false
 

Draws the red marker for cursor position.

int TGraphScale::GetRealCoord float  f,
wxRect &  inner
 

Converts float value to pixel.

float TGraphScale::GetTotalWidth  )  [inline]
 

Returns the height/width in arb. units.

float TGraphScale::GetVirtualCoordinate int  i,
wxRect &  inner
 

Converts pixel to float.

float TGraphScale::GetVisibleWidth  )  [inline]
 

Returns the visible height/width in arb. units.

int TGraphScale::GetWidth  ) 
 

Returns height/width in pixels.


Member Data Documentation

float TGraphScale::bottom
 

wxColour TGraphScale::col
 

bool TGraphScale::horizontal
 

wxRect TGraphScale::last_inner
 

bool TGraphScale::left
 

int TGraphScale::mark
 

float TGraphScale::max
 

float TGraphScale::min
 

wxString TGraphScale::name
 

wxRect TGraphScale::outline
 

bool TGraphScale::selected
 

bool TGraphScale::show_mark
 

float TGraphScale::top
 

wxString TGraphScale::type
 

wxString TGraphScale::unit
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:46 2006 for GENtle by  doxygen 1.4.1