86 marker.TMarker::Copy(*
this);
108 text.SetTextFont(62);
109 text.SetTextAlign(22);
110 text.SetTextSize(0.1);
114 for (
Int_t i=1;i<16;i++) {
120 atext.
Form(
"%d",i+19);
124 atext.
Form(
"%d",i+34);
139 text.SetTextFont(62);
140 text.SetTextAlign(22);
141 text.SetTextSize(0.075);
145 for (
Int_t i=1;i<19;i++) {
147 atext.
Form(
"%d",i+49);
151 atext.
Form(
"%d",i+67);
155 atext.
Form(
"%d",i+85);
159 atext.
Form(
"%d",i+103);
178 if (!
gPad)
return 9999;
191 if (dist <= markerRadius)
return 0;
192 if (dist > markerRadius+3)
return 999;
230 static Int_t pxold, pyold;
235 if (!
gPad->IsEditable())
return;
248 pxold = px; pyold = py;
253 p.fX = pxold;
p.fY = pyold;
254 if (!opaque)
gVirtualX->DrawPolyMarker(1, &
p);
255 p.fX = px;
p.fY = py;
256 if (!opaque)
gVirtualX->DrawPolyMarker(1, &
p);
257 pxold = px; pyold = py;
262 gPad->ShowGuidelines(
this, event,
'i',
true);
275 gPad->ShowGuidelines(
this, event);
278 dpx =
gPad->GetX2() -
gPad->GetX1();
279 dpy =
gPad->GetY2() -
gPad->GetY1();
282 fX = (
gPad->AbsPixeltoX(pxold)-xp1)/dpx;
283 fY = (
gPad->AbsPixeltoY(pyold)-yp1)/dpy;
341 printf(
"Marker X=%f Y=%f",
fX,
fY);
358 out<<
"marker = new TMarker("<<
fX<<
","<<
fY<<
","<<
fMarkerStyle<<
");"<<std::endl;
362 out<<
" marker->Draw();"<<std::endl;
407 if (!
gPad)
return BBox;
410 BBox.fWidth = 2*
size;
411 BBox.fHeight = 2*
size;
421 if (!
gPad)
return (
p);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pxm
Option_t Option_t TPoint TPoint const char text
Abstract base class for elements drawn in the editor.
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 Modify()
Change current marker attributes if necessary.
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
virtual void Streamer(TBuffer &)
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Size_t fMarkerSize
Marker size.
Style_t fMarkerStyle
Marker style.
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
void Streamer(TBuffer &) override
Stream an object of class TMarker.
Double_t fX
X position of marker (left,center,etc..)
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
void ls(Option_t *option="") const override
List this marker with its attributes.
virtual void SetX(Double_t x)
void SetBBoxCenterY(const Int_t y) override
Set Y coordinate of the center of the BoundingBox.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
@ kMarkerNDC
Marker position is in NDC.
void Draw(Option_t *option="") override
Draw this marker with its current attributes.
~TMarker() override
Marker default destructor.
TMarker()
Marker default constructor.
Double_t fY
Y position of marker (left,center,etc..)
TPoint GetBBoxCenter() override
Return the center of the BoundingBox as TPoint in pixels.
virtual void SetY(Double_t y)
void SetBBoxCenterX(const Int_t x) override
Set X coordinate of the center of the BoundingBox.
void SetBBoxY1(const Int_t y) override
Set top of BoundingBox to a value (resize in y direction on top)
void SetBBoxY2(const Int_t y) override
Set bottom of BoundingBox to a value (resize in y direction on bottom)
void Copy(TObject &marker) const override
Copy this marker to marker.
void Paint(Option_t *option="") override
Paint this marker with its current attributes.
virtual TMarker * DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
virtual void PaintMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
Rectangle_t GetBBox() override
Return the bounding Box of the Line.
void SetBBoxX1(const Int_t x) override
Set left hand side of BoundingBox to a value (resize in x direction on left)
static void DisplayMarkerLineWidths()
Display the table of markers with different line widths and their numbers.
void Print(Option_t *option="") const override
Dump this marker with its attributes.
void SetBBoxCenter(const TPoint &p) override
Set center of the BoundingBox.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a marker.
void SetBBoxX2(const Int_t x) override
Set right hand side of BoundingBox to a value (resize in x direction on right)
static void DisplayMarkerTypes()
Display the table of markers with their numbers.
virtual void PaintMarkerNDC(Double_t u, Double_t v)
Draw this marker with new coordinates in NDC.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Streamer(TBuffer &)
Stream an object of class TObject.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Copy(TObject &object) const
Copy this to obj.
@ kCanDelete
if object in a list can be deleted
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Base class for several text objects.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Rectangle structure (maps to the X11 XRectangle structure)