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

Graph.h

Go to the documentation of this file.
00001 #if !defined(AFX_GRAPH_H__6AA46D96_39C9_4C8F_9FCC_3446AE0C8C94__INCLUDED_)
00002 #define AFX_GRAPH_H__6AA46D96_39C9_4C8F_9FCC_3446AE0C8C94__INCLUDED_
00003 
00004 #include "GraphData.h"
00005 #include <wx/dcmemory.h>
00006 
00008 class Graph  {
00009 public:
00010    Graph(int width, int height, int bufferSize, int nSubGraphs=1, float min=0, float max=1);
00011    virtual ~Graph();
00012 
00014    int width, height;
00015    float min, max;   
00016    
00018    int bufferSize;
00019 
00021    GraphData** subGraphs;
00022    int nSubGraphs;
00023 
00025    void push(float value, int nSubGraph=0);
00026 
00028    wxBitmap bitmap;
00030    wxMemoryDC dc;
00031 
00032    void drawBuffer();
00033    void draw(wxDC* outdc, int x, int y);
00034 
00035 
00036 
00037 };
00038 
00039 #endif // !defined(AFX_GRAPH_H__6AA46D96_39C9_4C8F_9FCC_3446AE0C8C94__INCLUDED_)

Thyrix homepageUsers' guide

(C) Arxia 2004-2005