GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ASImage Class Reference

Special ASImage for display of 2d histograms in go4 viewpanel. More...

#include <TGo4ASImage.h>

+ Inheritance diagram for TGo4ASImage:

Public Member Functions

 TGo4ASImage ()
 
 TGo4ASImage (TH2 *)
 
virtual ~TGo4ASImage ()
 
void ClosePaletteEditor ()
 Use this to close palette editor properly.
 
TH2 * GetHistogram () const
 
void SetDrawData (TH2 *histo, TGo4ViewPanel *panel, TPad *pad)
 
void SetHistogramContent (TH2 *histo)
 
void SetHistogramRanges (TH2 *)
 sets limits of histo according to current zoom scale of image
 
void SetSelectedRange (double rxmin, double rxmax, double rymin, double rymax)
 
void SetZoom (TH2 *)
 sets zoom of image according to current limits of histo
 
void UnZoom () override
 
void Zoom (UInt_t offX, UInt_t offY, UInt_t width, UInt_t height) override
 

Private Attributes

double fdHeight {0.}
 original width of image (histogram)
 
double fdWidth {0.}
 
double fxMaxX {1.}
 
double fxMaxY {1.}
 
double fxMinX {0.}
 
double fxMinY {0.}
 
TPad * fxPad {nullptr}
 
TGo4ViewPanelfxPanel {nullptr}
 

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() [1/2]

TGo4ASImage::TGo4ASImage ( )

Definition at line 21 of file TGo4ASImage.cpp.

◆ ~TGo4ASImage()

TGo4ASImage::~TGo4ASImage ( )
virtual

Definition at line 27 of file TGo4ASImage.cpp.

References ClosePaletteEditor().

◆ TGo4ASImage() [2/2]

TGo4ASImage::TGo4ASImage ( TH2 * )
inline

Definition at line 51 of file TGo4ASImage.h.

Member Function Documentation

◆ ClosePaletteEditor()

void TGo4ASImage::ClosePaletteEditor ( )

Use this to close palette editor properly.

Definition at line 113 of file TGo4ASImage.cpp.

Referenced by ~TGo4ASImage().

◆ GetHistogram()

TH2 * TGo4ASImage::GetHistogram ( ) const
inline

Definition at line 53 of file TGo4ASImage.h.

◆ SetDrawData()

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

Definition at line 51 of file TGo4ASImage.cpp.

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

Referenced by TGo4ViewPanel::RedrawImage().

◆ SetHistogramContent()

void TGo4ASImage::SetHistogramContent ( TH2 * histo)

Definition at line 32 of file TGo4ASImage.cpp.

References fdHeight, and fdWidth.

Referenced by TGo4ViewPanel::ProcessPadRedraw().

◆ SetHistogramRanges()

void TGo4ASImage::SetHistogramRanges ( TH2 * )
inline

sets limits of histo according to current zoom scale of image

Definition at line 56 of file TGo4ASImage.h.

◆ SetSelectedRange()

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

Definition at line 64 of file TGo4ASImage.cpp.

References fdHeight, fdWidth, fxMaxX, fxMaxY, fxMinX, and fxMinY.

Referenced by TGo4ViewPanel::RedrawImage().

◆ SetZoom()

void TGo4ASImage::SetZoom ( TH2 * )
inline

sets zoom of image according to current limits of histo

Definition at line 59 of file TGo4ASImage.h.

◆ UnZoom()

void TGo4ASImage::UnZoom ( )
override

Definition at line 106 of file TGo4ASImage.cpp.

References fxPad, and fxPanel.

◆ Zoom()

void TGo4ASImage::Zoom ( UInt_t offX,
UInt_t offY,
UInt_t width,
UInt_t height )
override

Definition at line 93 of file TGo4ASImage.cpp.

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

Field Documentation

◆ fdHeight

double TGo4ASImage::fdHeight {0.}
private

original width of image (histogram)

Definition at line 73 of file TGo4ASImage.h.

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

◆ fdWidth

double TGo4ASImage::fdWidth {0.}
private

Definition at line 72 of file TGo4ASImage.h.

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

◆ fxMaxX

double TGo4ASImage::fxMaxX {1.}
private

Definition at line 68 of file TGo4ASImage.h.

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

◆ fxMaxY

double TGo4ASImage::fxMaxY {1.}
private

Definition at line 70 of file TGo4ASImage.h.

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

◆ fxMinX

double TGo4ASImage::fxMinX {0.}
private

Definition at line 67 of file TGo4ASImage.h.

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

◆ fxMinY

double TGo4ASImage::fxMinY {0.}
private

Definition at line 69 of file TGo4ASImage.h.

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

◆ fxPad

TPad* TGo4ASImage::fxPad {nullptr}
private

Definition at line 65 of file TGo4ASImage.h.

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

◆ fxPanel

TGo4ViewPanel* TGo4ASImage::fxPanel {nullptr}
private

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: