AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpRowPainter Class Reference

Class for drawing a row into canvas. More...

#include <AliMpRowPainter.h>

Inheritance diagram for AliMpRowPainter:

Public Member Functions

 AliMpRowPainter ()
 
 AliMpRowPainter (AliMpRow *row)
 
virtual ~AliMpRowPainter ()
 
virtual void DumpObject ()
 
virtual void Draw (Option_t *option)
 
virtual void Paint (Option_t *option)
 Paint the associated object. More...
 
virtual TVector2 GetPosition () const
 Return the owned object's position. More...
 
virtual TVector2 GetDimensions () const
 Return the owned object's dimensions. More...
 
- Public Member Functions inherited from AliMpVPainter
 AliMpVPainter ()
 
virtual ~AliMpVPainter ()
 
void DumpObject () const
 
virtual TObject * Clone (const char *newname="") const
 
virtual TObject * DrawClone (Option_t *option) const
 
TVector2 GetPadPosition () const
 Return the position inside the graphics pad. More...
 
TVector2 GetPadDimensions () const
 Return the dimensions inside the graphics pad. More...
 
Int_t GetColor () const
 Return the color. More...
 
void SetPadPosition (const TVector2 &padPosition)
 Set the position inside the graphics pad. More...
 
void SetPadDimension (const TVector2 &padDimensions)
 Set the dimensions inside the graphics pad. More...
 
void SetColor (Int_t color)
 Set the color. More...
 
Bool_t IsInside (const TVector2 &point, const TVector2 &pos, const TVector2 &dim)
 
void InitGraphContext ()
 
void PaintWholeBox (Bool_t fill=kTRUE)
 
virtual Int_t DistancetoPrimitive (Int_t x, Int_t y)
 
TVector2 RealToPad (const TVector2 &realPos)
 

Private Member Functions

 AliMpRowPainter (const AliMpRowPainter &right)
 Not implemented. More...
 
AliMpRowPainteroperator= (const AliMpRowPainter &right)
 Not implemented. More...
 

Private Attributes

AliMpRowfRow
 the row to paint More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMpVPainter
static AliMpVPainterCreatePainter (TObject *object)
 
- Protected Member Functions inherited from AliMpVPainter
void AddPainter (AliMpVPainter *painter)
 Not implemented. More...
 
AliMpVPainterDrawObject (TObject *object, Option_t *option="")
 Not implemented. More...
 

Detailed Description

Class for drawing a row into canvas.

Author
David Guez, IPN Orsay

Definition at line 20 of file AliMpRowPainter.h.

Constructor & Destructor Documentation

AliMpRowPainter::AliMpRowPainter ( )

Default constructor

Definition at line 41 of file AliMpRowPainter.cxx.

AliMpRowPainter::AliMpRowPainter ( AliMpRow row)

Standard constructor

Definition at line 49 of file AliMpRowPainter.cxx.

AliMpRowPainter::~AliMpRowPainter ( )
virtual

Destructor

Definition at line 57 of file AliMpRowPainter.cxx.

AliMpRowPainter::AliMpRowPainter ( const AliMpRowPainter right)
private

Not implemented.

Member Function Documentation

void AliMpRowPainter::Draw ( Option_t *  option)
virtual

Draw the sector on the current pad The first letter of option is treated as follows:

  • case "S" : each row segments are drawn separately
  • case "" : the whole row is drawn at once in both cases, the rest of the option is passed as argument to the Draw function of respectively zone or row objects.

Definition at line 87 of file AliMpRowPainter.cxx.

void AliMpRowPainter::DumpObject ( )
virtual

Draw the owned object

Definition at line 63 of file AliMpRowPainter.cxx.

TVector2 AliMpRowPainter::GetDimensions ( ) const
virtual

Return the owned object's dimensions.

Get the owned object's dimensions

Implements AliMpVPainter.

Definition at line 79 of file AliMpRowPainter.cxx.

TVector2 AliMpRowPainter::GetPosition ( ) const
virtual

Return the owned object's position.

Get the owned object's position

Implements AliMpVPainter.

Definition at line 71 of file AliMpRowPainter.cxx.

AliMpRowPainter& AliMpRowPainter::operator= ( const AliMpRowPainter right)
private

Not implemented.

void AliMpRowPainter::Paint ( Option_t *  option)
virtual

Paint the associated object.

Paint the object

Implements AliMpVPainter.

Definition at line 124 of file AliMpRowPainter.cxx.

Member Data Documentation

AliMpRow* AliMpRowPainter::fRow
private

the row to paint

Definition at line 39 of file AliMpRowPainter.h.

Referenced by Draw(), DumpObject(), GetDimensions(), GetPosition(), and Paint().


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