ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
graf2d
graf
inc
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
//////////////////////////////////////////////////////////////////////////
17
// //
18
// TDiamond //
19
// //
20
// Diamond class. //
21
// //
22
//////////////////////////////////////////////////////////////////////////
23
24
#ifndef ROOT_TPaveText
25
#include "
TPaveText.h
"
26
#endif
27
#ifndef ROOT_TAttLine
28
#include "
TAttLine.h
"
29
#endif
30
#ifndef ROOT_TAttFill
31
#include "
TAttFill.h
"
32
#endif
33
34
35
class
TDiamond
:
public
TPaveText
{
36
37
public
:
38
TDiamond
();
39
TDiamond
(
Double_t
x1
,
Double_t
y1,
Double_t
x2
,
Double_t
y2);
40
TDiamond
(
const
TDiamond
&diamond);
41
virtual
~TDiamond
();
42
virtual
Int_t
DistancetoPrimitive
(
Int_t
px
,
Int_t
py
);
43
virtual
void
Draw
(
Option_t
*option=
""
);
44
virtual
void
ExecuteEvent
(
Int_t
event,
Int_t
px,
Int_t
py);
45
virtual
void
Paint
(
Option_t
*option=
""
);
46
virtual
void
SavePrimitive
(std::ostream &
out
,
Option_t
*option =
""
);
47
48
ClassDef
(
TDiamond
,1)
//Diamond class
49
};
50
51
#endif
52
TDiamond::Draw
virtual void Draw(Option_t *option="")
Draw this diamond with its current attributes.
Definition:
TDiamond.cxx:94
TDiamond::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition:
TDiamond.cxx:110
TAttBBox2D::ClassDef
ClassDef(TAttBBox2D, 0)
Option_t
const char Option_t
Definition:
RtypesCore.h:62
TDiamond::~TDiamond
virtual ~TDiamond()
Diamond destructor.
Definition:
TDiamond.cxx:62
Int_t
int Int_t
Definition:
RtypesCore.h:41
TAttFill.h
py
Float_t py
Definition:
hprod.C:33
TPaveText.h
x2
static const double x2[5]
Definition:
RooGaussKronrodIntegrator1D.cxx:345
TDiamond::Paint
virtual void Paint(Option_t *option="")
Paint this diamond with its current attributes.
Definition:
TDiamond.cxx:381
out
char * out
Definition:
TBase64.cxx:29
TDiamond::TDiamond
TDiamond()
TDiamond
Draw a Diamond.
Definition:
TDiamond.h:35
TAttLine.h
x1
static const double x1[5]
Definition:
RooGaussKronrodIntegrator1D.cxx:327
TPaveText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition:
TPaveText.h:35
Double_t
double Double_t
Definition:
RtypesCore.h:55
TDiamond::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a diamond.
Definition:
TDiamond.cxx:86
px
Float_t px
Definition:
hprod.C:33
TDiamond::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition:
TDiamond.cxx:440