KaliVeda
Toolkit for HIC analysis
KVIDGridEditorCanvas Class Reference

Detailed Description

Extended version of KVCanvas used by KVIDGridEditor.

Created by KVClassFactory on Fri Feb 17 17:47:35 2012 Author: dgruyer

Used to override the TCanvas::HandleInput() method so that it reacts to mouse wheel events (kWheelUp/kWheelDown).

Definition at line 21 of file KVIDGridEditorCanvas.h.

#include <KVIDGridEditorCanvas.h>

Inheritance diagram for KVIDGridEditorCanvas:

Public Member Functions

 KVIDGridEditorCanvas ()
 Default constructor. More...
 
 KVIDGridEditorCanvas (const char *name, const char *title, Int_t ww, Int_t wh)
 
virtual ~KVIDGridEditorCanvas ()
 Destructor. More...
 
void HandleInput (EEventType event, Int_t px, Int_t py)
 
- Public Member Functions inherited from KVCanvas
 KVCanvas ()
 
 KVCanvas (const char *name, const char *title, Int_t ww, Int_t wh, Bool_t keyHandler=kTRUE)
 using TCanvas::TCanvas; More...
 
 KVCanvas (const char *name, Int_t ww, Int_t wh, Int_t winid)
 fKeyHandler = new KVKeyHandler(this); More...
 
virtual ~KVCanvas ()
 
void DisableClass (const char *className)
 
void DisableObject (TObject *obj)
 
void FreezCavans (Bool_t freez)
 
Int_t GetEnabledShortcuts ()
 
Int_t GetVenerMode ()
 
void HandleInput (EEventType event, Int_t px, Int_t py)
 
Bool_t IsLogx ()
 
Bool_t IsLogy ()
 
Bool_t IsLogz ()
 
void ResetDisabledClass ()
 
void ResetDisabledObject ()
 
void SetEnabledShortcuts (Int_t value=1)
 
void SetVenerMode (Int_t value=1)
 
void ShowShortcutsInfos ()
 

Private Member Functions

virtual Bool_t HandleKey (Int_t px, Int_t py)
 KeyHandler *fKeyHandler; // handler for arrow keys. More...
 

Private Attributes

Int_t NdisXbins
 
Int_t NdisYbins
 number of displayed bins on X & Y More...
 
Int_t NXbins
 
Int_t NYbins
 
TAxis * theXaxis
 
TAxis * theYaxis
 the axes of the histogram More...
 
Int_t X0
 friend class KeyHandler; More...
 
Double_t XbinPixel
 
Int_t Xf1
 
Int_t Xfirst0
 
Int_t Xl1
 
Int_t Xlast0
 number of bins on x-axis, initial displayed bins More...
 
Int_t Y0
 coordinates of initial click in pad pixels More...
 
Double_t YbinPixel
 size of bins in pixels More...
 
Int_t Yf1
 
Int_t Yfirst0
 
Int_t Yl1
 last modification to axis limits More...
 
Int_t Ylast0
 number of bins on y-axis, initial displayed bins More...
 

Constructor & Destructor Documentation

◆ KVIDGridEditorCanvas() [1/2]

KVIDGridEditorCanvas::KVIDGridEditorCanvas ( )

Default constructor.

Definition at line 35 of file KVIDGridEditorCanvas.cpp.

◆ KVIDGridEditorCanvas() [2/2]

KVIDGridEditorCanvas::KVIDGridEditorCanvas ( const char *  name,
const char *  title,
Int_t  ww,
Int_t  wh 
)

gIDGridEditorCanvas = this; fKeyHandler = new KeyHandler(this);

Definition at line 23 of file KVIDGridEditorCanvas.cpp.

◆ ~KVIDGridEditorCanvas()

KVIDGridEditorCanvas::~KVIDGridEditorCanvas ( )
virtual

Destructor.

Definition at line 45 of file KVIDGridEditorCanvas.cpp.

Member Function Documentation

◆ HandleInput()

void KVIDGridEditorCanvas::HandleInput ( EEventType  event,
Int_t  px,
Int_t  py 
)

Handle Input Events.

Handle input events, like button up/down in current canvas.

Definition at line 57 of file KVIDGridEditorCanvas.cpp.

◆ HandleKey()

Bool_t KVIDGridEditorCanvas::HandleKey ( Int_t  px,
Int_t  py 
)
privatevirtual

KeyHandler *fKeyHandler; // handler for arrow keys.

Bool_t HandleKey(Event_t *event){return kTRUE;}

Reimplemented from KVCanvas.

Definition at line 418 of file KVIDGridEditorCanvas.cpp.

Member Data Documentation

◆ NdisXbins

Int_t KVIDGridEditorCanvas::NdisXbins
private

Definition at line 26 of file KVIDGridEditorCanvas.h.

◆ NdisYbins

Int_t KVIDGridEditorCanvas::NdisYbins
private

number of displayed bins on X & Y

Definition at line 26 of file KVIDGridEditorCanvas.h.

◆ NXbins

Int_t KVIDGridEditorCanvas::NXbins
private

Definition at line 27 of file KVIDGridEditorCanvas.h.

◆ NYbins

Int_t KVIDGridEditorCanvas::NYbins
private

Definition at line 28 of file KVIDGridEditorCanvas.h.

◆ theXaxis

TAxis* KVIDGridEditorCanvas::theXaxis
private

Definition at line 29 of file KVIDGridEditorCanvas.h.

◆ theYaxis

TAxis * KVIDGridEditorCanvas::theYaxis
private

the axes of the histogram

Definition at line 29 of file KVIDGridEditorCanvas.h.

◆ X0

Int_t KVIDGridEditorCanvas::X0
private

friend class KeyHandler;

variables for pan & scan

Definition at line 25 of file KVIDGridEditorCanvas.h.

◆ XbinPixel

Double_t KVIDGridEditorCanvas::XbinPixel
private

Definition at line 30 of file KVIDGridEditorCanvas.h.

◆ Xf1

Int_t KVIDGridEditorCanvas::Xf1
private

Definition at line 31 of file KVIDGridEditorCanvas.h.

◆ Xfirst0

Int_t KVIDGridEditorCanvas::Xfirst0
private

Definition at line 27 of file KVIDGridEditorCanvas.h.

◆ Xl1

Int_t KVIDGridEditorCanvas::Xl1
private

Definition at line 31 of file KVIDGridEditorCanvas.h.

◆ Xlast0

Int_t KVIDGridEditorCanvas::Xlast0
private

number of bins on x-axis, initial displayed bins

Definition at line 27 of file KVIDGridEditorCanvas.h.

◆ Y0

Int_t KVIDGridEditorCanvas::Y0
private

coordinates of initial click in pad pixels

Definition at line 25 of file KVIDGridEditorCanvas.h.

◆ YbinPixel

Double_t KVIDGridEditorCanvas::YbinPixel
private

size of bins in pixels

Definition at line 30 of file KVIDGridEditorCanvas.h.

◆ Yf1

Int_t KVIDGridEditorCanvas::Yf1
private

Definition at line 31 of file KVIDGridEditorCanvas.h.

◆ Yfirst0

Int_t KVIDGridEditorCanvas::Yfirst0
private

Definition at line 28 of file KVIDGridEditorCanvas.h.

◆ Yl1

Int_t KVIDGridEditorCanvas::Yl1
private

last modification to axis limits

Definition at line 31 of file KVIDGridEditorCanvas.h.

◆ Ylast0

Int_t KVIDGridEditorCanvas::Ylast0
private

number of bins on y-axis, initial displayed bins

Definition at line 28 of file KVIDGridEditorCanvas.h.