#ifndef ROOT_TQtMarker
#define ROOT_TQtMarker
#ifndef ROOT_TPoint
#include "TPoint.h"
#endif
#ifndef __CINT__
#include <QPolygon>
#else
class QPointArray;
class QPolygon;
#endif
class TAttMarker;
class QPainter;
class TQtMarker {
private:
int fNumNode;
QPolygon fChain;
Color_t fCindex;
int fMarkerType;
int fLineWidth;
int fLineOption;
public:
TQtMarker(int n=0, TPoint *xy=0,int type=0);
TQtMarker &operator=(const TQtMarker&);
TQtMarker(const TQtMarker&);
TQtMarker &operator=(const TAttMarker&);
TQtMarker(const TAttMarker&);
virtual ~TQtMarker();
void DrawPolyMarker(QPainter &p, int n, TPoint *xy);
void SetMarkerAttributes(const TAttMarker& markerAttributes);
void SetColor(Color_t mcolor);
void SetPenAttributes(int type);
Color_t GetColor() const;
int GetNumber() const;
const QPolygon &GetNodes() const;
int GetType() const;
int GetWidth() const;
void SetMarker(int n, TPoint *xy, int type);
ClassDef(TQtMarker,0)
};
inline TQtMarker &TQtMarker::operator=(const TQtMarker&m)
{
fNumNode = m.fNumNode;
fChain = m.fChain;
fCindex = m.fCindex;
fMarkerType=m.fMarkerType;
fLineWidth =m.fLineWidth;
return *this;
}
inline TQtMarker::TQtMarker(const TQtMarker&m) : fNumNode(m.fNumNode),
fChain(m.fChain), fCindex(m.fCindex),fMarkerType(m.fMarkerType),fLineWidth(m.fLineWidth)
, fLineOption()
{}
inline void TQtMarker::SetColor(Color_t mcolor) { fCindex = mcolor; }
inline Color_t TQtMarker::GetColor() const { return fCindex; }
#endif