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