![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Abstract base class for drawing objects into canvas. More...
#include <AliMpVPainter.h>
Public Member Functions | |
AliMpVPainter () | |
virtual | ~AliMpVPainter () |
void | DumpObject () const |
virtual void | Paint (Option_t *option)=0 |
Paint the associated object. More... | |
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) |
virtual TVector2 | GetPosition () const =0 |
Return the owned object's position. More... | |
virtual TVector2 | GetDimensions () const =0 |
Return the owned object's dimensions. More... | |
void | InitGraphContext () |
void | PaintWholeBox (Bool_t fill=kTRUE) |
virtual Int_t | DistancetoPrimitive (Int_t x, Int_t y) |
TVector2 | RealToPad (const TVector2 &realPos) |
Static Public Member Functions | |
static AliMpVPainter * | CreatePainter (TObject *object) |
Protected Member Functions | |
void | AddPainter (AliMpVPainter *painter) |
Not implemented. More... | |
AliMpVPainter * | DrawObject (TObject *object, Option_t *option="") |
Not implemented. More... | |
Private Member Functions | |
AliMpVPainter (const AliMpVPainter &right) | |
Not implemented. More... | |
AliMpVPainter & | operator= (const AliMpVPainter &right) |
Not implemented. More... | |
Private Attributes | |
Int_t | fColor |
color More... | |
TVector2 | fPadPosition |
position inside the graphics pad More... | |
TVector2 | fPadDimensions |
dimensions inside the graphics pad More... | |
TList * | fTrashList |
list of painter object created More... | |
Abstract base class for drawing objects into canvas.
Definition at line 21 of file AliMpVPainter.h.
AliMpVPainter::AliMpVPainter | ( | ) |
Default constructor
Definition at line 62 of file AliMpVPainter.cxx.
|
virtual |
Destructor
Definition at line 79 of file AliMpVPainter.cxx.
|
private |
Not implemented.
|
protected |
Not implemented.
Add a painter to the list of painters (private)
Definition at line 202 of file AliMpVPainter.cxx.
Referenced by DrawObject().
|
virtual |
Create a clone of this object
Definition at line 118 of file AliMpVPainter.cxx.
Referenced by DrawClone().
|
static |
Create a new painter, which correspond to the class of object
Definition at line 149 of file AliMpVPainter.cxx.
Referenced by DrawObject(), AliMpDEVisu::DrawQuadrant(), AliMpDEVisu::DrawSlat(), AliMpDEVisu::PopUpManuMotif(), and AliMpDEVisu::PopUpZoom().
|
virtual |
Distance to the center if (x,y) is inside the box defined by (fPadPosition,fPadDimensions) 9999 otherwise
Reimplemented in AliMpZonePainter, and AliMpSubZonePainter.
Definition at line 98 of file AliMpVPainter.cxx.
|
virtual |
Draw the clone object
Definition at line 131 of file AliMpVPainter.cxx.
|
protected |
Not implemented.
Draw the object
Return the AliMpVPainter object created for the drawing
Definition at line 211 of file AliMpVPainter.cxx.
Referenced by AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpZonePainter::Draw(), AliMpRowPainter::Draw(), AliMpRowSegmentPainter::Draw(), and AliMpSlatPainter::Draw().
void AliMpVPainter::DumpObject | ( | ) | const |
Dump the painted object
Definition at line 112 of file AliMpVPainter.cxx.
|
inline |
Return the color.
Definition at line 41 of file AliMpVPainter.h.
Referenced by AliMpRowSegmentPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpSubZonePainter::Paint(), and AliMpZonePainter::Paint().
|
pure virtual |
Return the owned object's dimensions.
Implemented in AliMpIteratorPainter, AliMpZonePainter, AliMpMotifPainter, AliMpSubZonePainter, AliMpRowPainter, AliMpRowSegmentPainter, AliMpSectorPainter, AliMpPCBPainter, and AliMpSlatPainter.
Referenced by InitGraphContext(), and RealToPad().
|
inline |
Return the dimensions inside the graphics pad.
Definition at line 39 of file AliMpVPainter.h.
|
inline |
Return the position inside the graphics pad.
Definition at line 37 of file AliMpVPainter.h.
Referenced by AliMpRowPainter::Paint(), and AliMpMotifPainter::Paint().
|
pure virtual |
Return the owned object's position.
Implemented in AliMpIteratorPainter, AliMpZonePainter, AliMpMotifPainter, AliMpPCBPainter, AliMpSlatPainter, AliMpSubZonePainter, AliMpRowPainter, AliMpRowSegmentPainter, and AliMpSectorPainter.
Referenced by InitGraphContext(), and RealToPad().
void AliMpVPainter::InitGraphContext | ( | ) |
Set the pad and real area of the graphic context to the one stored in this painter
Definition at line 226 of file AliMpVPainter.cxx.
Referenced by AliMpSubZonePainter::DistancetoPrimitive(), AliMpZonePainter::DistancetoPrimitive(), AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpZonePainter::Draw(), AliMpRowSegmentPainter::Draw(), AliMpRowPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpIteratorPainter::Draw(), AliMpSlatPainter::Draw(), AliMpPCBPainter::Paint(), AliMpSectorPainter::Paint(), AliMpSubZonePainter::Paint(), AliMpZonePainter::Paint(), AliMpRowSegmentPainter::Paint(), AliMpRowPainter::Paint(), AliMpMotifPainter::Paint(), AliMpIteratorPainter::Paint(), and AliMpSlatPainter::Paint().
Bool_t AliMpVPainter::IsInside | ( | const TVector2 & | point, |
const TVector2 & | pos, | ||
const TVector2 & | dim | ||
) |
Is the point point inside the area (pos,dim)?
Definition at line 90 of file AliMpVPainter.cxx.
Referenced by AliMpSubZonePainter::DistancetoPrimitive(), AliMpZonePainter::DistancetoPrimitive(), and DistancetoPrimitive().
|
private |
Not implemented.
|
pure virtual |
Paint the associated object.
Implemented in AliMpSlatPainter, AliMpIteratorPainter, AliMpMotifPainter, AliMpRowPainter, AliMpRowSegmentPainter, AliMpSubZonePainter, AliMpZonePainter, AliMpPCBPainter, and AliMpSectorPainter.
void AliMpVPainter::PaintWholeBox | ( | Bool_t | fill = kTRUE | ) |
Paint the box around the total pad area given in this painter fill it or bnot following the parameter value
Definition at line 242 of file AliMpVPainter.cxx.
Referenced by AliMpPCBPainter::Paint(), AliMpRowSegmentPainter::Paint(), AliMpRowPainter::Paint(), AliMpMotifPainter::Paint(), and AliMpSlatPainter::Paint().
TVector2 AliMpVPainter::RealToPad | ( | const TVector2 & | realPos | ) |
Transform a real position into its equivalent position in a canvas
Definition at line 262 of file AliMpVPainter.cxx.
|
inline |
Set the color.
Definition at line 51 of file AliMpVPainter.h.
|
inline |
Set the dimensions inside the graphics pad.
Definition at line 49 of file AliMpVPainter.h.
|
inline |
Set the position inside the graphics pad.
Definition at line 47 of file AliMpVPainter.h.
|
private |
color
Definition at line 80 of file AliMpVPainter.h.
Referenced by GetColor(), InitGraphContext(), and SetColor().
|
private |
dimensions inside the graphics pad
Definition at line 82 of file AliMpVPainter.h.
Referenced by Clone(), DistancetoPrimitive(), GetPadDimensions(), InitGraphContext(), PaintWholeBox(), RealToPad(), and SetPadDimension().
|
private |
position inside the graphics pad
Definition at line 81 of file AliMpVPainter.h.
Referenced by Clone(), DistancetoPrimitive(), GetPadPosition(), InitGraphContext(), PaintWholeBox(), RealToPad(), and SetPadPosition().
|
private |
list of painter object created
Definition at line 83 of file AliMpVPainter.h.
Referenced by AddPainter(), and ~AliMpVPainter().