// $Id$ // Category: graphics // // Class AliMpRowSegmentPainter // ---------------------------- // Class for drawing a motif into canvas // // Authors: David Guez, IPN Orsay #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 } //_______________________________________________________________________ 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