ROOT logo
ROOT » GRAF2D » QT » TQtMarker

class TQtMarker

 TQtMarker - class-utility to convert the ROOT TMarker object shape
             into the Qt QPointArray.

Function Members (Methods)

TQtMarker(const TQtMarker& m)
TQtMarker(const TAttMarker&)
TQtMarker(int n = 0, TPoint* xy = 0, int type = 0)
static TClass*Class()
voidDrawPolyMarker(QPainter& p, int n, TPoint* xy)
Color_tGetColor() const
const QPolygon&GetNodes() const
intGetNumber() const
intGetType() const
virtual TClass*IsA() const
TQtMarker&operator=(const TQtMarker& m)
TQtMarker&operator=(const TAttMarker&)
voidSetColor(Color_t mcolor)
voidSetMarker(int n, TPoint* xy, int type)
voidSetMarkerAttributes(const TAttMarker& markerAttributes)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

QPolygonfChainarray of the n chains to build a shaped marker
Color_tfCindexColor index of the marker;
intfMarkerTypeType of the current marker
intfNumNodeNumber of chain in the marker shape

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQtMarker(int n = 0, TPoint* xy = 0, int type = 0)
TQtMarker & operator=(const TAttMarker&markerAttributes)
 Assign the TQtMarker from ROOT TAttMarker
TQtMarker(const TAttMarker &markerAttributes)
 Create the TQtMarker from ROOT TAttMarker
void SetMarkerAttributes(const TAttMarker& markerAttributes)
 Map Qt marker  attributes to ROOT TAttMaker parameters
int GetNumber() const
{return fNumNode;}
const QPolygon & GetNodes() const
{return fChain;}
int GetType() const
{return fMarkerType;}
void SetMarker(int n, TPoint* xy, int type)
*-* Did we have a chain ?
void DrawPolyMarker(QPainter& p, int n, TPoint* xy)
 Draw n markers with the current attributes at positions xy.
 p    : the external QPainter
 n    : number of markers to draw
 xy   : x,y coordinates of markers
TQtMarker & operator=(const TQtMarker&m)
inline TQtMarker(const TQtMarker&m)
void SetColor(Color_t mcolor)
{ fCindex = mcolor; }
Color_t GetColor() const
{ return fCindex; }