Diana Software
Public Member Functions | Private Attributes | List of all members
QGHistogramParametersFrame Class Reference

Part of a histogram edit window for inputting parameters. More...

Inheritance diagram for QGHistogramParametersFrame:

Public Member Functions

 QGHistogramParametersFrame (QGHistogramEditWindow *p=0, UInt_t w=100, UInt_t h=100)
 Constructor. More...
 
virtual ~QGHistogramParametersFrame ()
 Destructor. More...
 
void AutoSetBinWidth ()
 Set bin width automatically. More...
 
void AutoSetNumberOfBins ()
 Set number of bins automatically. More...
 
Double_t GetBinWidth ()
 Get bin width. More...
 
Int_t GetNumberOfBins ()
 Get number of bins. More...
 
QGDropDownBoxGetXDropDownBox ()
 Get pointer to x-axis variable drop down box. More...
 
Double_t GetXMax ()
 Get x-axis maximum. More...
 
Double_t GetXMin ()
 Get x-axis minimum. More...
 
std::string GetXUnits ()
 Get x-axis units. More...
 
std::string GetXVariable ()
 Get x-axis variable. More...
 
void HandleBinWidthEvent (Event_t *event)
 Handle event in bin width box. More...
 
void HandleNumberOfBinsEvent (Event_t *event)
 Handle event in number of bins box. More...
 
void HandleXMaxEvent (Event_t *event)
 Handle event in x-axis maximum box. More...
 
void HandleXMinEvent (Event_t *event)
 Handle event in x-axis minimum box. More...
 
bool IsBinWidthSet ()
 Handle event in x-axis units box. More...
 
bool IsNumberOfBinsSet ()
 Return true if number of bins is set. More...
 
bool IsSuperimposeSet ()
 Return true if superimpose box is checked. More...
 
bool IsXMaxSet ()
 Return true if x-axis maximum is set. More...
 
bool IsXMinSet ()
 Return true if x-axis minimum is set. More...
 
void SetBinWidth (Double_t width)
 Set the bin width. More...
 
void SetNumberOfBins (Int_t n)
 Set the number of bins. More...
 
void SetSuperimpose (bool flag=true)
 Set whether the superimpose box is checked. More...
 
void SetXMax (Double_t max)
 Set the x-axis maximum. More...
 
void SetXMin (Double_t min)
 Set the x-axis minimum. More...
 
void SetXUnits (const std::string &units)
 Set the x-axis units. More...
 
void SetXVariable (const std::string &x)
 Set the x-axis variable. More...
 

Private Attributes

TGHorizontalFrame * fBinsFrame
 Horizontal frame for bins parameters. More...
 
QGTextEntryfBinWidthBox
 Bin width box. More...
 
TGLabel * fBinWidthLabel
 Bin width label. More...
 
QGHistogramEditWindowfHistogramEditWindow
 Pointer to parent histogram edit window. More...
 
TGHorizontalFrame * fMinMaxFrame
 Horizontal frame for x-axis minimum and maximum. More...
 
QGTextEntryfNumberOfBinsBox
 Number of bins box. More...
 
TGLabel * fNumberOfBinsLabel
 Number of bins label. More...
 
TGCheckButton * fSuperimposeBox
 Superimpose check box. More...
 
TGLabel * fUnitsLabel
 Units label. More...
 
QGDropDownBoxfXDropDownBox
 X-axis variable drop down box. More...
 
TGHorizontalFrame * fXFrame
 Horizontal frame for x-axis variable. More...
 
TGLabel * fXLabel
 X label. More...
 
QGTextEntryfXMaxBox
 X-axis maximum box. More...
 
TGLabel * fXMaxLabel
 
QGTextEntryfXMinBox
 X-axis minimum box. More...
 
TGLabel * fXMinLabel
 
QGTextEntryfXUnitsBox
 X-axis units box. More...
 

Detailed Description

Part of a histogram edit window for inputting parameters.

Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)

Definition at line 20 of file QGHistogramParametersFrame.hh.

Constructor & Destructor Documentation

◆ QGHistogramParametersFrame()

QGHistogramParametersFrame::QGHistogramParametersFrame ( QGHistogramEditWindow p = 0,
UInt_t  w = 100,
UInt_t  h = 100 
)

◆ ~QGHistogramParametersFrame()

QGHistogramParametersFrame::~QGHistogramParametersFrame ( )
virtual

Destructor.

Definition at line 94 of file QGHistogramParametersFrame.cc.

Member Function Documentation

◆ AutoSetBinWidth()

void QGHistogramParametersFrame::AutoSetBinWidth ( )

◆ AutoSetNumberOfBins()

void QGHistogramParametersFrame::AutoSetNumberOfBins ( )

◆ GetBinWidth()

Double_t QGHistogramParametersFrame::GetBinWidth ( )

Get bin width.

Definition at line 121 of file QGHistogramParametersFrame.cc.

References fBinWidthBox, and IsBinWidthSet().

Referenced by AutoSetNumberOfBins().

◆ GetNumberOfBins()

Int_t QGHistogramParametersFrame::GetNumberOfBins ( )

Get number of bins.

Definition at line 130 of file QGHistogramParametersFrame.cc.

References fNumberOfBinsBox.

Referenced by AutoSetBinWidth().

◆ GetXDropDownBox()

QGDropDownBox* QGHistogramParametersFrame::GetXDropDownBox ( )
inline

Get pointer to x-axis variable drop down box.

Definition at line 41 of file QGHistogramParametersFrame.hh.

References fXDropDownBox.

Referenced by QGHistogramEditWindow::FillVariablesDropDownBoxes().

◆ GetXMax()

Double_t QGHistogramParametersFrame::GetXMax ( )

Get x-axis maximum.

Definition at line 141 of file QGHistogramParametersFrame.cc.

References fXMaxBox, and IsXMaxSet().

Referenced by AutoSetBinWidth(), and AutoSetNumberOfBins().

◆ GetXMin()

Double_t QGHistogramParametersFrame::GetXMin ( )

Get x-axis minimum.

Definition at line 150 of file QGHistogramParametersFrame.cc.

References fXMinBox, and IsXMinSet().

Referenced by AutoSetBinWidth(), and AutoSetNumberOfBins().

◆ GetXUnits()

string QGHistogramParametersFrame::GetXUnits ( )

Get x-axis units.

Definition at line 159 of file QGHistogramParametersFrame.cc.

References fXUnitsBox.

◆ GetXVariable()

string QGHistogramParametersFrame::GetXVariable ( )

Get x-axis variable.

Definition at line 164 of file QGHistogramParametersFrame.cc.

References fXDropDownBox.

Referenced by QGHistogramEditWindow::FillVariablesDropDownBoxes().

◆ HandleBinWidthEvent()

void QGHistogramParametersFrame::HandleBinWidthEvent ( Event_t *  event)

Handle event in bin width box.

Definition at line 169 of file QGHistogramParametersFrame.cc.

References AutoSetBinWidth(), and AutoSetNumberOfBins().

◆ HandleNumberOfBinsEvent()

void QGHistogramParametersFrame::HandleNumberOfBinsEvent ( Event_t *  event)

Handle event in number of bins box.

Definition at line 179 of file QGHistogramParametersFrame.cc.

References AutoSetBinWidth().

◆ HandleXMaxEvent()

void QGHistogramParametersFrame::HandleXMaxEvent ( Event_t *  event)

Handle event in x-axis maximum box.

Definition at line 186 of file QGHistogramParametersFrame.cc.

References AutoSetNumberOfBins().

◆ HandleXMinEvent()

void QGHistogramParametersFrame::HandleXMinEvent ( Event_t *  event)

Handle event in x-axis minimum box.

Definition at line 193 of file QGHistogramParametersFrame.cc.

References AutoSetNumberOfBins().

◆ IsBinWidthSet()

bool QGHistogramParametersFrame::IsBinWidthSet ( )

Handle event in x-axis units box.

Handle event in x-axis variable box

Return true if bin width is set

Definition at line 200 of file QGHistogramParametersFrame.cc.

References fBinWidthBox.

Referenced by AutoSetNumberOfBins(), and GetBinWidth().

◆ IsNumberOfBinsSet()

bool QGHistogramParametersFrame::IsNumberOfBinsSet ( )

Return true if number of bins is set.

Definition at line 205 of file QGHistogramParametersFrame.cc.

References fNumberOfBinsBox.

Referenced by AutoSetBinWidth().

◆ IsSuperimposeSet()

bool QGHistogramParametersFrame::IsSuperimposeSet ( )

Return true if superimpose box is checked.

Definition at line 210 of file QGHistogramParametersFrame.cc.

References fSuperimposeBox.

◆ IsXMaxSet()

bool QGHistogramParametersFrame::IsXMaxSet ( )

Return true if x-axis maximum is set.

Definition at line 215 of file QGHistogramParametersFrame.cc.

References fXMaxBox.

Referenced by AutoSetBinWidth(), AutoSetNumberOfBins(), and GetXMax().

◆ IsXMinSet()

bool QGHistogramParametersFrame::IsXMinSet ( )

Return true if x-axis minimum is set.

Definition at line 220 of file QGHistogramParametersFrame.cc.

References fXMinBox.

Referenced by AutoSetBinWidth(), AutoSetNumberOfBins(), and GetXMin().

◆ SetBinWidth()

void QGHistogramParametersFrame::SetBinWidth ( Double_t  width)

Set the bin width.

Definition at line 225 of file QGHistogramParametersFrame.cc.

References fBinWidthBox.

Referenced by AutoSetBinWidth(), and QGHistogramEditWindow::SetPlot().

◆ SetNumberOfBins()

void QGHistogramParametersFrame::SetNumberOfBins ( Int_t  n)

Set the number of bins.

Definition at line 233 of file QGHistogramParametersFrame.cc.

References fNumberOfBinsBox.

Referenced by AutoSetNumberOfBins(), and QGHistogramEditWindow::SetPlot().

◆ SetSuperimpose()

void QGHistogramParametersFrame::SetSuperimpose ( bool  flag = true)

Set whether the superimpose box is checked.

Definition at line 240 of file QGHistogramParametersFrame.cc.

References fSuperimposeBox.

Referenced by QGHistogramEditWindow::SetPlot().

◆ SetXMax()

void QGHistogramParametersFrame::SetXMax ( Double_t  max)

Set the x-axis maximum.

Definition at line 249 of file QGHistogramParametersFrame.cc.

References AutoSetBinWidth(), AutoSetNumberOfBins(), fXMaxBox, and max.

Referenced by QGHistogramEditWindow::SetPlot().

◆ SetXMin()

void QGHistogramParametersFrame::SetXMin ( Double_t  min)

Set the x-axis minimum.

Definition at line 259 of file QGHistogramParametersFrame.cc.

References AutoSetBinWidth(), AutoSetNumberOfBins(), fXMinBox, and min().

Referenced by QGHistogramEditWindow::SetPlot().

◆ SetXUnits()

void QGHistogramParametersFrame::SetXUnits ( const std::string &  units)

Set the x-axis units.

Definition at line 269 of file QGHistogramParametersFrame.cc.

References fXUnitsBox.

Referenced by QGHistogramEditWindow::SetPlot().

◆ SetXVariable()

void QGHistogramParametersFrame::SetXVariable ( const std::string &  x)

Set the x-axis variable.

Definition at line 274 of file QGHistogramParametersFrame.cc.

References fXDropDownBox.

Referenced by QGHistogramEditWindow::FillVariablesDropDownBoxes(), and QGHistogramEditWindow::SetPlot().

Member Data Documentation

◆ fBinsFrame

TGHorizontalFrame* QGHistogramParametersFrame::fBinsFrame
private

Horizontal frame for bins parameters.

Definition at line 111 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fBinWidthBox

QGTextEntry* QGHistogramParametersFrame::fBinWidthBox
private

Bin width box.

Definition at line 114 of file QGHistogramParametersFrame.hh.

Referenced by GetBinWidth(), IsBinWidthSet(), QGHistogramParametersFrame(), and SetBinWidth().

◆ fBinWidthLabel

TGLabel* QGHistogramParametersFrame::fBinWidthLabel
private

Bin width label.

Definition at line 117 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fHistogramEditWindow

QGHistogramEditWindow* QGHistogramParametersFrame::fHistogramEditWindow
private

Pointer to parent histogram edit window.

Definition at line 120 of file QGHistogramParametersFrame.hh.

◆ fMinMaxFrame

TGHorizontalFrame* QGHistogramParametersFrame::fMinMaxFrame
private

Horizontal frame for x-axis minimum and maximum.

Definition at line 123 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fNumberOfBinsBox

QGTextEntry* QGHistogramParametersFrame::fNumberOfBinsBox
private

Number of bins box.

Definition at line 126 of file QGHistogramParametersFrame.hh.

Referenced by GetNumberOfBins(), IsNumberOfBinsSet(), QGHistogramParametersFrame(), and SetNumberOfBins().

◆ fNumberOfBinsLabel

TGLabel* QGHistogramParametersFrame::fNumberOfBinsLabel
private

Number of bins label.

Definition at line 129 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fSuperimposeBox

TGCheckButton* QGHistogramParametersFrame::fSuperimposeBox
private

Superimpose check box.

Definition at line 132 of file QGHistogramParametersFrame.hh.

Referenced by IsSuperimposeSet(), QGHistogramParametersFrame(), and SetSuperimpose().

◆ fUnitsLabel

TGLabel* QGHistogramParametersFrame::fUnitsLabel
private

Units label.

Definition at line 135 of file QGHistogramParametersFrame.hh.

◆ fXDropDownBox

QGDropDownBox* QGHistogramParametersFrame::fXDropDownBox
private

X-axis variable drop down box.

Definition at line 138 of file QGHistogramParametersFrame.hh.

Referenced by GetXDropDownBox(), GetXVariable(), QGHistogramParametersFrame(), and SetXVariable().

◆ fXFrame

TGHorizontalFrame* QGHistogramParametersFrame::fXFrame
private

Horizontal frame for x-axis variable.

Definition at line 141 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fXLabel

TGLabel* QGHistogramParametersFrame::fXLabel
private

X label.

Definition at line 144 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fXMaxBox

QGTextEntry* QGHistogramParametersFrame::fXMaxBox
private

X-axis maximum box.

Definition at line 147 of file QGHistogramParametersFrame.hh.

Referenced by GetXMax(), IsXMaxSet(), QGHistogramParametersFrame(), and SetXMax().

◆ fXMaxLabel

TGLabel* QGHistogramParametersFrame::fXMaxLabel
private

Definition at line 150 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fXMinBox

QGTextEntry* QGHistogramParametersFrame::fXMinBox
private

X-axis minimum box.

Definition at line 153 of file QGHistogramParametersFrame.hh.

Referenced by GetXMin(), IsXMinSet(), QGHistogramParametersFrame(), and SetXMin().

◆ fXMinLabel

TGLabel* QGHistogramParametersFrame::fXMinLabel
private

Definition at line 156 of file QGHistogramParametersFrame.hh.

Referenced by QGHistogramParametersFrame().

◆ fXUnitsBox

QGTextEntry* QGHistogramParametersFrame::fXUnitsBox
private

X-axis units box.

Definition at line 159 of file QGHistogramParametersFrame.hh.

Referenced by GetXUnits(), QGHistogramParametersFrame(), and SetXUnits().


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