![]() |
AliRoot Core
v5-06-15 (45dab64)
|
Class describing the correspondance between a given area in pad, and a zone of real (cm) position. More...
#include <AliMpGraphContext.h>
Public Member Functions | |
void | Push () const |
void | Pop () |
void | SetPadPosition (const TVector2 &position) |
Set position of the pad area where to draw. More... | |
void | SetPadDimensions (const TVector2 &dimensions) |
Set dimensions of the pad area where to draw. More... | |
void | SetRealPosition (const TVector2 &position) |
Set position of the real area where to draw. More... | |
void | SetRealDimensions (const TVector2 &dimensions) |
Set dimensions of the real area where to draw. More... | |
void | SetColor (Int_t color) |
Set color to use. More... | |
TVector2 | GetPadPosition () const |
Return position of the pad area where to draw. More... | |
TVector2 | GetPadDimensions () const |
Return dimensions of the pad area where to draw. More... | |
TVector2 | GetRealPosition () const |
Return position of the real area where to draw. More... | |
TVector2 | GetRealDimensions () const |
Return dimensions of the real area where to draw. More... | |
Int_t | GetColor () const |
Return color to use. More... | |
TVector2 | RealToPad (const TVector2 &position) const |
void | RealToPad (const TVector2 &position, const TVector2 &dimensions, TVector2 &padPosition, TVector2 &padDimensions) const |
void | SetPadPosForReal (const TVector2 &position, const TVector2 &dimensions) |
Static Public Member Functions | |
static AliMpGraphContext * | Instance () |
Protected Member Functions | |
AliMpGraphContext (const AliMpGraphContext &right) | |
AliMpGraphContext & | operator= (const AliMpGraphContext &right) |
Private Member Functions | |
AliMpGraphContext () | |
static data members More... | |
Private Attributes | |
Int_t | fColor |
color to use More... | |
TVector2 | fPadPosition |
Position of the pad area where to draw. More... | |
TVector2 | fPadDimensions |
Dimensions of the pad area where to draw. More... | |
TVector2 | fRealPosition |
Position of the real area to draw. More... | |
TVector2 | fRealDimensions |
Dimensions of the real area to draw. More... | |
Static Private Attributes | |
static AliMpGraphContext * | fgInstance = 0 |
the global instance More... | |
static TObjArray | fgStack |
the object stack More... | |
static Int_t | fgStackSize = 0 |
the object stack size More... | |
Class describing the correspondance between a given area in pad, and a zone of real (cm) position.
Definition at line 25 of file AliMpGraphContext.h.
|
protected |
Copy constructor
Definition at line 52 of file AliMpGraphContext.cxx.
|
private |
static data members
Default constructor (private)
Definition at line 40 of file AliMpGraphContext.cxx.
Referenced by Instance(), and Push().
|
inline |
Return color to use.
Definition at line 59 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::AliMpVPainter(), and AliMpPCBPainter::Draw().
|
inline |
Return dimensions of the pad area where to draw.
Definition at line 53 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::AliMpVPainter(), and AliMpVPainter::Clone().
|
inline |
Return position of the pad area where to draw.
Definition at line 51 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::AliMpVPainter(), and AliMpVPainter::Clone().
|
inline |
Return dimensions of the real area where to draw.
Definition at line 57 of file AliMpGraphContext.h.
|
inline |
Return position of the real area where to draw.
Definition at line 55 of file AliMpGraphContext.h.
|
static |
Return or create a unique instance of this class
Definition at line 82 of file AliMpGraphContext.cxx.
Referenced by AliMpVPainter::AliMpVPainter(), AliMpVPainter::Clone(), AliMpSubZonePainter::DistancetoPrimitive(), AliMpZonePainter::DistancetoPrimitive(), AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpZonePainter::Draw(), AliMpRowSegmentPainter::Draw(), AliMpRowPainter::Draw(), AliMpIteratorPainter::Draw(), AliMpSlatPainter::Draw(), AliMpVPainter::InitGraphContext(), AliMpSectorPainter::Paint(), AliMpPCBPainter::Paint(), AliMpSubZonePainter::Paint(), AliMpRowSegmentPainter::Paint(), AliMpRowPainter::Paint(), AliMpZonePainter::Paint(), AliMpMotifPainter::Paint(), AliMpIteratorPainter::Paint(), AliMpSlatPainter::Paint(), AliMpMotifPainter::PaintContour(), and AliMpVPainter::RealToPad().
|
protected |
Protected assignment operator
Definition at line 65 of file AliMpGraphContext.cxx.
void AliMpGraphContext::Pop | ( | ) |
Pop an object from the stack.
Definition at line 148 of file AliMpGraphContext.cxx.
Referenced by AliMpSubZonePainter::DistancetoPrimitive(), AliMpZonePainter::DistancetoPrimitive(), AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpRowPainter::Draw(), AliMpZonePainter::Draw(), AliMpRowSegmentPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpIteratorPainter::Draw(), AliMpSlatPainter::Draw(), AliMpPCBPainter::Paint(), AliMpSectorPainter::Paint(), AliMpZonePainter::Paint(), AliMpRowPainter::Paint(), AliMpSubZonePainter::Paint(), AliMpRowSegmentPainter::Paint(), AliMpMotifPainter::Paint(), AliMpSlatPainter::Paint(), and AliMpVPainter::RealToPad().
void AliMpGraphContext::Push | ( | ) | const |
Store the current configuration
Definition at line 138 of file AliMpGraphContext.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(), AliMpRowSegmentPainter::Paint(), AliMpZonePainter::Paint(), AliMpRowPainter::Paint(), AliMpMotifPainter::Paint(), AliMpIteratorPainter::Paint(), AliMpSlatPainter::Paint(), and AliMpVPainter::RealToPad().
TVector2 AliMpGraphContext::RealToPad | ( | const TVector2 & | position | ) | const |
Transform a real position into its equivalent position in the pad
Definition at line 92 of file AliMpGraphContext.cxx.
Referenced by AliMpSubZonePainter::DistancetoPrimitive(), AliMpZonePainter::DistancetoPrimitive(), AliMpSectorPainter::Paint(), AliMpZonePainter::Paint(), AliMpSubZonePainter::Paint(), AliMpMotifPainter::Paint(), AliMpIteratorPainter::Paint(), AliMpMotifPainter::PaintContour(), RealToPad(), AliMpVPainter::RealToPad(), and SetPadPosForReal().
void AliMpGraphContext::RealToPad | ( | const TVector2 & | position, |
const TVector2 & | dimensions, | ||
TVector2 & | padPosition, | ||
TVector2 & | padDimensions | ||
) | const |
Transform the real area (position,dimensions) to its equivalent pad area
Definition at line 112 of file AliMpGraphContext.cxx.
|
inline |
Set color to use.
Definition at line 44 of file AliMpGraphContext.h.
Referenced by AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpRowSegmentPainter::Draw(), AliMpZonePainter::Draw(), and AliMpSlatPainter::Draw().
|
inline |
Set dimensions of the pad area where to draw.
Definition at line 38 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::InitGraphContext(), and AliMpVPainter::RealToPad().
void AliMpGraphContext::SetPadPosForReal | ( | const TVector2 & | position, |
const TVector2 & | dimensions | ||
) |
Set the pad area from the actual one corresponding to the given real area.
Definition at line 128 of file AliMpGraphContext.cxx.
Referenced by AliMpPCBPainter::Draw(), AliMpSectorPainter::Draw(), AliMpSubZonePainter::Draw(), AliMpZonePainter::Draw(), AliMpRowSegmentPainter::Draw(), AliMpRowPainter::Draw(), AliMpIteratorPainter::Draw(), and AliMpSlatPainter::Draw().
|
inline |
Set position of the pad area where to draw.
Definition at line 36 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::InitGraphContext(), and AliMpVPainter::RealToPad().
|
inline |
Set dimensions of the real area where to draw.
Definition at line 42 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::InitGraphContext(), and AliMpVPainter::RealToPad().
|
inline |
Set position of the real area where to draw.
Definition at line 40 of file AliMpGraphContext.h.
Referenced by AliMpVPainter::InitGraphContext(), and AliMpVPainter::RealToPad().
|
private |
color to use
Definition at line 83 of file AliMpGraphContext.h.
Referenced by GetColor(), operator=(), and SetColor().
|
staticprivate |
|
staticprivate |
the object stack
Definition at line 79 of file AliMpGraphContext.h.
|
staticprivate |
the object stack size
Definition at line 80 of file AliMpGraphContext.h.
|
private |
Dimensions of the pad area where to draw.
Definition at line 85 of file AliMpGraphContext.h.
Referenced by GetPadDimensions(), operator=(), RealToPad(), SetPadDimensions(), and SetPadPosForReal().
|
private |
Position of the pad area where to draw.
Definition at line 84 of file AliMpGraphContext.h.
Referenced by GetPadPosition(), operator=(), RealToPad(), SetPadPosForReal(), and SetPadPosition().
|
private |
Dimensions of the real area to draw.
Definition at line 88 of file AliMpGraphContext.h.
Referenced by GetRealDimensions(), operator=(), RealToPad(), and SetRealDimensions().
|
private |
Position of the real area to draw.
Definition at line 87 of file AliMpGraphContext.h.
Referenced by GetRealPosition(), operator=(), RealToPad(), and SetRealPosition().