96 for (
Int_t i=1;i<16;i++) {
98 snprintf(atext,7,
"%d",i);
102 snprintf(atext,7,
"%d",i+19);
131 if (dist <= markerRadius)
return 0;
132 if (dist > markerRadius+3)
return 999;
169 static Int_t pxold, pyold;
174 if (!
gPad->IsEditable())
return;
187 pxold =
px; pyold =
py;
192 p.
fX = pxold; p.
fY = pyold;
193 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
195 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
196 pxold =
px; pyold =
py;
201 gPad->ShowGuidelines(
this, event,
'i',
true);
214 gPad->ShowGuidelines(
this, event);
217 dpx =
gPad->GetX2() -
gPad->GetX1();
218 dpy =
gPad->GetY2() -
gPad->GetY1();
221 fX = (
gPad->AbsPixeltoX(pxold)-xp1)/dpx;
222 fY = (
gPad->AbsPixeltoY(pyold)-yp1)/dpy;
264 gPad->PaintPolyMarker(-1,&x,&y,
"");
296 out<<
"marker = new TMarker("<<
fX<<
","<<
fY<<
","<<
fMarkerStyle<<
");"<<std::endl;
300 out<<
" marker->Draw();"<<std::endl;
315 void TMarker::Streamer(
TBuffer &R__b)
325 TObject::Streamer(R__b);
326 TAttMarker::Streamer(R__b);
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
virtual void DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
double dist(Rotation3D const &r1, Rotation3D const &r2)
virtual void SetX(Double_t x)
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
virtual void SetBBoxCenter(const TPoint &p)
Set center of the BoundingBox.
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the BoundingBox.
virtual void Draw(Option_t *option="")
Draw this marker with its current attributes.
Buffer base class used for serializing objects.
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the BoundingBox.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void SetTextFont(Font_t tfont=62)
static void DisplayMarkerTypes()
Display the table of markers with their numbers.
Base class for several text objects.
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void PaintMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
virtual void SetTextAlign(Short_t align=11)
virtual void Copy(TObject &object) const
Copy this to obj.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void PaintMarkerNDC(Double_t u, Double_t v)
Draw this marker with new coordinates in NDC.
virtual void Paint(Option_t *option="")
Paint this marker with its current attributes.
virtual void ls(Option_t *option="") const
List this marker with its attributes.
virtual void Modify()
Change current marker attributes if necessary.
void Copy(TObject &marker) const
Copy this marker to marker.
virtual Size_t GetMarkerSize() const
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
virtual Rectangle_t GetBBox()
Return the bounding Box of the Line.
Bool_t TestBit(UInt_t f) const
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetMarkerSize(Size_t msize=1)
virtual ~TMarker()
Marker default destructor.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual void Print(Option_t *option="") const
Dump this marker with its attributes.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
virtual void SetY(Double_t y)
Mother of all ROOT objects.
virtual Color_t GetMarkerColor() const
Abstract base class for elements drawn in the editor.
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a marker.
Double_t Sqrt(Double_t x)
virtual void SetTextSize(Float_t tsize=1)
virtual Style_t GetMarkerStyle() const
virtual TPoint GetBBoxCenter()
Return the center of the BoundingBox as TPoint in pixels.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0