**************************************************************************/
// $Id$
-// $MpId: AliMpSubZonePainter.cxx,v 1.7 2006/03/17 11:35:29 ivana Exp $
+// $MpId: AliMpSubZonePainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
// Category: graphics
-//
+
+//-----------------------------------------------------------------------------
// Class AliMpSubZonePainter
// -------------------------
// Class for drawing a subzone into canvas
// Included in AliRoot: 2003/05/02
// Authors: David Guez, IPN Orsay
+//-----------------------------------------------------------------------------
#include "AliMpSubZonePainter.h"
#include "AliMpGraphContext.h"
#include <TVirtualX.h>
#include <TPad.h>
+/// \cond CLASSIMP
ClassImp(AliMpSubZonePainter)
+/// \endcond
//_______________________________________________________________________
AliMpSubZonePainter::AliMpSubZonePainter()
}
-//_____________________________________________________________________________
-AliMpSubZonePainter::AliMpSubZonePainter(const AliMpSubZonePainter& right)
- : AliMpVPainter(right)
-{
- /// Protected copy constructor (not provided)
-
- Fatal("AliMpSubZonePainter", "Copy constructor not provided.");
-}
-
//_______________________________________________________________________
AliMpSubZonePainter::~AliMpSubZonePainter()
{
/// Destructor
}
-//_____________________________________________________________________________
-AliMpSubZonePainter&
-AliMpSubZonePainter::operator=(const AliMpSubZonePainter& right)
-{
- /// Assignment operator (not provided)
-
- // check assignment to self
- if (this == &right) return *this;
-
- Fatal("operator =", "Assignment operator not provided.");
-
- return *this;
-}
-
//_______________________________________________________________________
Int_t AliMpSubZonePainter::DistancetoPrimitive(Int_t x, Int_t y)
{
//_______________________________________________________________________
void AliMpSubZonePainter::DumpObject()
{
- //// Draw the owned object
+ /// Draw the owned object
fSubZone->Dump();
}
//_______________________________________________________________________
TVector2 AliMpSubZonePainter::GetPosition() const
{
- //// Get the owned object's position
+ /// Get the owned object's position
if (fSubZone->GetNofRowSegments()<1) return TVector2(0.,0.);
AliMpVRowSegment* seg = fSubZone->GetRowSegment(0);
//_______________________________________________________________________
TVector2 AliMpSubZonePainter::GetDimensions() const
{
- //// Get the owned object's dimensions
+ /// Get the owned object's dimensions
if (fSubZone->GetNofRowSegments()<1) return TVector2(0.,0.);
AliMpVRowSegment* seg = fSubZone->GetRowSegment(0);
void AliMpSubZonePainter::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 "S" : each row segments are drawn separately
/// - case "" : the whole subzone is drawn at once
/// in both cases, the rest of the option is passed
//_______________________________________________________________________
void AliMpSubZonePainter::Paint(Option_t *option)
{
-//// Paint the object
+/// Paint the object
AliMpGraphContext *gr = AliMpGraphContext::Instance();
if (!fSubZone) return;