#include "TQtRConfig.h"
#include "TQtMarker.h"
#if QT_VERSION >= 0x40000
# include <QPolygon>
#endif /* QT_VERSION */
ClassImp(TQtMarker)
TQtMarker::TQtMarker(int n, TPoint *xy, int type) : fNumNode(n),
fChain(0), fCindex(0), fMarkerType(type)
{
if (type >= 2) {
#if defined(R__QTWIN32) && (QT_VERSION < 0x40000)
fChain.setPoints(n,(QCOORD *)xy);
#else
fChain.resize(n);
TPoint *rootPoint = xy;
for (int i=0;i<n;i++,rootPoint++)
fChain.setPoint(i,rootPoint->fX,rootPoint->fY);
#endif
}
}
TQtMarker::~TQtMarker(){}
int TQtMarker::GetNumber() const {return fNumNode;}
#if QT_VERSION < 0x40000
QPointArray &TQtMarker::GetNodes() {return fChain;}
#else /* QT_VERSION */
QPolygon &TQtMarker::GetNodes() {return fChain;}
#endif /* QT_VERSION */
int TQtMarker::GetType() const {return fMarkerType;}
void TQtMarker::SetMarker(int n, TPoint *xy, int type)
{
fNumNode = n;
fMarkerType = type;
if (fMarkerType >= 2) {
#if defined(R__QTWIN32) && (QT_VERSION < 0x40000)
fChain.setPoints(n,(QCOORD *)xy);
#else
fChain.resize(n);
TPoint *rootPoint = xy;
for (int i=0;i<n;i++,rootPoint++)
fChain.setPoint(i,rootPoint->fX,rootPoint->fY);
#endif
}
}
Last change: Fri Nov 28 17:01:25 2008
Last generated: 2008-11-28 17:01
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.