ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
TPadStock Class Reference

Overload TPad
Because ExecuteEvent not overloaded by CanvasStock. More...

#include <TPadStock.h>

Inheritance diagram for TPadStock:
Inheritance graph
[legend]
Collaboration diagram for TPadStock:
Collaboration graph
[legend]

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 ()
 
THStockGetTHStock () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

TPadStock::TPadStock ( )
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.

Parameters
name
title
x1,y1,x2,y2: coordinates
color
bordersize
bordermode

Definition at line 27 of file TPadStock.cxx.

TPadStock::~TPadStock ( )
inline

Definition at line 50 of file TPadStock.h.

Member Function Documentation

void TPadStock::AddToTHStock ( ObjectLine obj_stock)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

Int_t TPadStock::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
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.

void TPadStock::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
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

Parameters
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().

Here is the call graph for this function:

THStock * TPadStock::GetTHStock ( ) const

Loop over the ListOfPrimitives of TPad.

Definition at line 36 of file TPadStock.cxx.

Referenced by AddToTHStock(), and ExecuteEvent().

Here is the caller graph for this function:

void TPadStock::PaintPadFrameStock ( Double_t  xmin,
Double_t  ymin,
Double_t  xmax,
Double_t  ymax 
)

Definition at line 124 of file TPadStock.cxx.


The documentation for this class was generated from the following files: