AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSlatPainter Class Reference

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

#include <AliMpSlatPainter.h>

Inheritance diagram for AliMpSlatPainter:

Public Member Functions

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

 AliMpSlatPainter (const AliMpSlatPainter &right)
 Not implemented. More...
 
AliMpSlatPainteroperator= (const AliMpSlatPainter &right)
 Not implemented. More...
 

Private Attributes

const AliMpSlatfkSlat
 ! pointer to the slat to be drawn 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 slat into canvas.

Class for drawing a slat into canvas

Author
Laurent Aphecetche

Definition at line 22 of file AliMpSlatPainter.h.

Constructor & Destructor Documentation

AliMpSlatPainter::AliMpSlatPainter ( )

Empty ctor.

Definition at line 44 of file AliMpSlatPainter.cxx.

AliMpSlatPainter::AliMpSlatPainter ( const AliMpSlat slat)

Normal ctor.

Definition at line 54 of file AliMpSlatPainter.cxx.

AliMpSlatPainter::~AliMpSlatPainter ( )
virtual

Dtor.

Definition at line 64 of file AliMpSlatPainter.cxx.

AliMpSlatPainter::AliMpSlatPainter ( const AliMpSlatPainter right)
private

Not implemented.

Member Function Documentation

void AliMpSlatPainter::Draw ( Option_t *  option)

Draws the slat.

If option[0] is 'P' then PCB are drawn too.

Definition at line 93 of file AliMpSlatPainter.cxx.

TVector2 AliMpSlatPainter::GetDimensions ( ) const
virtual

Return the owned object's dimensions.

Returns the half-sizes of the slat.

Implements AliMpVPainter.

Definition at line 73 of file AliMpSlatPainter.cxx.

TVector2 AliMpSlatPainter::GetPosition ( ) const
virtual

Return the owned object's position.

Returns the (x,y) position of the slat.

Implements AliMpVPainter.

Definition at line 83 of file AliMpSlatPainter.cxx.

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

Not implemented.

void AliMpSlatPainter::Paint ( Option_t *  option)
virtual

Paint the associated object.

Paint the object.

Implements AliMpVPainter.

Definition at line 135 of file AliMpSlatPainter.cxx.

Member Data Documentation

const AliMpSlat* AliMpSlatPainter::fkSlat
private

! pointer to the slat to be drawn

Definition at line 43 of file AliMpSlatPainter.h.

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


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