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

Painter for a group of pads defined by an iterator. More...

#include <AliMpIteratorPainter.h>

Inheritance diagram for AliMpIteratorPainter:

Public Member Functions

 AliMpIteratorPainter (AliMpVPadIterator *it)
 
virtual ~AliMpIteratorPainter ()
 
void Draw (Option_t *option)
 
void Paint (Option_t *option)
 Paint the associated object. More...
 
TVector2 GetDimensions () const
 Return the owned object's dimensions. More...
 
TVector2 GetPosition () const
 Return the owned object's position. 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

 AliMpIteratorPainter ()
 Not implemented. More...
 
 AliMpIteratorPainter (const AliMpIteratorPainter &)
 Not implemented. More...
 
AliMpIteratorPainteroperator= (const AliMpIteratorPainter &)
 Not implemented. More...
 

Private Attributes

TObjArrayfPads
 ! pads of the iterator More...
 
TVector2 fPosition
 ! position More...
 
TVector2 fDimensions
 ! dimension 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

Painter for a group of pads defined by an iterator.

A painter for a group of pads, which is defined by an iterator

Author
L. Aphecetche

Definition at line 26 of file AliMpIteratorPainter.h.

Constructor & Destructor Documentation

AliMpIteratorPainter::AliMpIteratorPainter ( AliMpVPadIterator it)

Ctor. Iterator must not be null.

Definition at line 46 of file AliMpIteratorPainter.cxx.

AliMpIteratorPainter::~AliMpIteratorPainter ( )
virtual

dtor

Definition at line 81 of file AliMpIteratorPainter.cxx.

AliMpIteratorPainter::AliMpIteratorPainter ( )
private

Not implemented.

AliMpIteratorPainter::AliMpIteratorPainter ( const AliMpIteratorPainter )
private

Not implemented.

Member Function Documentation

void AliMpIteratorPainter::Draw ( Option_t *  option)

Append ourselves to the current graphic pad

Definition at line 89 of file AliMpIteratorPainter.cxx.

TVector2 AliMpIteratorPainter::GetDimensions ( ) const
inlinevirtual

Return the owned object's dimensions.

Implements AliMpVPainter.

Definition at line 35 of file AliMpIteratorPainter.h.

Referenced by Draw().

TVector2 AliMpIteratorPainter::GetPosition ( ) const
inlinevirtual

Return the owned object's position.

Implements AliMpVPainter.

Definition at line 36 of file AliMpIteratorPainter.h.

Referenced by Draw().

AliMpIteratorPainter& AliMpIteratorPainter::operator= ( const AliMpIteratorPainter )
private

Not implemented.

void AliMpIteratorPainter::Paint ( Option_t *  option)
virtual

Paint the associated object.

Actual drawing method

Implements AliMpVPainter.

Definition at line 102 of file AliMpIteratorPainter.cxx.

Member Data Documentation

TVector2 AliMpIteratorPainter::fDimensions
private

! dimension

Definition at line 48 of file AliMpIteratorPainter.h.

Referenced by GetDimensions().

TObjArray* AliMpIteratorPainter::fPads
private

! pads of the iterator

Definition at line 46 of file AliMpIteratorPainter.h.

Referenced by Paint(), and ~AliMpIteratorPainter().

TVector2 AliMpIteratorPainter::fPosition
private

! position

Definition at line 47 of file AliMpIteratorPainter.h.

Referenced by GetPosition().


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