Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Graph Class Reference

#include <Graph.h>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

This class manages the drawing of a graphic of the evolution in time of one or more quantities.

Definition at line 8 of file Graph.h.


Constructor & Destructor Documentation

Graph::Graph int  width,
int  height,
int  bufferSize,
int  nSubGraphs = 1,
float  min = 0,
float  max = 1
 

Definition at line 11 of file Graph.cpp.

References bitmap, dc, and subGraphs.

Graph::~Graph  )  [virtual]
 

Definition at line 24 of file Graph.cpp.

References subGraphs.


Member Function Documentation

void Graph::draw wxDC *  outdc,
int  x,
int  y
 

Definition at line 76 of file Graph.cpp.

References dc, drawBuffer(), height, and width.

void Graph::drawBuffer  ) 
 

Definition at line 37 of file Graph.cpp.

References GraphData::dataSize, dc, GraphData::getValue(), height, max, min, subGraphs, and width.

Referenced by draw().

void Graph::push float  value,
int  nSubGraph = 0
 

Adds a data value to the specified subgraph.

Definition at line 31 of file Graph.cpp.

References max, min, GraphData::push(), and subGraphs.


Member Data Documentation

wxBitmap Graph::bitmap
 

Bitmap used for internal buffer.

Definition at line 28 of file Graph.h.

Referenced by Graph().

int Graph::bufferSize
 

The size of the memory buffer of the graph

Definition at line 18 of file Graph.h.

wxMemoryDC Graph::dc
 

DC used for internal buffer.

Definition at line 30 of file Graph.h.

Referenced by draw(), drawBuffer(), and Graph().

int Graph::height
 

The dimensions, in pixels, of the graphical area on which the graph is drawn.

Definition at line 14 of file Graph.h.

Referenced by draw(), and drawBuffer().

float Graph::max
 

Definition at line 15 of file Graph.h.

Referenced by drawBuffer(), and push().

float Graph::min
 

Definition at line 15 of file Graph.h.

Referenced by drawBuffer(), and push().

int Graph::nSubGraphs
 

Definition at line 22 of file Graph.h.

GraphData** Graph::subGraphs
 

The composing subgraph. More than one subgraph (curves) can be displayed in the same graph.

Definition at line 21 of file Graph.h.

Referenced by drawBuffer(), Graph(), push(), and ~Graph().

int Graph::width
 

The dimensions, in pixels, of the graphical area on which the graph is drawn.

Definition at line 14 of file Graph.h.

Referenced by draw(), and drawBuffer().


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005