Logo ROOT   6.07/09
Reference Guide
TDiamond.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Rene Brun 22/06/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TDiamond
13 #define ROOT_TDiamond
14 
15 
16 #ifndef ROOT_TPaveText
17 #include "TPaveText.h"
18 #endif
19 #ifndef ROOT_TAttLine
20 #include "TAttLine.h"
21 #endif
22 #ifndef ROOT_TAttFill
23 #include "TAttFill.h"
24 #endif
25 
26 
27 class TDiamond : public TPaveText {
28 
29 public:
30  TDiamond();
32  TDiamond(const TDiamond &diamond);
33  virtual ~TDiamond();
34  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
35  virtual void Draw(Option_t *option="");
36  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
37  virtual void Paint(Option_t *option="");
38  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
39 
40  ClassDef(TDiamond,1) //Diamond class
41 };
42 
43 #endif
44 
virtual void Draw(Option_t *option="")
Draw this diamond with its current attributes.
Definition: TDiamond.cxx:94
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TDiamond.cxx:110
const char Option_t
Definition: RtypesCore.h:62
virtual ~TDiamond()
Diamond destructor.
Definition: TDiamond.cxx:62
int Int_t
Definition: RtypesCore.h:41
static const double x2[5]
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void Paint(Option_t *option="")
Paint this diamond with its current attributes.
Definition: TDiamond.cxx:381
TDiamond()
Diamond default constructor.
Definition: TDiamond.cxx:47
Draw a Diamond.
Definition: TDiamond.h:27
static const double x1[5]
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:27
double Double_t
Definition: RtypesCore.h:55
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a diamond.
Definition: TDiamond.cxx:86
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TDiamond.cxx:440