Public Member Functions | Private Attributes

TGo4ASImage Class Reference

#include <TGo4ASImage.h>

List of all members.

Public Member Functions

 TGo4ASImage ()
virtual ~TGo4ASImage ()
void SetHistogramContent (TH2 *histo)
void SetDrawData (TH2 *histo, TGo4ViewPanel *panel, TPad *pad)
void SetSelectedRange (double rxmin, double rxmax, double rymin, double rymax)
virtual void Zoom (UInt_t offX, UInt_t offY, UInt_t width, UInt_t height)
virtual void UnZoom ()
void ClosePaletteEditor ()
 TGo4ASImage (TH2 *)
TH2 * GetHistogram () const
void SetHistogramRanges (TH2 *)
void SetZoom (TH2 *)

Private Attributes

TGo4ViewPanelfxPanel
TPad * fxPad
double fxMinX
double fxMaxX
double fxMinY
double fxMaxY
double fdWidth
double fdHeight
 original width of image (histogram)

Detailed Description

Special ASImage for display of 2d histograms in go4 viewpanel. has backpointer to viewpanel and reacts explicitly when user select new range in image

Author:
J. Adamczewski
S. Linev
Since:
25-Mar-2004

Definition at line 32 of file TGo4ASImage.h.


Constructor & Destructor Documentation

TGo4ASImage::TGo4ASImage (  ) 

Definition at line 22 of file TGo4ASImage.cpp.

TGo4ASImage::~TGo4ASImage (  )  [virtual]

Definition at line 36 of file TGo4ASImage.cpp.

References ClosePaletteEditor().

TGo4ASImage::TGo4ASImage ( TH2 *   )  [inline]

Definition at line 51 of file TGo4ASImage.h.


Member Function Documentation

void TGo4ASImage::ClosePaletteEditor (  ) 

Use this to close palette editor properly

Definition at line 122 of file TGo4ASImage.cpp.

Referenced by ~TGo4ASImage().

TH2* TGo4ASImage::GetHistogram (  )  const [inline]

Definition at line 53 of file TGo4ASImage.h.

void TGo4ASImage::SetDrawData ( TH2 *  histo,
TGo4ViewPanel panel,
TPad *  pad 
)

Definition at line 60 of file TGo4ASImage.cpp.

References fxMaxX, fxMaxY, fxMinX, fxMinY, fxPad, and fxPanel.

Referenced by TGo4ViewPanel::RedrawImage().

void TGo4ASImage::SetHistogramContent ( TH2 *  histo  ) 

Definition at line 41 of file TGo4ASImage.cpp.

References fdHeight, and fdWidth.

Referenced by TGo4ViewPanel::ProcessPadRedraw().

void TGo4ASImage::SetHistogramRanges ( TH2 *   )  [inline]

sets limits of histo according to current zoom scale of image

Definition at line 56 of file TGo4ASImage.h.

void TGo4ASImage::SetSelectedRange ( double  rxmin,
double  rxmax,
double  rymin,
double  rymax 
)

Definition at line 73 of file TGo4ASImage.cpp.

References fdHeight, fdWidth, fxMaxX, fxMaxY, fxMinX, fxMinY, UnZoom(), and Zoom().

Referenced by TGo4ViewPanel::RedrawImage().

void TGo4ASImage::SetZoom ( TH2 *   )  [inline]

sets zoom of image according to current limits of histo

Definition at line 59 of file TGo4ASImage.h.

void TGo4ASImage::UnZoom (  )  [virtual]

Definition at line 115 of file TGo4ASImage.cpp.

References fxPad, fxPanel, and TGo4ViewPanel::PadRangeAxisChanged().

Referenced by SetSelectedRange().

void TGo4ASImage::Zoom ( UInt_t  offX,
UInt_t  offY,
UInt_t  width,
UInt_t  height 
) [virtual]

Member Data Documentation

double TGo4ASImage::fdHeight [private]

original width of image (histogram)

Definition at line 73 of file TGo4ASImage.h.

Referenced by SetHistogramContent(), SetSelectedRange(), and Zoom().

double TGo4ASImage::fdWidth [private]

Definition at line 72 of file TGo4ASImage.h.

Referenced by SetHistogramContent(), SetSelectedRange(), and Zoom().

double TGo4ASImage::fxMaxX [private]

Definition at line 68 of file TGo4ASImage.h.

Referenced by SetDrawData(), SetSelectedRange(), and Zoom().

double TGo4ASImage::fxMaxY [private]

Definition at line 70 of file TGo4ASImage.h.

Referenced by SetDrawData(), SetSelectedRange(), and Zoom().

double TGo4ASImage::fxMinX [private]

Definition at line 67 of file TGo4ASImage.h.

Referenced by SetDrawData(), SetSelectedRange(), and Zoom().

double TGo4ASImage::fxMinY [private]

Definition at line 69 of file TGo4ASImage.h.

Referenced by SetDrawData(), SetSelectedRange(), and Zoom().

TPad* TGo4ASImage::fxPad [private]

Definition at line 65 of file TGo4ASImage.h.

Referenced by SetDrawData(), UnZoom(), and Zoom().

Definition at line 63 of file TGo4ASImage.h.

Referenced by SetDrawData(), UnZoom(), and Zoom().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines