JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RPointMark.hh>
Public Member Functions | |
RPointMark () | |
RPointMark (const double x, const double y, const Int_t m=20) | |
RPointMark (const double p[], const Int_t m=20) | |
RPointMark (const RPoint2D &p, const Int_t m=20) | |
RPointMark (const TMarker &p) | |
RPointMark (const RPointMark &p) | |
RPointMark & | operator= (const RPointMark &p) |
RPointMark & | operator= (const TMarker &p) |
virtual | ~RPointMark () |
virtual | operator RPoint2D (void) const |
Double_t | X () const |
Double_t | Y () const |
Double_t | operator[] (const u_int n) const |
double | DistanceTo (const double x, const double y) |
double | DistanceTo (const TPoints &p) |
double | DistanceTo (const TMarker &p) |
virtual void | SetRootEvents (Bool_t flag=kTRUE) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | Deleted () |
ClassDef (RPointMark, 0) | |
Protected Attributes | |
bool | root_events_flag |
Defines pad events processing by ROOT. | |
Private Member Functions | |
GObject (RPointMark) | |
Class adding functions to TMarker ROOT class.
The following signals are added:
|
inline |
Default constructor: null point (0,0).
References root_events_flag.
|
inline |
Constructor from coordinates.
x | X coordinate |
y | Y coordinate |
m | marker type |
References root_events_flag.
|
inline |
Constructor from coordinates array.
p | coordinates array (at least of size 2) |
m | marker type |
References root_events_flag.
|
inline |
Constructor from 2D point object.
p | point to copy |
m | marker type |
References root_events_flag.
|
inline |
|
inline |
|
inlinevirtual |
Destructor.
References Deleted().
|
private |
Macro from GCpp library that defines the following functions:
RPointMark & RPointMark::operator= | ( | const RPointMark & | p | ) |
Affectation operator.
p | point to copy |
RPointMark & RPointMark::operator= | ( | const TMarker & | p | ) |
Affectation operator.
p | point to copy |
|
inlinevirtual |
Cast operator to a RPoint2D object.
|
inline |
Get X coordinate.
|
inline |
Get Y coordinate.
Double_t RPointMark::operator[] | ( | const u_int | n | ) | const |
Operator []: if index is 0 or 1, returns X or Y, else it causes an error.
n | index |
double RPointMark::DistanceTo | ( | const double | x, |
const double | y | ||
) |
Return the distance between current point and another point (x,y).
x | coordinate |
y | coordinate |
double RPointMark::DistanceTo | ( | const TPoints & | p | ) |
Return the distance between current point and another point p.
p | point |
double RPointMark::DistanceTo | ( | const TMarker & | p | ) |
Return the distance between current point and another point p.
p | point |
|
inlinevirtual |
Indicates whether pad events should be processed.
flag | logic value |
References root_events_flag.
|
virtual |
Overload of the function from the TMarker class, that process system events only if the root_events_flag is set.
event | event identifier |
px | event X position in pad |
py | event Y position in pad |
References root_events_flag.
|
inlinevirtual |
Signal sent at point destruction.
Referenced by ~RPointMark().
RPointMark::ClassDef | ( | RPointMark | , |
0 | |||
) |
For ROOT dictionary.