-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrace.h
executable file
·43 lines (32 loc) · 1.19 KB
/
trace.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**-----------------------------------------------------------
Autor : Neumair Günther
Class : TRACE
Date : 06.11.2010
LastChange : 06.11.2010
Description : Datacontainer for Chart
-------------------------------------------------------------*/
/// TODO MIN,MAX durch STL Algos ersetzen
#ifndef TRACE_H
#define TRACE_H
#include <wx/wx.h>
#include <list>
#include <sstream>
#include <string>
typedef std::list<float> t_Valuelist;
class t_Trace
{
public:
t_Trace();
void add_Data(float const &value); ///Add a value to Trace
void set_max_values(size_t value); ///Set a valuelimit. FIFO Style , old values dissapear
float get_max() const ; ///Get the highest value of Trace (Autoscaling) TODO SPEEDUP USE STL !!!!!!!!!/
float get_min() const ; ///Get lowest value of Trace ( Autoscaling) TODO SPEEDUP USE STL !!!!!!!!!/
size_t get_size() const; ///Return Datacount (Autoscaling)
t_Valuelist * get_Data(); ///Retrieve all Data
void set_colour(int r, int g, int b);///Set the Color of the Trace
private:
t_Valuelist Data;
size_t max_values;
int mr,mg,mb;
};
#endif