library: libHist
#include "TPolyMarker.h"

TPolyMarker


class description - source file - inheritance tree (.pdf)

class TPolyMarker : public TObject, public TAttMarker

Inheritance Chart:
TObject
TAttMarker
<-
TPolyMarker

    public:
TPolyMarker() TPolyMarker(Int_t n, Option_t* option) TPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option) TPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option) TPolyMarker(const TPolyMarker& polymarker) virtual ~TPolyMarker() static TClass* Class() virtual void Copy(TObject& polymarker) const virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void Draw(Option_t* option) virtual void DrawPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) virtual Int_t GetLastPoint() const virtual Int_t GetN() const virtual Option_t* GetOption() const Double_t* GetX() const Double_t* GetY() const virtual TClass* IsA() const virtual void ls(Option_t* option) const virtual Int_t Merge(TCollection* list) TPolyMarker& operator=(const TPolyMarker&) virtual void Paint(Option_t* option) virtual void PaintPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option) virtual void Print(Option_t* option) const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual Int_t SetNextPoint(Double_t x, Double_t y) virtual void SetPoint(Int_t point, Double_t x, Double_t y) virtual void SetPolyMarker(Int_t n) virtual void SetPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option) virtual void SetPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual Int_t Size() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fN number of points Int_t fLastPoint The index of the last filled point Double_t* fX [fN] Array of X coordinates Double_t* fY [fN] Array of Y coordinates TString fOption options

Class Description

  a PolyMarker is defined by an array on N points in a 2-D space.
 At each point x[i], y[i] a marker is drawn.
 Marker attributes are managed by TAttMarker.
 See TMarker for the list of possible marker types.


TPolyMarker(): TObject()

TPolyMarker(Int_t n, Option_t *option) :TObject(), TAttMarker()

TPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option) :TObject(), TAttMarker()

TPolyMarker(Int_t n, Double_t *x, Double_t *y, Option_t *option) :TObject(), TAttMarker()

~TPolyMarker()

TPolyMarker(const TPolyMarker &polymarker) : TObject(polymarker), TAttMarker(polymarker)

void Copy(TObject &obj) const

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*Compute distance from point px,py to a polymarker*-*-*-*-*-*
*-*              ===============================================
  Compute the closest distance of approach from point px,py to each point
  of the polymarker.
  Returns when the distance found is below DistanceMaximum.
  The distance is computed in pixels units.


void Draw(Option_t *option)

void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y, Option_t *)

void ExecuteEvent(Int_t, Int_t, Int_t)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function must be implemented to realize the action
  corresponding to the mouse click on the object in the window


void ls(Option_t *) const

Int_t Merge(TCollection *list)
 Merge polymarkers in the collection in this polymarker

void Paint(Option_t *option)

void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Option_t *option)

void Print(Option_t *) const

void SavePrimitive(ofstream &out, Option_t *option)
 Save primitive as a C++ statement(s) on output stream out

Int_t SetNextPoint(Double_t x, Double_t y)
 Set point following LastPoint to x, y.
 Returns index of the point (new last point).

void SetPoint(Int_t n, Double_t x, Double_t y)
 set point number n
 if n is greater than the current size, the arrays are automatically
 extended

void SetPolyMarker(Int_t n)
 if n <= 0 the current arrays of points are deleted.

void SetPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option)
 if n <= 0 the current arrays of points are deleted.

void SetPolyMarker(Int_t n, Double_t *x, Double_t *y, Option_t *option)
 if n <= 0 the current arrays of points are deleted.

void Streamer(TBuffer &R__b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================



Inline Functions


               Int_t GetLastPoint() const
               Int_t GetN() const
           Option_t* GetOption() const
           Double_t* GetX() const
           Double_t* GetY() const
               Int_t Size() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void StreamerNVirtual(TBuffer& b)
        TPolyMarker& operator=(const TPolyMarker&)


Author: Rene Brun 12/12/94
Last update: root/hist:$Name: $:$Id: TPolyMarker.cxx,v 1.15 2005/01/03 10:49:58 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.