|
ROOT
Reference Guide |
|
Go to the documentation of this file.
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;
321 printf(
"Marker X=%f Y=%f",
fX,
fY);
338 out<<
"marker = new TMarker("<<
fX<<
","<<
fY<<
","<<
fMarkerStyle<<
");"<<std::endl;
342 out<<
" marker->Draw();"<<std::endl;
357 void TMarker::Streamer(
TBuffer &R__b)
367 TObject::Streamer(R__b);
368 TAttMarker::Streamer(R__b);
400 if (!
gPad)
return (p);
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
virtual void Print(Option_t *option="") const
Dump this marker with its attributes.
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the BoundingBox.
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the BoundingBox.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Rectangle structure (maps to the X11 XRectangle structure)
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
Double_t Sqrt(Double_t x)
@ kMarkerNDC
Marker position is in NDC.
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual void Paint(Option_t *option="")
Paint this marker with its current attributes.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual Style_t GetMarkerStyle() const
Return the marker style.
Buffer base class used for serializing objects.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
Double_t fX
X position of marker (left,center,etc..)
static void DisplayMarkerLineWidths()
Display the table of markers with different line widths and their numbers.
Abstract base class for elements drawn in the editor.
virtual void Draw(Option_t *option="")
Draw this marker with its current attributes.
virtual ~TMarker()
Marker default destructor.
virtual void SetY(Double_t y)
double dist(Rotation3D const &r1, Rotation3D const &r2)
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.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Rectangle_t GetBBox()
Return the bounding Box of the Line.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void ls(Option_t *option="") const
List this marker with its attributes.
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
virtual void Modify()
Change current marker attributes if necessary.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
@ kCanDelete
if object in a list can be deleted
void Copy(TObject &marker) const
Copy this marker to marker.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
virtual void DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Double_t fY
Y position of marker (left,center,etc..)
Base class for several text objects.
virtual void PaintMarkerNDC(Double_t u, Double_t v)
Draw this marker with new coordinates in NDC.
static void DisplayMarkerTypes()
Display the table of markers with 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 SetBBoxCenter(const TPoint &p)
Set center of the BoundingBox.
Mother of all ROOT objects.
virtual void PaintMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
Style_t fMarkerStyle
Marker style.
virtual void Copy(TObject &object) const
Copy this to obj.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetX(Double_t x)
virtual TPoint GetBBoxCenter()
Return the center of the BoundingBox as TPoint in pixels.
Size_t fMarkerSize
Marker size.
TMarker()
Marker default constructor.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.