96 for (
Int_t i=1;i<16;i++) {
135 if (dist <= markerRadius)
return 0;
136 if (dist > markerRadius+3)
return 999;
173 static Int_t pxold, pyold;
178 if (!
gPad->IsEditable())
return;
191 pxold = px; pyold = py;
196 p.
fX = pxold; p.
fY = pyold;
197 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
198 p.
fX = px; p.
fY = py;
199 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
200 pxold = px; pyold = py;
205 gPad->ShowGuidelines(
this, event,
'i',
true);
218 gPad->ShowGuidelines(
this, event);
221 dpx =
gPad->GetX2() -
gPad->GetX1();
222 dpy =
gPad->GetY2() -
gPad->GetY1();
225 fX = (
gPad->AbsPixeltoX(pxold)-xp1)/dpx;
226 fY = (
gPad->AbsPixeltoY(pyold)-yp1)/dpy;
268 gPad->PaintPolyMarker(-1,&x,&y,
"");
283 printf(
"Marker X=%f Y=%f",
fX,
fY);
300 out<<
"marker = new TMarker("<<
fX<<
","<<
fY<<
","<<
fMarkerStyle<<
");"<<std::endl;
304 out<<
" marker->Draw();"<<std::endl;
319 void TMarker::Streamer(
TBuffer &R__b)
329 TObject::Streamer(R__b);
330 TAttMarker::Streamer(R__b);
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
TMarker()
Marker default constructor.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
virtual void Print(Option_t *option="") const
Dump this marker with its attributes.
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.
Double_t fX
X position of marker (left,center,etc..)
Marker position is in NDC.
virtual void Draw(Option_t *option="")
Draw this marker with its current attributes.
Buffer base class used for serializing objects.
Size_t fMarkerSize
Marker size.
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
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.
if object in a list can be deleted
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void Copy(TObject &object) const
Copy this to obj.
static void DisplayMarkerTypes()
Display the table of markers with their numbers.
virtual Size_t GetMarkerSize() const
Return the marker size.
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)
Set the text alignment.
Style_t fMarkerStyle
Marker style.
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 Modify()
Change current marker attributes if necessary.
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.
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual ~TMarker()
Marker default destructor.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
void Copy(TObject &marker) const
Copy this marker to marker.
virtual void SetY(Double_t y)
Mother of all ROOT objects.
virtual void ls(Option_t *option="") const
List this marker with its attributes.
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.
Double_t fY
Y position of marker (left,center,etc..)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a marker.
virtual Color_t GetMarkerColor() const
Return the marker color.
Double_t Sqrt(Double_t x)
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
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