// $Id$ // Category: graphics // // Class AliMpRowPainter // --------------------- // Class for drawing a row into canvas // Included in AliRoot: 2003/05/02 // Authors: David Guez, IPN Orsay #include #include #include #include "AliMpRowPainter.h" #include "AliMpGraphContext.h" #include "AliMpRow.h" #include "AliMpRowSegment.h" ClassImp(AliMpRowPainter) //_______________________________________________________________________ AliMpRowPainter::AliMpRowPainter() : AliMpVPainter(), fRow(0) { // default dummy constructor } //_______________________________________________________________________ AliMpRowPainter::AliMpRowPainter(AliMpRow *row) : AliMpVPainter(), fRow(row) { // normal constructor } //_____________________________________________________________________________ AliMpRowPainter::AliMpRowPainter(const AliMpRowPainter& right) : AliMpVPainter(right) { // // copy constructor (not implemented) Fatal("AliMpRowPainter", "Copy constructor not provided."); } //_______________________________________________________________________ AliMpRowPainter::~AliMpRowPainter() { // destructor } //_____________________________________________________________________________ AliMpRowPainter& AliMpRowPainter::operator=(const AliMpRowPainter& right) { // assignement operator (not implemented) // check assignement to self if (this == &right) return *this; Fatal("operator =", "Assignement operator not provided."); return *this; } //_______________________________________________________________________ void AliMpRowPainter::DumpObject() { // Draw the owned object fRow->Dump(); } //_______________________________________________________________________ TVector2 AliMpRowPainter::GetPosition() const { // Get the owned object's position return fRow->Position(); } //_______________________________________________________________________ TVector2 AliMpRowPainter::GetDimensions() const { // Get the owned object's dimensions return fRow->Dimensions(); } //_______________________________________________________________________ void AliMpRowPainter::Draw(Option_t *option) { // Draw the sector on the current pad // The first letter of