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

Class describing the correspondance between a given area in pad, and a zone of real (cm) position. More...

#include <AliMpGraphContext.h>

Inheritance diagram for AliMpGraphContext:

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 AliMpGraphContextInstance ()
 

Protected Member Functions

 AliMpGraphContext (const AliMpGraphContext &right)
 
AliMpGraphContextoperator= (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 AliMpGraphContextfgInstance = 0
 the global instance More...
 
static TObjArray fgStack
 the object stack More...
 
static Int_t fgStackSize = 0
 the object stack size More...
 

Detailed Description

Class describing the correspondance between a given area in pad, and a zone of real (cm) position.

Author
David GUEZ, IPN Orsay

Definition at line 25 of file AliMpGraphContext.h.

Constructor & Destructor Documentation

AliMpGraphContext::AliMpGraphContext ( const AliMpGraphContext right)
protected

Copy constructor

Definition at line 52 of file AliMpGraphContext.cxx.

AliMpGraphContext::AliMpGraphContext ( )
private

static data members

Default constructor (private)

Definition at line 40 of file AliMpGraphContext.cxx.

Referenced by Instance(), and Push().

Member Function Documentation

Int_t AliMpGraphContext::GetColor ( ) const
inline

Return color to use.

Definition at line 59 of file AliMpGraphContext.h.

Referenced by AliMpVPainter::AliMpVPainter(), and AliMpPCBPainter::Draw().

TVector2 AliMpGraphContext::GetPadDimensions ( ) const
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().

TVector2 AliMpGraphContext::GetPadPosition ( ) const
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().

TVector2 AliMpGraphContext::GetRealDimensions ( ) const
inline

Return dimensions of the real area where to draw.

Definition at line 57 of file AliMpGraphContext.h.

TVector2 AliMpGraphContext::GetRealPosition ( ) const
inline

Return position of the real area where to draw.

Definition at line 55 of file AliMpGraphContext.h.

AliMpGraphContext & AliMpGraphContext::operator= ( const AliMpGraphContext right)
protected

Protected assignment operator

Definition at line 65 of file AliMpGraphContext.cxx.

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.

void AliMpGraphContext::SetColor ( Int_t  color)
inline
void AliMpGraphContext::SetPadDimensions ( const TVector2 &  dimensions)
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 
)
void AliMpGraphContext::SetPadPosition ( const TVector2 &  position)
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().

void AliMpGraphContext::SetRealDimensions ( const TVector2 &  dimensions)
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().

void AliMpGraphContext::SetRealPosition ( const TVector2 &  position)
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().

Member Data Documentation

Int_t AliMpGraphContext::fColor
private

color to use

Definition at line 83 of file AliMpGraphContext.h.

Referenced by GetColor(), operator=(), and SetColor().

AliMpGraphContext * AliMpGraphContext::fgInstance = 0
staticprivate

the global instance

Definition at line 78 of file AliMpGraphContext.h.

Referenced by Instance().

TObjArray AliMpGraphContext::fgStack
staticprivate

the object stack

Definition at line 79 of file AliMpGraphContext.h.

Referenced by Pop(), and Push().

Int_t AliMpGraphContext::fgStackSize = 0
staticprivate

the object stack size

Definition at line 80 of file AliMpGraphContext.h.

Referenced by Pop(), and Push().

TVector2 AliMpGraphContext::fPadDimensions
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().

TVector2 AliMpGraphContext::fPadPosition
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().

TVector2 AliMpGraphContext::fRealDimensions
private

Dimensions of the real area to draw.

Definition at line 88 of file AliMpGraphContext.h.

Referenced by GetRealDimensions(), operator=(), RealToPad(), and SetRealDimensions().

TVector2 AliMpGraphContext::fRealPosition
private

Position of the real area to draw.

Definition at line 87 of file AliMpGraphContext.h.

Referenced by GetRealPosition(), operator=(), RealToPad(), and SetRealPosition().


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