library: libGraf
#include "TMarker.h"

TMarker


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

class TMarker : public TObject, public TAttMarker

Inheritance Chart:
TObject
TAttMarker
<-
TMarker

    public:
TMarker() TMarker(Double_t x, Double_t y, Int_t marker) TMarker(const TMarker& marker) virtual ~TMarker() static TClass* Class() virtual void Copy(TObject& marker) const static void DisplayMarkerTypes() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void Draw(Option_t* option = "") virtual void DrawMarker(Double_t x, Double_t y) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) Double_t GetX() const Double_t GetY() const virtual TClass* IsA() const virtual void ls(Option_t* option = "") const TMarker& operator=(const TMarker&) virtual void Paint(Option_t* option = "") virtual void PaintMarker(Double_t x, Double_t y) virtual void PaintMarkerNDC(Double_t u, Double_t v) virtual void Print(Option_t* option = "") const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetNDC(Bool_t isNDC = kTRUE) virtual void SetX(Double_t x) virtual void SetY(Double_t y) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Double_t fX X position of marker (left,center,etc..) Double_t fY Y position of marker (left,center,etc..) public:
static const enum TMarker:: kMarkerNDC

Class Description

 Manages Markers. Marker attributes are managed by TAttMarker.
 The list of standard ROOT markers is shown in this picture
/* */


TMarker(): TObject(), TAttMarker()
*-*-*-*-*-*-*-*-*-*-*Marker default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==========================

TMarker(Double_t x, Double_t y, Int_t marker) :TObject(), TAttMarker()
*-*-*-*-*-*-*-*-*-*-*Marker normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =========================

~TMarker()
*-*-*-*-*-*-*-*-*-*-*Marker default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =========================

TMarker(const TMarker &marker) : TObject(marker), TAttMarker(marker)

void Copy(TObject &obj) const
*-*-*-*-*-*-*-*-*-*-*Copy this marker to marker*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==========================

void DisplayMarkerTypes()
*-*-*-*-*-*-*-*-*-*-*Display the table of markers with their numbers*-*-*-*
*-*                  ===============================================

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Compute distance from point px,py to a marker*-*-*-*-*-*
*-*                  ===========================================
  Compute the closest distance of approach from point px,py to this marker.
  The distance is computed in pixels units.


void Draw(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this marker with its current attributes*-*-*-*-*-*-*
*-*                  ============================================

void DrawMarker(Double_t x, Double_t y)
*-*-*-*-*-*-*-*-*-*-*Draw this marker with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  =====================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function is called when a marker is clicked with the locator

  If Left button is clicked on a marker, the marker is moved to
     a new position when the mouse button is released.


void ls(Option_t *) const
*-*-*-*-*-*-*-*-*-*-*-*List this marker with its attributes*-*-*-*-*-*-*-*-*
*-*                    ====================================

void Paint(Option_t *)
*-*-*-*-*-*-*-*-*-*-*Paint this marker with its current attributes*-*-*-*-*-*-*
*-*                  =============================================

void PaintMarker(Double_t x, Double_t y)
*-*-*-*-*-*-*-*-*-*-*Draw this marker with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  =====================================

void PaintMarkerNDC(Double_t, Double_t)
*-*-*-*-*-*-*-*Draw this marker with new coordinates in NDC*-*-*-*-*-*-*-*-*-*
*-*            ============================================

void Print(Option_t *) const
*-*-*-*-*-*-*-*-*-*-*Dump this marker with its attributes*-*-*-*-*-*-*-*-*-*
*-*                  ====================================

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

void SetNDC(Bool_t isNDC)
 Set NDC mode on if isNDC = kTRUE, off otherwise

void Streamer(TBuffer &R__b)
 Stream an object of class TMarker.



Inline Functions


           Double_t GetX() const
           Double_t GetY() const
               void SetX(Double_t x)
               void SetY(Double_t y)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
           TMarker& operator=(const TMarker&)


Author: Rene Brun 12/05/95
Last update: root/graf:$Name: $:$Id: TMarker.cxx,v 1.12 2003/10/23 09:36:25 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.