**************************************************************************/
// $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)
: AliMpVPainter(), fPCB(pcb)
{
- //
- // Default ctor.
- //
+ ///
+ /// Default ctor.
+ ///
}
//_____________________________________________________________________________
AliMpPCBPainter::~AliMpPCBPainter()
{
- //
- // Dtor.
- //
+ ///
+ /// Dtor.
+ ///
}
//_____________________________________________________________________________
TVector2
AliMpPCBPainter::GetDimensions() const
{
- //
- // Returns the half-sizes of the PCB.
- //
+ ///
+ /// Returns the half-sizes of the PCB.
+ ///
return TVector2(fPCB->DX(),fPCB->DY());
}
TVector2
AliMpPCBPainter::GetPosition() const
{
- //
- // Returns the (x,y) position of the PCB.
- //
+ ///
+ /// Returns the (x,y) position of the PCB.
+ ///
return TVector2(fPCB->X(),fPCB->Y());
}
void
AliMpPCBPainter::Draw(Option_t* option)
{
- //
- // Draws the PCB.
- //
+ ///
+ /// Draws the PCB.
+ ///
AliMpGraphContext *gr = AliMpGraphContext::Instance();
if (!fPCB) return;
switch (option[0])
{
case 'M':
- for ( AliMpPCB::Size_t i = 0; i < fPCB->GetSize(); ++i )
+ for ( Int_t i = 0; i < fPCB->GetSize(); ++i )
{
AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
void
AliMpPCBPainter::Paint(Option_t* /*option*/)
{
- //
- // Paint the object.
- //
+ ///
+ /// Paint the object.
+ ///
AliMpGraphContext* gr = AliMpGraphContext::Instance();
if (!fPCB) return;
Int_t col=gVirtualX->GetFillColor();