**************************************************************************/
// $Id$
-// $MpId: AliMpSectorPainter.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $
-//
+// $MpId: AliMpSectorPainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
+
+//-----------------------------------------------------------------------------
// Class AliMpSectorPainter
// ------------------------
// Class for drawing a sector into canvas
// Included in AliRoot: 2003/05/02
// Authors: David Guez, IPN Orsay
+//-----------------------------------------------------------------------------
-#include <TVirtualX.h>
-#include <TPad.h>
-#include <TError.h>
-
#include "AliMpSectorPainter.h"
#include "AliMpGraphContext.h"
#include "AliMpSector.h"
#include "AliMpRow.h"
#include "AliMpVRowSegment.h"
+#include <TVirtualX.h>
+#include <TPad.h>
+
+/// \cond CLASSIMP
ClassImp(AliMpSectorPainter)
+/// \endcond
//_______________________________________________________________________
AliMpSectorPainter::AliMpSectorPainter()
}
-//_____________________________________________________________________________
-AliMpSectorPainter::AliMpSectorPainter(const AliMpSectorPainter& right)
- : AliMpVPainter(right)
-{
- /// Protected copy constructor (not provided)
-
- Fatal("AliMpSectorPainter", "Copy constructor not provided.");
-}
-
//_______________________________________________________________________
AliMpSectorPainter::~AliMpSectorPainter()
{
/// Destructor
}
-//_____________________________________________________________________________
-AliMpSectorPainter&
-AliMpSectorPainter::operator=(const AliMpSectorPainter& right)
-{
- /// Assignment operator (not provided)
-
- // check assignment to self
- if (this == &right) return *this;
-
- Fatal("operator =", "Assignment operator not provided.");
-
- return *this;
-}
-
//_______________________________________________________________________
void AliMpSectorPainter::DumpObject()
{
-//// Draw the owned object
+/// Draw the owned object
fSector->Dump();
}
//_______________________________________________________________________
TVector2 AliMpSectorPainter::GetPosition() const
{
-//// Get the owned object's position
+/// Get the owned object's position
if (fSector->GetNofRows()<1) return TVector2(0.,0.);
AliMpRow* row = fSector->GetRow(0);
//_______________________________________________________________________
TVector2 AliMpSectorPainter::GetDimensions() const
{
-//// Get the owned object's dimensions
+/// Get the owned object's dimensions
if (fSector->GetNofRows()<1) return TVector2(0.,0.);
AliMpRow* row = fSector->GetRow(0);
void AliMpSectorPainter::Draw(Option_t *option)
{
/// Draw the sector on the current pad
-/// The first letter of <option> is treated as follows:
+/// The first letter of \a option is treated as follows:
/// - case "Z" : each zones are drawn separately
/// - case "R" : each rows are drawn separately
/// - case "" : the whole sector is drawn at once
//_______________________________________________________________________
void AliMpSectorPainter::Paint(Option_t* /*option*/)
{
-//// Paint the object
+/// Paint the object
AliMpGraphContext *gr = AliMpGraphContext::Instance();
if (!fSector) return;