OSCAR-code/Graphs/gLineOverlay.h
2011-07-27 19:21:53 +10:00

30 lines
755 B
C++

/*
gLineOverlayBar Header
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
License: GPL
*/
#ifndef GLINEOVERLAY_H
#define GLINEOVERLAY_H
#include "graphlayer.h"
#include "graphdata.h"
enum LO_Type { LOT_Bar, LOT_Span, LOT_Dot };
class gLineOverlayBar:public gLayer
{
public:
gLineOverlayBar(MachineCode code,QColor col=QColor("black"),QString _label="",LO_Type _lot=LOT_Bar);
virtual ~gLineOverlayBar();
virtual void Plot(gGraphWindow & w,float scrx,float scry);
virtual EventDataType Miny() { return 0; }
virtual EventDataType Maxy() { return 0; }
virtual bool isEmpty() { return true; }
protected:
QString label;
LO_Type lo_type;
};
#endif // GLINEOVERLAY_H