JG ROOT Tools libraries  version 5.0 - august 2014
RPointMark Class Reference

#include <RPointMark.hh>

Inheritance diagram for RPointMark:

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)
 
RPointMarkoperator= (const RPointMark &p)
 
RPointMarkoperator= (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)
 

Detailed Description

Class adding functions to TMarker ROOT class.

The following signals are added:

  • deleted()

Constructor & Destructor Documentation

RPointMark::RPointMark ( )
inline

Default constructor: null point (0,0).

References root_events_flag.

RPointMark::RPointMark ( const double  x,
const double  y,
const Int_t  m = 20 
)
inline

Constructor from coordinates.

Parameters
xX coordinate
yY coordinate
mmarker type

References root_events_flag.

RPointMark::RPointMark ( const double  p[],
const Int_t  m = 20 
)
inline

Constructor from coordinates array.

Parameters
pcoordinates array (at least of size 2)
mmarker type

References root_events_flag.

RPointMark::RPointMark ( const RPoint2D p,
const Int_t  m = 20 
)
inline

Constructor from 2D point object.

Parameters
ppoint to copy
mmarker type

References root_events_flag.

RPointMark::RPointMark ( const TMarker &  p)
inline

Constructor from TMarker object.

Parameters
ppoint to copy

References root_events_flag.

RPointMark::RPointMark ( const RPointMark p)
inline

Copy constructor.

Parameters
ppoint to copy

References root_events_flag.

RPointMark::~RPointMark ( )
inlinevirtual

Destructor.

References Deleted().

Member Function Documentation

RPointMark::GObject ( RPointMark  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RPointMark & RPointMark::operator= ( const RPointMark p)

Affectation operator.

Parameters
ppoint to copy
RPointMark & RPointMark::operator= ( const TMarker &  p)

Affectation operator.

Parameters
ppoint to copy
RPointMark::operator RPoint2D ( void  ) const
inlinevirtual

Cast operator to a RPoint2D object.

Double_t RPointMark::X ( ) const
inline

Get X coordinate.

Double_t RPointMark::Y ( ) const
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.

Parameters
nindex
double RPointMark::DistanceTo ( const double  x,
const double  y 
)

Return the distance between current point and another point (x,y).

Parameters
xcoordinate
ycoordinate
double RPointMark::DistanceTo ( const TPoints &  p)

Return the distance between current point and another point p.

Parameters
ppoint
double RPointMark::DistanceTo ( const TMarker &  p)

Return the distance between current point and another point p.

Parameters
ppoint
void RPointMark::SetRootEvents ( Bool_t  flag = kTRUE)
inlinevirtual

Indicates whether pad events should be processed.

Parameters
flaglogic value

References root_events_flag.

void RPointMark::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Overload of the function from the TMarker class, that process system events only if the root_events_flag is set.

Parameters
eventevent identifier
pxevent X position in pad
pyevent Y position in pad

References root_events_flag.

void RPointMark::Deleted ( )
inlinevirtual

Signal sent at point destruction.

Referenced by ~RPointMark().

RPointMark::ClassDef ( RPointMark  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: