TDiamond
class description - source file - inheritance tree
public:
TDiamond TDiamond()
TDiamond TDiamond(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2)
TDiamond TDiamond(TDiamond& diamond)
virtual void ~TDiamond()
TClass* Class()
virtual void Copy(TObject& diamond)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual void Draw(Option_t* option)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual TClass* IsA()
virtual void Paint(Option_t* option)
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
A diamond is defined by :
- Its central left coordinates x1,y1
- Its top central coordinates x2,y2
A diamond has line attributes (see TAttLine)
and fill area attributes (see TAttFill).
Like for the class TPaveText, a TDiamond may have one or more line(s)
of text inside.
/*
*/
TDiamond(): TPaveText()
*-*-*-*-*-*-*-*-*-*-*Diamond default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ===========================
TDiamond(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t y2)
:TPaveText(x1,y1,x2,y2)
*-*-*-*-*-*-*-*-*-*-*Diamond standard constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ============================
~TDiamond()
*-*-*-*-*-*-*-*-*-*-*Diamond destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ==================
TDiamond(const TDiamond &diamond)
void Copy(TObject &diamond)
*-*-*-*-*-*-*-*-*-*-*Copy a Diamond*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ==============
Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*Compute distance from point px,py to a diamond*-*-*-*-*-*
*-* ==============================================
Compute the closest distance of approach from point px,py to the
edges of this diamond.
The distance is computed in pixels units.
void Draw(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this diamond with its current attributes*-*-*-*-*-*
*-* =============================================
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-* =========================================
This member function is called when a Diamond object is clicked.
If the mouse is clicked inside the diamond, the diamond is moved.
If the mouse is clicked on the 4 tops (L,R,T,B), the diamond is rscaled.
T
+---------+
| / |
| / |
| / |
L|/ inside|R
| /|
| / |
| / |
| / |
+---------+
B
void Paint(Option_t *)
*-*-*-*-*-*-*-*-*-*-*Paint this diamond with its current attributes*-*-*-*-*
*-* ==============================================
void SavePrimitive(ofstream &out, Option_t *)
Save primitive as a C++ statement(s) on output stream out
Inline Functions
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
Author: Rene Brun 22/06/96
Last update: 2.20/05 15/12/98 09.17.20 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
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.