library: libGraf #include "TDiamond.h" |
TDiamond
class description - header file - source file - inheritance tree (.pdf)
public:
TDiamond()
TDiamond(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
TDiamond(const TDiamond& diamond)
virtual ~TDiamond()
static TClass* Class()
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() const
virtual void Paint(Option_t* option = "")
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(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.
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 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 (pL,pR,pTop,pBot), the diamond is rscaled.
pTop
+---------+
| / \ |
| / \ |
| / \ |
pL|/pinside\|pR
|\ /|
| \ / |
| \ / |
| \ / |
+---------+
pBot
Author: Rene Brun 22/06/96
Last update: root/graf:$Name: $:$Id: TDiamond.cxx,v 1.11 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - 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.