Fixing a backward compatibility issue
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRowPainter.cxx
index 6e78228..72345b4 100755 (executable)
 // $Id$
 // $MpId: AliMpRowPainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
 // Category: graphics
-//
+
+//-----------------------------------------------------------------------------
 // Class AliMpRowPainter
 // ---------------------
 // Class for drawing a row into canvas
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, IPN Orsay
+//-----------------------------------------------------------------------------
   
 #include "AliMpRowPainter.h"
 #include "AliMpGraphContext.h"
@@ -51,34 +53,12 @@ AliMpRowPainter::AliMpRowPainter(AliMpRow *row)
   /// Standard constructor 
 }
 
-//_____________________________________________________________________________
-AliMpRowPainter::AliMpRowPainter(const AliMpRowPainter& right) 
-  : AliMpVPainter(right) {
-// 
-  /// Protected copy constructor (not provided)
-
-  Fatal("AliMpRowPainter", "Copy constructor not provided.");
-}
-
 //_______________________________________________________________________
 AliMpRowPainter::~AliMpRowPainter()
 {
   /// Destructor
 }
 
-//_____________________________________________________________________________
-AliMpRowPainter& AliMpRowPainter::operator=(const AliMpRowPainter& right)
-{
-  /// Assignment operator (not provided)
-
-  // check assignment to self
-  if (this == &right) return *this;
-
-  Fatal("operator =", "Assignment operator not provided.");
-    
-  return *this;  
-}    
-
 //_______________________________________________________________________
 void AliMpRowPainter::DumpObject()
 {
@@ -92,7 +72,7 @@ TVector2 AliMpRowPainter::GetPosition() const
 {
 /// Get the owned object's position
 
-  return fRow->Position();
+  return TVector2(fRow->GetPositionX(), fRow->GetPositionY());
 }
 
 //_______________________________________________________________________
@@ -100,7 +80,7 @@ TVector2 AliMpRowPainter::GetDimensions() const
 {
 /// Get the owned object's dimensions
 
-  return fRow->Dimensions();
+  return TVector2(fRow->GetDimensionX(), fRow->GetDimensionY());
 }
 
 //_______________________________________________________________________
@@ -127,7 +107,8 @@ void AliMpRowPainter::Draw(Option_t *option)
        AliMpVRowSegment *rowSegment = fRow->GetRowSegment(iRowSeg);
        gr->Push();
 
-       gr->SetPadPosForReal(rowSegment->Position(),rowSegment->Dimensions());
+       gr->SetPadPosForReal(TVector2(rowSegment->GetPositionX(),rowSegment->GetPositionY()),
+                             TVector2(rowSegment->GetDimensionX(),rowSegment->GetDimensionY()));
        DrawObject(rowSegment,option+1);
       
        gr->Pop();