00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ROOT_TQtMarker
00014 #define ROOT_TQtMarker
00015
00016 #ifndef ROOT_TPoint
00017 #include "TPoint.h"
00018 #endif
00019
00020 #ifndef __CINT__
00021 #include <QPolygon>
00022 #else
00023 class QPointArray;
00024 class QPolygon;
00025 #endif
00026
00027 class TAttMarker;
00028 class QPainter;
00029
00030
00031
00032
00033
00034
00035
00036
00037 class TQtMarker {
00038
00039 private:
00040
00041 int fNumNode;
00042 QPolygon fChain;
00043 Color_t fCindex;
00044 int fMarkerType;
00045 int fLineWidth;
00046 int fLineOption;
00047
00048 public:
00049
00050 TQtMarker(int n=0, TPoint *xy=0,int type=0);
00051 TQtMarker &operator=(const TQtMarker&);
00052 TQtMarker(const TQtMarker&);
00053 TQtMarker &operator=(const TAttMarker&);
00054 TQtMarker(const TAttMarker&);
00055 virtual ~TQtMarker();
00056 void DrawPolyMarker(QPainter &p, int n, TPoint *xy);
00057 void SetMarkerAttributes(const TAttMarker& markerAttributes);
00058 void SetColor(Color_t mcolor);
00059 void SetPenAttributes(int type);
00060 Color_t GetColor() const;
00061
00062 int GetNumber() const;
00063 const QPolygon &GetNodes() const;
00064 int GetType() const;
00065 int GetWidth() const;
00066 void SetMarker(int n, TPoint *xy, int type);
00067 ClassDef(TQtMarker,0)
00068 };
00069
00070
00071 inline TQtMarker &TQtMarker::operator=(const TQtMarker&m)
00072 {
00073 fNumNode = m.fNumNode;
00074 fChain = m.fChain;
00075 fCindex = m.fCindex;
00076 fMarkerType=m.fMarkerType;
00077 fLineWidth =m.fLineWidth;
00078 return *this;
00079 }
00080
00081 inline TQtMarker::TQtMarker(const TQtMarker&m) : fNumNode(m.fNumNode),
00082 fChain(m.fChain), fCindex(m.fCindex),fMarkerType(m.fMarkerType),fLineWidth(m.fLineWidth)
00083 , fLineOption()
00084 {}
00085
00086
00087 inline void TQtMarker::SetColor(Color_t mcolor) { fCindex = mcolor; }
00088
00089 inline Color_t TQtMarker::GetColor() const { return fCindex; }
00090
00091 #endif