00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef GCU_SPECTRUM_VIEW_H
00024 #define GCU_SPECTRUM_VIEW_H
00025
00026 #include <goffice/graph/gog-series.h>
00027 #include <gtk/gtkwidget.h>
00028
00029 namespace gcu
00030 {
00031
00032 class SpectrumDocument;
00033
00034 class SpectrumView
00035 {
00036 public:
00038
00043 SpectrumView (SpectrumDocument *pDoc);
00044
00046
00049 virtual ~SpectrumView ();
00050
00053 void SetAxisBounds (GogAxisType target, double min, double max, bool inverted);
00054
00057 void SetAxisLabel (GogAxisType target, char const *unit);
00058
00061 void Render (cairo_t *cr, double width, double height);
00062
00066 GCU_RO_PROP (SpectrumDocument *, Doc)
00067 GCU_RO_PROP (GtkWidget *, Widget)
00068 GCU_RO_PROP (GogSeries *, Series)
00069 };
00070
00071 }
00072
00073 #endif // GCU_SPECTRUM_VIEW_H