Updated comments for Doxygen - corrected warnings
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPCBPainter.cxx
index 555779a..7b73242 100644 (file)
  **************************************************************************/
 
 // $Id$
-// $MpId: AliMpPCBPainter.cxx,v 1.4 2005/09/19 18:56:46 ivana Exp $
-// Category: graphics
-//
-// Class AliMpSlatPainter
-// -----------------------
-// Class for drawing a PCB into canvas
-// Authors: Laurent Aphecetche
+// $MpId: AliMpPCBPainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
+
+///
+/// \class AliMpPCBPainter
+/// 
+/// Class for drawing a PCB into canvas
+/// 
+/// \author L. Aphecetche
 
 #include "AliMpPCBPainter.h"
 
 #include "AliMpMotifPosition.h"
 #include "AliMpPCB.h"
 
+#include "AliLog.h"
+
 #include "TVirtualX.h"
 #include "TPad.h"
 
 #include <iostream>
 
+/// \cond CLASSIMP
 ClassImp(AliMpPCBPainter)
+/// \endcond
 
 //_____________________________________________________________________________
 AliMpPCBPainter::AliMpPCBPainter(AliMpPCB* pcb)
@@ -44,6 +49,15 @@ AliMpPCBPainter::AliMpPCBPainter(AliMpPCB* pcb)
     //
 }
 
+//______________________________________________________________________________
+AliMpPCBPainter::AliMpPCBPainter(const AliMpPCBPainter& right) 
+  : AliMpVPainter(right) 
+{  
+/// Protected copy constructor (not implemented)
+
+  AliFatal("Copy constructor not provided.");
+}
+
 //_____________________________________________________________________________
 AliMpPCBPainter::~AliMpPCBPainter()
 {
@@ -52,6 +66,20 @@ AliMpPCBPainter::~AliMpPCBPainter()
   //
 }
 
+//______________________________________________________________________________
+AliMpPCBPainter& 
+AliMpPCBPainter::operator=(const AliMpPCBPainter& right)
+{
+/// Protected assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  AliFatal("Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_____________________________________________________________________________
 TVector2
 AliMpPCBPainter::GetDimensions() const
@@ -85,42 +113,27 @@ AliMpPCBPainter::Draw(Option_t* option)
   gr->Push();
   InitGraphContext();
 
-  std::cout << "PCB Position and Dimensions:" << std::endl;
-  GetPosition().Print();
-  GetDimensions().Print();
-
   switch (option[0])
-    {
+  {
     case 'M':
       for ( AliMpPCB::Size_t i = 0; i < fPCB->GetSize(); ++i )
-       {
-         AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
-         
-         gr->Push();
-         gr->SetPadPosForReal(pos->Position(),
-                              pos->Dimensions());
-         //      
-         std::cout << "Motif Position " << pos->GetID()
-                   << std::endl;
-         pos->GetMotif()->Print("");
-         std::cout << "Motif dimension:" << std::endl;
-         pos->GetMotif()->Dimensions().Print();
-         std::cout << "MotifPosition position:" << std::endl;
-         pos->Position().Print();
-         std::cout << "MotifPosition dimensions:" << std::endl;
-         pos->Dimensions().Print();
-         //      int id = atoi(pos->GetMotif()->GetID().Data());
-         gr->SetColor(2+i%7);
-         
-         DrawObject(pos,option+1);
-         
-         gr->Pop();
-       }
+      {
+        AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
+        
+        gr->Push();
+        gr->SetPadPosForReal(pos->Position(),
+                             pos->Dimensions());
+        gr->SetColor(gr->GetColor()+i);
+        
+        DrawObject(pos,option+1);
+        
+        gr->Pop();
+      }
       break;
     default:
       AppendPad(option);
-    }
-
+  }
+  
   gr->Pop();
 }