Nebula
Loading...
Searching...
No Matches
svglinechartwriter.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13#include "timing/time.h"
14
15//------------------------------------------------------------------------------
16namespace Http
17{
19{
21public:
25 virtual ~SvgLineChartWriter();
26
28 virtual bool Open();
30 void SetupXAxis(const Util::String& axisName, const Util::String& unitName, int minVal, int maxVal);
32 void SetupYAxis(const Util::String& axisName, const Util::String& unitName, float minVal, float maxVal);
34 void AddTrack(const Util::String& name, const Util::String& color, const Util::Array<float>& values);
36 void AddTrack(const Util::String& name, const Util::String& color, const Util::Array<float>& values, const Util::Array<Timing::Tick>& timeStamps);
38 void Draw();
39
40private:
48
58};
59
60} // namespace Http
61//------------------------------------------------------------------------------
62
Specialized SVG page writer which draws a line chart diagrams.
Definition svglinechartwriter.h:19
Util::String xAxisName
Definition svglinechartwriter.h:49
virtual ~SvgLineChartWriter()
destructor
Definition svglinechartwriter.cc:31
void AddTrack(const Util::String &name, const Util::String &color, const Util::Array< float > &values)
add a value track
Definition svglinechartwriter.cc:77
int xAxisMaxVal
Definition svglinechartwriter.h:52
Util::String xAxisUnitName
Definition svglinechartwriter.h:50
void Draw()
draw diagram
Definition svglinechartwriter.cc:107
int xAxisMinVal
Definition svglinechartwriter.h:51
Util::String yAxisUnitName
Definition svglinechartwriter.h:54
Util::String yAxisName
Definition svglinechartwriter.h:53
float yAxisMaxVal
Definition svglinechartwriter.h:56
SvgLineChartWriter()
constructor
Definition svglinechartwriter.cc:19
Util::Array< Track > tracks
Definition svglinechartwriter.h:57
void SetupXAxis(const Util::String &axisName, const Util::String &unitName, int minVal, int maxVal)
setup the x axis
Definition svglinechartwriter.cc:51
__DeclareClass(SvgLineChartWriter)
void SetupYAxis(const Util::String &axisName, const Util::String &unitName, float minVal, float maxVal)
setup the y axis
Definition svglinechartwriter.cc:64
virtual bool Open()
begin writing to the stream
Definition svglinechartwriter.cc:40
float yAxisMinVal
Definition svglinechartwriter.h:55
A stream writer to generate simple SVG pages.
Definition svgpagewriter.h:22
Nebula's dynamic array class.
Definition array.h:60
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15
Definition svglinechartwriter.h:42
Util::Array< float > values
Definition svglinechartwriter.h:45
Util::Array< Timing::Tick > times
Definition svglinechartwriter.h:46
Util::String color
Definition svglinechartwriter.h:44
Util::String name
Definition svglinechartwriter.h:43
Nebula's universal string class.
Definition string.h:50
Typedefs for the Timing subsystem.