mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/********************************************************************
|
|
gFlagsLine Header
|
|
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
|
|
License: GPL
|
|
*********************************************************************/
|
|
|
|
#ifndef GFLAGSLINE_H
|
|
#define GFLAGSLINE_H
|
|
|
|
#include "graphlayer.h"
|
|
|
|
class gFlagsGroup;
|
|
|
|
class gFlagsLine:public gLayer
|
|
{
|
|
friend class gFlagsGroup;
|
|
public:
|
|
gFlagsLine(gPointData *d=NULL,QColor col=Qt::black,QString _label="",bool always_visible=false, int _line_num=0,int _total_lines=0);
|
|
virtual ~gFlagsLine();
|
|
|
|
virtual void Plot(gGraphWindow & w,float scrx,float scry);
|
|
bool isAlwaysVisible() { return m_always_visible; }
|
|
void setAlwaysVisible(bool b) { m_always_visible=b; }
|
|
QString Label() { return label; }
|
|
void Label(QString s) { label=s; }
|
|
protected:
|
|
QString label;
|
|
bool m_always_visible;
|
|
int line_num,total_lines;
|
|
};
|
|
|
|
class gFlagsGroup:public gLayerGroup
|
|
{
|
|
public:
|
|
gFlagsGroup();
|
|
virtual ~gFlagsGroup();
|
|
|
|
virtual void Plot(gGraphWindow &w, float scrx, float scry);
|
|
};
|
|
|
|
#endif // GFLAGSLINE_H
|