ROOT logo
ROOT » HIST » HIST » TPolyMarker

class TPolyMarker: public TObject, public TAttMarker


  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.

Function Members (Methods)

public:
TPolyMarker()
TPolyMarker(const TPolyMarker& polymarker)
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 = "")
virtual~TPolyMarker()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidCopy(TObject& polymarker) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidDrawPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Int_tGetLastPoint() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Int_tGetN() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_t*GetX() const
Double_t*GetY() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Int_tMerge(TCollection* list)
virtual voidTAttMarker::Modify()
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidPaint(Option_t* option = "")
virtual voidPaintPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t mcolor = 1)
virtual voidTAttMarker::SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual Int_tSetNextPoint(Double_t x, Double_t y)MENU
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetPoint(Int_t point, Double_t x, Double_t y)MENU
virtual voidSetPolyMarker(Int_t n)
virtual voidSetPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidSetPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tSize() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
TPolyMarker&operator=(const TPolyMarker&)

Data Members

protected:
Int_tfLastPointThe index of the last filled point
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tfNnumber of points
TStringfOptionoptions
Double_t*fX[fN] Array of X coordinates
Double_t*fY[fN] Array of Y coordinates

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPolyMarker()
 Default constructor.
TPolyMarker(Int_t n, Option_t* option = "")
 Constructor.
TPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
 Constructor.
TPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
 Constructor.
TPolyMarker& operator=(const TPolyMarker& )
assignment operator
~TPolyMarker()
 Desctructor.
TPolyMarker(const TPolyMarker& polymarker)
 Copy constructor.
void Copy(TObject& polymarker) 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 = "")
 Draw.
void DrawPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
 Draw polymarker.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
 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* option = "") const
 ls.
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 = "")
 Paint polymarker.
void Print(Option_t* option = "") const
 Print polymarker.
void SavePrimitive(ostream& 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 point, 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& )
 Stream a class object.
Int_t GetLastPoint() const
{ return fLastPoint;}
Int_t GetN() const
{return fN;}
Option_t * GetOption() const
{return fOption.Data();}
Double_t * GetX() const
{return fX;}
Double_t * GetY() const
{return fY;}
Int_t Size() const
{return fLastPoint+1;}