Logo ROOT  
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
17class TDiamond : public TPaveText {
18
19public:
22 TDiamond(const TDiamond &diamond);
23 ~TDiamond() 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
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73
const char Option_t
Option string (const char).
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
void Draw(Option_t *option="") override
Draw this box with its current attributes.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Paint(Option_t *option="") override
Paint this box with its current attributes.
Int_t IsInside(Double_t x, Double_t y) const override
Function which returns 1 if point x,y lies inside the box, 0 otherwise.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a box.
~TDiamond() override
TDiamond(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
TDiamond(const TDiamond &diamond)
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17