ROOT
master
Reference Guide
Loading...
Searching...
No Matches
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
#include "
TPaveText.h
"
16
17
class
TDiamond
:
public
TPaveText
{
18
19
public
:
20
TDiamond
();
21
TDiamond
(
Double_t
x1
,
Double_t
y1
,
Double_t
x2
,
Double_t
y2
);
22
TDiamond
(
const
TDiamond
&diamond);
23
~TDiamond
()
override
;
24
Int_t
DistancetoPrimitive
(
Int_t
px,
Int_t
py)
override
;
25
void
Draw
(
Option_t
*
option
=
""
)
override
;
26
Int_t
IsInside
(
Double_t
x
,
Double_t
y
)
const override
;
27
void
ExecuteEvent
(
Int_t
event,
Int_t
px,
Int_t
py)
override
;
28
void
Paint
(
Option_t
*
option
=
""
)
override
;
29
void
SavePrimitive
(std::ostream &out,
Option_t
*
option
=
""
)
override
;
30
31
ClassDefOverride
(
TDiamond
,1)
//Diamond class
32
};
33
34
#endif
Option_t
const char Option_t
Definition
RtypesCore.h:66
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
option
Option_t Option_t option
Definition
TGWin32VirtualXProxy.cxx:44
x2
Option_t Option_t TPoint TPoint const char x2
Definition
TGWin32VirtualXProxy.cxx:70
x1
Option_t Option_t TPoint TPoint const char x1
Definition
TGWin32VirtualXProxy.cxx:70
y2
Option_t Option_t TPoint TPoint const char y2
Definition
TGWin32VirtualXProxy.cxx:70
y1
Option_t Option_t TPoint TPoint const char y1
Definition
TGWin32VirtualXProxy.cxx:70
TPaveText.h
TDiamond
Draw a Diamond.
Definition
TDiamond.h:17
TDiamond::TDiamond
TDiamond()
Diamond default constructor.
Definition
TDiamond.cxx:46
TDiamond::ExecuteEvent
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Definition
TDiamond.cxx:109
TDiamond::SavePrimitive
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
Definition
TDiamond.cxx:461
TDiamond::Paint
void Paint(Option_t *option="") override
Paint this diamond with its current attributes.
Definition
TDiamond.cxx:401
TDiamond::IsInside
Int_t IsInside(Double_t x, Double_t y) const override
Return 1 if the point (x,y) is inside the polygon defined by the diamond 0 otherwise.
Definition
TDiamond.cxx:381
TDiamond::DistancetoPrimitive
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a diamond.
Definition
TDiamond.cxx:85
TDiamond::~TDiamond
~TDiamond() override
Diamond destructor.
Definition
TDiamond.cxx:61
TPaveText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition
TPaveText.h:21
double
int
y
Double_t y[n]
Definition
legend1.C:17
x
Double_t x[n]
Definition
legend1.C:17
Draw
th1 Draw()
graf2d
graf
inc
TDiamond.h
ROOT master - Reference Guide Generated on Wed Oct 9 2024 09:07:24 (GVA Time) using Doxygen 1.9.8