/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // $Id$ // $MpId: AliMpRowSegmentPainter.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $ // 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 constructor } //_______________________________________________________________________ AliMpRowSegmentPainter::AliMpRowSegmentPainter(AliMpVRowSegment *row) : AliMpVPainter(), fRowSegment(row) { /// Standard constructor } //_____________________________________________________________________________ AliMpRowSegmentPainter::AliMpRowSegmentPainter( const AliMpRowSegmentPainter& right) : AliMpVPainter(right) { /// Protected copy constructor (not provided) Fatal("AliMpRowSegmentPainter", "Copy constructor not provided."); } //_______________________________________________________________________ AliMpRowSegmentPainter::~AliMpRowSegmentPainter() { /// Destructor } //_____________________________________________________________________________ AliMpRowSegmentPainter& AliMpRowSegmentPainter::operator=(const AliMpRowSegmentPainter& right) { /// Assignment operator (not provided) // check assignment to self if (this == &right) return *this; Fatal("operator =", "Assignment 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