4#include "KVIDGridEditorCanvas.h"
5#include "KVIDGridEditor.h"
78 pad =
Pick(px, py, prevSelObj);
119 pad =
Pick(px, py, prevSelObj);
220 pad =
Pick(px, py, prevSelObj);
261 while ((tc = (
TCanvas*)next()))
285 newXlast =
Xlast0 - dXbins;
291 if (newXfirst !=
Xf1) {
304 newYlast =
Ylast0 - dYbins;
310 if (newYfirst !=
Yf1) {
339 pad =
Pick(px, py, prevSelObj);
377 pad =
Pick(px, py, prevSelObj);
392 pad =
Pick(px, py, prevSelObj);
420 if (gIDGridEditor) gIDGridEditor->
HandleKey(px, py);
TCanvas with mouse-controlled dynamic zoom and pan & scan.
void RunAutoExec()
Execute the list of TExecs in the current pad.
void DrawEventStatus(Int_t event, Int_t px, Int_t py, TObject *selected)
void ZoomSelected(TH2 *TheHisto)
Extended version of KVCanvas used by KVIDGridEditor.
Double_t YbinPixel
size of bins in pixels
Int_t NdisYbins
number of displayed bins on X & Y
virtual ~KVIDGridEditorCanvas()
Destructor.
virtual Bool_t HandleKey(Int_t px, Int_t py)
KeyHandler *fKeyHandler; // handler for arrow keys.
Int_t Ylast0
number of bins on y-axis, initial displayed bins
Int_t X0
friend class KeyHandler;
Int_t Xlast0
number of bins on x-axis, initial displayed bins
KVIDGridEditorCanvas()
Default constructor.
Int_t Yl1
last modification to axis limits
TAxis * theYaxis
the axes of the histogram
Int_t Y0
coordinates of initial click in pad pixels
void HandleInput(EEventType event, Int_t px, Int_t py)
Bool_t HandleKey(Int_t px, Int_t py)
Handle keys.
virtual void SetRange(Int_t first=0, Int_t last=0)
void EnterLeave(TPad *prevSelPad, TObject *prevSelObj)
Int_t GetEventY() const override
virtual TPad * Pick(Int_t px, Int_t py, TObject *prevSelObj)
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Int_t GetEventX() const override
TVirtualPad * cd(Int_t subpadnumber=0) override
TContextMenu * fContextMenu
void FeedbackMode(Bool_t set)
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual Bool_t InheritsFrom(const char *classname) const
Double_t AbsPixeltoY(Int_t py) override
const char * GetTitle() const override
Double_t AbsPixeltoX(Int_t px) override
void Modified(Bool_t flag=1) override
Int_t YtoAbsPixel(Double_t y) const override
TVirtualPad * cd(Int_t subpadnumber=0) override
const char * GetName() const override
Int_t XtoAbsPixel(Double_t x) const override