AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpZonePainter Class Reference

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

#include <AliMpZonePainter.h>

Inheritance diagram for AliMpZonePainter:

Public Member Functions

 AliMpZonePainter ()
 
 AliMpZonePainter (AliMpZone *zone)
 
virtual ~AliMpZonePainter ()
 
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...
 
virtual Int_t DistancetoPrimitive (Int_t x, Int_t y)
 
- 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)
 
TVector2 RealToPad (const TVector2 &realPos)
 

Private Member Functions

 AliMpZonePainter (const AliMpZonePainter &right)
 Not implemented. More...
 
AliMpZonePainteroperator= (const AliMpZonePainter &right)
 Not implemented. More...
 

Private Attributes

AliMpZonefZone
 the zone to draw 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 zone into canvas.

Author
David Guez, IPN Orsay

Definition at line 20 of file AliMpZonePainter.h.

Constructor & Destructor Documentation

AliMpZonePainter::AliMpZonePainter ( )

Default constructor

Definition at line 42 of file AliMpZonePainter.cxx.

AliMpZonePainter::AliMpZonePainter ( AliMpZone zone)

Standard constructor

Definition at line 50 of file AliMpZonePainter.cxx.

AliMpZonePainter::~AliMpZonePainter ( )
virtual

Destructor

Definition at line 59 of file AliMpZonePainter.cxx.

AliMpZonePainter::AliMpZonePainter ( const AliMpZonePainter right)
private

Not implemented.

Member Function Documentation

Int_t AliMpZonePainter::DistancetoPrimitive ( Int_t  x,
Int_t  y 
)
virtual

Distance to the nearest segment center if (x,y) is inside the zone 9999 otherwise

Reimplemented from AliMpVPainter.

Definition at line 65 of file AliMpZonePainter.cxx.

void AliMpZonePainter::Draw ( Option_t *  option)
virtual

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

  • case "S" : each sub zones are drawn separately
  • case "" : the whole zone 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 171 of file AliMpZonePainter.cxx.

void AliMpZonePainter::DumpObject ( )
virtual

Dump the owned object

Definition at line 101 of file AliMpZonePainter.cxx.

TVector2 AliMpZonePainter::GetDimensions ( ) const
virtual

Return the owned object's dimensions.

Implements AliMpVPainter.

Definition at line 140 of file AliMpZonePainter.cxx.

TVector2 AliMpZonePainter::GetPosition ( ) const
virtual

Return the owned object's position.

Implements AliMpVPainter.

Definition at line 109 of file AliMpZonePainter.cxx.

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

Not implemented.

void AliMpZonePainter::Paint ( Option_t *  option)
virtual

Paint the associated object.

Implements AliMpVPainter.

Definition at line 226 of file AliMpZonePainter.cxx.

Member Data Documentation

AliMpZone* AliMpZonePainter::fZone
private

the zone to draw

Definition at line 42 of file AliMpZonePainter.h.

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


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