|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
Overload TPad
Because ExecuteEvent not overloaded by CanvasStock.
More...
#include <TPadStock.h>


Public Member Functions | |
| TPadStock () | |
| TPadStock (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=-1, Short_t bordersize=-1, Short_t bordermode=-2) | |
| Constructor TPadStock. More... | |
| ~TPadStock () | |
| THStock * | GetTHStock () const |
| Loop over the ListOfPrimitives of TPad. More... | |
| virtual void | AddToTHStock (ObjectLine *) |
| Add an ObjectStock to THStock. More... | |
| virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
| Compute distance from point px,py to a box. More... | |
| void | PaintPadFrameStock (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) |
| virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
| Called if TPadStock::DistancetoPrimitive return the smallest distance Called only if not candle or any other object are closer. More... | |
Overload TPad
Because ExecuteEvent not overloaded by CanvasStock.
CanvasStock contains Pad, Pad retrieve the element with DistanceToPrimitive and call the member function ExecuteEvent Used to draw Support/Line
Definition at line 31 of file TPadStock.h.
|
inline |
Definition at line 34 of file TPadStock.h.
| TPadStock::TPadStock | ( | const char * | name, |
| const char * | title, | ||
| Double_t | xlow, | ||
| Double_t | ylow, | ||
| Double_t | xup, | ||
| Double_t | yup, | ||
| Color_t | color = -1, |
||
| Short_t | bordersize = -1, |
||
| Short_t | bordermode = -2 |
||
| ) |
Constructor TPadStock.
| name | |
| title | |
| x1,y1,x2,y2 | : coordinates |
| color | |
| bordersize | |
| bordermode |
Definition at line 27 of file TPadStock.cxx.
|
inline |
Definition at line 50 of file TPadStock.h.
|
virtual |
Add an ObjectStock to THStock.
Called by TCreateObjectStock, through gPad, better way ? could be done directly ?? specialized avoid dynamic_const to find the THStock
Definition at line 56 of file TPadStock.cxx.
References THStock::Add(), and GetTHStock().
Referenced by ExecuteEvent().


|
virtual |
Compute distance from point px,py to a box.
First to be called by TCanvas::HandleInput TPadStock::ExecuteEvent called if no object in THStock are selected
Then THistPainterStock::DtP is called
Compute the closest distance from point px,py to the edges of this pad
always called
Definition at line 69 of file TPadStock.cxx.
|
virtual |
Called if TPadStock::DistancetoPrimitive return the smallest distance Called only if not candle or any other object are closer.
Initialize the creation of ObjectLineDrawable
| event | |
| px | |
| py |
Definition at line 159 of file TPadStock.cxx.
References AddToTHStock(), THStock::AnchorToIndicator(), FactoryObjectStock::CreateDrawableObjectLine(), EditorObjStock::GetAnchor(), EditorObjStock::GetMode(), AbstractObjectStock::GetParent(), GetTHStock(), FactoryObjectStock::kBeginDraw, FactoryObjectStock::kEndDraw, FactoryObjectStock::kMoveDraw, kNone_line, and AbstractObjectStock::SetParent().

| THStock * TPadStock::GetTHStock | ( | ) | const |
Loop over the ListOfPrimitives of TPad.
Definition at line 36 of file TPadStock.cxx.
Referenced by AddToTHStock(), and ExecuteEvent().

| void TPadStock::PaintPadFrameStock | ( | Double_t | xmin, |
| Double_t | ymin, | ||
| Double_t | xmax, | ||
| Double_t | ymax | ||
| ) |
Definition at line 124 of file TPadStock.cxx.
1.8.6