#ifndef ROOT_TMarker3DBox
#define ROOT_TMarker3DBox
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
#ifndef ROOT_TAtt3D
#include "TAtt3D.h"
#endif
class TH1;
class TMarker3DBox : public TObject, public TAttLine, public TAttFill,
public TAtt3D {
protected:
Float_t fX;
Float_t fY;
Float_t fZ;
Float_t fDx;
Float_t fDy;
Float_t fDz;
Float_t fTheta;
Float_t fPhi;
TObject *fRefObject;
TMarker3DBox(const TMarker3DBox&);
TMarker3DBox& operator=(const TMarker3DBox&);
enum { kTemporary = BIT(23) };
public:
TMarker3DBox();
TMarker3DBox(Float_t x, Float_t y, Float_t z,
Float_t dx, Float_t dy, Float_t dz,
Float_t theta, Float_t phi);
virtual ~TMarker3DBox();
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
TObject *GetRefObject() const {return fRefObject;}
virtual void GetDirection(Float_t &theta, Float_t &phi) const {theta = fTheta; phi = fPhi;}
virtual void GetPosition(Float_t &x, Float_t &y, Float_t &z) const {x=fX; y=fY, z=fZ;}
virtual void GetSize(Float_t &dx, Float_t &dy, Float_t &dz) const {dx=fDx; dy=fDy; dz=fDz;}
virtual void Paint(Option_t *option);
static void PaintH3(TH1 *h, Option_t *option);
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual void SetPoints(Double_t *buff) const;
virtual void SetDirection(Float_t theta, Float_t phi);
virtual void SetPosition(Float_t x, Float_t y, Float_t z);
virtual void SetSize(Float_t dx, Float_t dy, Float_t dz);
virtual void SetRefObject(TObject *obj=0) {fRefObject = obj;}
ClassDef(TMarker3DBox,2)
};
#endif
Last change: Wed Jun 25 08:49:03 2008
Last generated: 2008-06-25 08:49
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.