96 for (
Int_t i=1;i<16;i++) {
129 for (
Int_t i=1;i<19;i++) {
172 if (
dist <= markerRadius)
return 0;
173 if (
dist > markerRadius+3)
return 999;
210 static Int_t pxold, pyold;
215 if (!
gPad->IsEditable())
return;
228 pxold = px; pyold = py;
233 p.
fX = pxold; p.
fY = pyold;
234 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
235 p.
fX = px; p.
fY = py;
236 if (!opaque)
gVirtualX->DrawPolyMarker(1, &p);
237 pxold = px; pyold = py;
242 gPad->ShowGuidelines(
this, event,
'i',
true);
255 gPad->ShowGuidelines(
this, event);
258 dpx =
gPad->GetX2() -
gPad->GetX1();
259 dpy =
gPad->GetY2() -
gPad->GetY1();
262 fX = (
gPad->AbsPixeltoX(pxold)-xp1)/dpx;
263 fY = (
gPad->AbsPixeltoY(pyold)-yp1)/dpy;
305 gPad->PaintPolyMarker(-1,&
x,&
y,
"");
320 printf(
"Marker X=%f Y=%f",
fX,
fY);
337 out<<
"marker = new TMarker("<<
fX<<
","<<
fY<<
","<<
fMarkerStyle<<
");"<<std::endl;
341 out<<
" marker->Draw();"<<std::endl;
356void TMarker::Streamer(
TBuffer &R__b)
366 TObject::Streamer(R__b);
367 TAttMarker::Streamer(R__b);
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 SetMarkerSize(Size_t msize=1)
Set the marker size.
Size_t fMarkerSize
Marker size.
Style_t fMarkerStyle
Marker style.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Buffer base class used for serializing objects.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Double_t fX
X position of marker (left,center,etc..)
virtual void SetX(Double_t x)
virtual void SetBBoxCenter(const TPoint &p)
Set center of the BoundingBox.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TMarker()
Marker default constructor.
Double_t fY
Y position of marker (left,center,etc..)
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the BoundingBox.
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
virtual void Print(Option_t *option="") const
Dump this marker with its attributes.
virtual void Paint(Option_t *option="")
Paint this marker with its current attributes.
virtual void SetY(Double_t y)
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual Rectangle_t GetBBox()
Return the bounding Box of the Line.
virtual void Draw(Option_t *option="")
Draw this marker with its current attributes.
@ kMarkerNDC
Marker position is in NDC.
void Copy(TObject &marker) const
Copy this marker to marker.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the BoundingBox.
virtual ~TMarker()
Marker default destructor.
virtual void PaintMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
virtual TPoint GetBBoxCenter()
Return the center of the BoundingBox as TPoint in pixels.
static void DisplayMarkerLineWidths()
Display the table of markers with different line widths and their numbers.
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a marker.
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual void ls(Option_t *option="") const
List this marker with its attributes.
virtual void DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
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 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.
Base class for several text objects.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
double dist(Rotation3D const &r1, Rotation3D const &r2)
Double_t Sqrt(Double_t x)