#include <Inspector.h>
Inheritance diagram for Inspector:


It provides an Inspector it provides methods specific to the Qt implementation of the HippoDraw application.
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>
Sanket B. Malde <sanket@stanford.edu>
Joy Rajiv <jraviv@stanford.edu>
Definition at line 166 of file Inspector.h.
Public Member Functions | |
| virtual void | allCutsRadioButton_toggled (bool selected) |
| virtual void | customEvent (QCustomEvent *event) |
| The method to receive update events from the application queue. | |
| void | enableNewPlotBox (bool yes=true) |
| Enables the new plot box. | |
| virtual PlotterBase * | getSelectedCut () |
| std::string | getSelectedDataSourceName () const |
| Returns the name of the currently selected DataSource in Data tabbed panel. | |
| Inspector (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags flags=0) | |
| The constructor. | |
| virtual void | selectedCutsRadioButton_toggled (bool selected) |
| virtual void | statsButtonGroupClicked (int) |
| virtual void | update () |
| The Update Method. | |
| virtual void | updateSummaryTab () |
| Updates the Stats tabbed panel's widgets. | |
| virtual | ~Inspector () |
| The virtual destructor. | |
Protected Member Functions | |
| virtual void | addDataRepButton_clicked () |
| Responds to click on the add Data Rep button. | |
| virtual void | allNtupleComboActivated (const QString &) |
| virtual void | autoScale_clicked () |
| Slot which responds to the toggle in state of the autoScale check box. | |
| virtual void | availPlotTypesActivated (const QString &) |
| virtual void | axisLabelChanged (int index, const QString &axisName) |
| Responds to change in axis binding on existing plotter. | |
| virtual void | axisLabelText () |
| Responds to return in axis label text box. | |
| virtual void | axisZoomPanCheckBox_clicked () |
| Responds to change in zoom/pan check box. | |
| virtual void | colorSelect_2_clicked () |
| Sets the Color of the cut plotter. | |
| virtual void | colorSelect_clicked () |
| virtual void | comboBoxEllipsoidParamXHighlighted (int) |
| The slot that recieves the signal when ComboBoxEllipsoidParamX (which is in the Confidence ellipsoid Group Box) is highlighted. | |
| virtual void | comboBoxEllipsoidParamYHighlighted (int) |
| The slot that recieves the signal when ComboBoxEllipsoidParamY (which is in the Confidence ellipsoid Group Box) is highlighted. | |
| void | contourError () |
| Raises message box on contour input error. | |
| virtual void | contourLevelsTextBox_returnPressed () |
| Responds to change in contour levels text box. | |
| virtual void | contourRadioButton1_toggled (bool) |
| Responds to change in 1st contour radio button. | |
| virtual void | contourSlider_valueChanged (int val) |
| virtual void | contourTextBox_returnPressed () |
| virtual const std::string | convertToString (hippodraw::Axes::Type) |
| virtual void | createResiduals () |
| Creates a display showing the residuals of the function. | |
| virtual void | cutAddAll () |
| Adds all the cuts to the DataRep. | |
| virtual void | cutAddSelected () |
| Adds selected cut to the DataRep. | |
| virtual void | cutEnablePushButton_toggled (bool on) |
| Responds to the cut enable push button. | |
| virtual void | cutHighSlider_sliderMoved (int value) |
| virtual void | cutHighSlider_sliderReleased () |
| virtual void | cutInvertPushButton_clicked () |
| virtual void | cutLowSlider_sliderMoved (int value) |
| virtual void | cutLowSlider_sliderReleased () |
| virtual void | cutNew () |
| virtual void | cutRemovePushButton_clicked () |
| Responds to the button that removes a cut. | |
| virtual void | cutText_returnPressed () |
| Responds to entry in one of the cut text fields. | |
| virtual void | cutZoomPanCheckBox_clicked () |
| virtual void | dataCreateNTuple () |
| virtual void | dataNTupleSelChanged (int item) |
| virtual void | dataTupleNameChanged (const QString &) |
| virtual void | deleteColorModel () |
| Deletes an existing Value to Color Model. | |
| virtual void | editColorModel () |
| Brings up dialog to edit an existing Value to Color model. | |
| void | editLabelFontClicked () |
| Edit label font, ( if user wants to overwrite he default ). | |
| void | editTitleFontClicked () |
| Edit the title font, ( if user wants to overwrite he default ). | |
| virtual void | fitterNamesActivated (int) |
| virtual void | functionAdd () |
| virtual void | functionParamsCheckBoxToggled (bool) |
| Slot which recieves the signal if state of the checkbox changes in the the function Params tab. | |
| virtual void | functionParamsLineEditReturnPressed () |
| Slot which recieves the signal if enter is pressed in the line edit in the the function Params tab. | |
| virtual void | functionParamsListViewCurrentChanged (QListViewItem *) |
| Slot which recieves the signal if Current item changes in the List View of the function Params. | |
| virtual void | functionParamsSliderSliderMoved (int) |
| Slot which alters the parameter values as the function Params slider is moved. | |
| virtual void | functionParamsSliderSliderPressed () |
| virtual void | functionParamsSliderSliderReleased () |
| Slot which set the slider to mid point after it has been release. | |
| virtual void | functionsFitToDataButton_clicked () |
| Fits the selected function to the data. | |
| virtual void | functionsRemoveButton_clicked () |
| Removing the selected function and updating appropriate tabbed panels. | |
| virtual void | functionsResetButton_clicked () |
| Reset the function parameters from the parameters saved before the last fit. | |
| std::string | getArrayTupleLabel (const DataSource *rtuple, const std::string &column) |
| In case we are dealing with multidimensional data in rows of this column in the given DataSource we would like to deal with on one entry of this multidimensional data. | |
| virtual PlotterBase * | getPlotter () |
| virtual void | highRangeDrag () |
| virtual void | intervalStateChanged (bool state) |
| virtual void | intervalTextChanged (const QString &) |
| virtual void | lineStyleButtonGroup_clicked (int id) |
| virtual void | logScale_clicked () |
| The Qt slot which responds to the toggle in state of the logScale checkbox. | |
| virtual void | lowRangeDrag () |
| virtual void | newColorModel () |
| Brings up dialog to create a new Value to Color model. | |
| virtual void | newPlotButton_clicked () |
| virtual void | offsetDrag () |
| virtual void | on_axis_button_group_clicked (int id) |
| Responds to change in axis tabbed panel's axis radio button group. | |
| virtual void | on_cut_button_group_clicked (int id) |
| Responds to change of the cut panel's radio group. | |
| virtual void | pointRepComboBox_activated (const QString &qstr) |
| virtual void | pushButtonNewErrorPlotClicked () |
| The slot that recieves the signal when the PushButtonNewErrorPlot is clicked. | |
| virtual void | resetSlider () |
| Resets sliders to default position. | |
| virtual void | selCutChanged () |
| virtual void | setBinWidth (int value, bool drag) |
| Sets the bin width and the slider dragging flag. | |
| virtual void | setBinWidth (int value) |
| virtual void | setDragOn () |
| Called when any slider is pressed. | |
| virtual void | setHighRange (int value, bool yes) |
| Sets the high range and the slider dragging flag. | |
| virtual void | setHighRange (int value) |
| virtual void | setHighText () |
| virtual void | setLowRange (int value, bool yes) |
| Sets the low range and slider dragging flag. | |
| virtual void | setLowRange (int value) |
| virtual void | setLowText () |
| virtual void | setOffset (int value, bool yes) |
| sets the bin offset and the slider dragging flag. | |
| virtual void | setOffset (int value) |
| virtual void | setOffsetText () |
| Responds to return in bin offset text field. | |
| virtual void | setParameters (int, PlotterBase *) |
| virtual void | setWidthText () |
| Responds to return in bin width text field. | |
| virtual void | sliderChanged (int) |
| Responds to change in the sliders. | |
| virtual void | summaryNew () |
| virtual void | symbolPointSize_returnPressed () |
| virtual void | symbolTypeButtonGroup_clicked (int id) |
| virtual void | tabChanged () |
| Receives the signal that the tabbed panel changed and invokes the update method. | |
| virtual void | titleText_returnPressed () |
| Responds to title text return. | |
| virtual void | updateAxisTab () |
| Updates the axis tabbed panel's widgets. | |
| virtual void | updateCutsTab () |
| Updates the cut tabbed panel's widgets' state and values. | |
| virtual void | updateDataCutsTab () |
| Updates the cut tabbed panel when in data cut mode. | |
| virtual void | updateDataTab () |
| virtual void | updateFitCutsTab () |
| Update the cut tabbed panel when in fit cut mode. | |
| virtual void | updateFunctionsTab () |
| Updates the functions tabbed panel's widgets. | |
| virtual void | updatePlotTypes () |
| Updates the available plot types combo box. | |
| virtual void | valueChanged (int) |
| Responds to change of the value to color combo box. | |
| virtual void | widthDrag () |
Static Protected Attributes | |
| static QString | s_app_key |
| The QSettings application key for searching for setting. | |
| static QString | s_registry |
| The QSettings Windows registry key. | |
Private Types | |
| typedef std::vector< PlotterBase * > | PlotterList_t |
| The type of container for PlotterBase objects. | |
| typedef std::vector< const TupleCut * > | TupleCutList_t |
| The type of container for current TupleCut objects. | |
Private Member Functions | |
| void | changeNTupleName (const QString &) |
| Changes the name NTuple. | |
| void | clearNewBindings () |
| Clears the combo boxes associated with new plot bindings. | |
| void | dataClearSelectedControls () |
| Clears the previous binding controls. | |
| void | disableCutControls (bool yes) |
| Disables all the control widgets for a cut. | |
| virtual void | errorBars_toggled (bool) |
| Responds to error bars check box. | |
| void | fillCutsOn (const PlotterBase *, std::vector< PlotterBase * > &cut_list) |
| Clears and fills the cut_list with PlotterBase objects that are cuts whose target is the active DataRep contained by plotter. | |
| void | fillPlotterList (std::vector< PlotterBase * > &plot_list) |
| Clears and Fills plot_list with the PlotterBase objects on the current canvas. | |
| int | findCutIndex (const QString &label) |
| Returns the index of the cut selections with label label. | |
| void | functionAddError () |
| Raises a function add error QMessageBox when the selected DataRep does not support the selected function. | |
| hippodraw::Axes::Type | getAxes (unsigned int index) |
| Returns the Axes::Type for the TupleCut at index i. | |
| const std::vector< const TupleCut * > & | getCutList (const PlotterBase *plotter) const |
| Returns the TupleCut list. | |
| const std::vector< PlotterBase * > & | getDataCutList (PlotterBase *plotter) |
| Returns the list of data cut plotter objects that target plotter. | |
| void | incompatibleDataRepError (const std::string &type) |
| Raises incompatible DataRep error dialog. | |
| void | incompatibleFitterError (const std::string &type) |
| Raises incompatible Fitter error dialog. | |
| void | incompatibleFunctionError (const std::string &type) |
| Raises the incompatible function error dialog. | |
| void | init () |
| Initializes the Inspector. | |
| void | invalidDataWarning () |
| Raises a dialog to warn user that bound DataSource has invalid data. | |
| void | invalidRangeError (const std::string &bad) |
| Raises invalid range error dialog. | |
| void | loadAllUsrModels () |
| void | multipleDataRepError (const std::string &type) |
| Raises an multiple DataRep error QMessageBox. | |
| void | multiplePlotError () |
| Raises a multiple plot error message box. | |
| void | newPlotError (const DataSourceException &e) |
| Raises a dialog for new plot error. | |
| void | noNTupleSelectedError () |
| Raises no NTuple selected error dialog. | |
| virtual void | ntupleChanged (int) |
| Responds to combo box that shows the NTuple name of the selected plot. | |
| virtual void | on_sel_combo_0_activated (const QString &) |
| Responds to combo box of selected plot be activated by changing the binding. | |
| virtual void | on_sel_combo_1_activated (const QString &) |
| Responds to combo box of selected plot be activated by changing the binding. | |
| virtual void | on_sel_combo_2_activated (const QString &) |
| Responds to combo box of selected plot be activated by changing the binding. | |
| virtual void | on_sel_combo_3_activated (const QString &) |
| Responds to combo box of selected plot be activated by changing the binding. | |
| void | setAllCutsActive (bool yes) |
Sets all CutPlotter objects to active state if yes is true, otherwise sets them inactive. | |
| void | setNewPlotNTuple (const std::string &name) |
| Sets the current item in the available NTuple selection box to one that matches name. | |
| virtual void | setZRadioButton (bool enabled) |
| Sets the Z axis radio button to proper state. | |
| void | statsStripValue (QRadioButton *box) |
| Strips the value part of the text field. | |
| void | updateAutoScaleBox () |
| Update the status of the auto scale check box. | |
| void | updateCutControls (const std::vector< PlotterBase * > &cutlist) |
| Updates the Cut controls in the Cut tabbed panel. | |
| void | updateCutControlValues (const PlotterBase *cutplotter) |
| Updates the Cut control values with those of the designated cut Plotter. | |
| void | updateCutEnableButton () |
| Updates the cut enabled push button control. | |
| void | updateCutsActive () |
| void | updateCutVarGroupBox (const PlotterBase *plotter, int index) |
| Updates the QGroupBox that displays to controller for creating a new cut. | |
| virtual void | updateErrorEllipseTab () |
| Updates the error Ellipse controls. | |
| void | updateLogBox () |
| Update the status of the log scale check box. | |
| void | updateNewPlotControls () |
| Updates the controls in the new plot group box. | |
| virtual void | updatePlotTab () |
| Updates the Plot tabbed panel's widgets. | |
| void | updateSelectedPlotData (const PlotterBase *plotter) |
| Updates the controls in the selected plot QGroupBox of the data inspector. | |
| void | updateSelectedPlotDataSource (const std::string &name) |
| Updates the selected plot data source combo box. | |
| void | updateSelectedPlotType (const PlotterBase *plotter) |
| Updates the selected plot DataRep type. | |
| void | updateTupleCuts (const std::vector< PlotterBase * > &cutlist) |
| Updates the list of TupleCut objects and their corresponding Plotter. | |
Private Attributes | |
| std::vector< double > | brk_points |
| User defined model parameter. | |
| std::vector< double > | color_scales |
| User defined model parameter. | |
| std::vector< double > | flat_widths |
| User defined model parameter. | |
| hippodraw::Axes::Type | m_axis |
| CanvasWindow * | m_cur_window |
| bool | m_cut_enable_updating |
| Set to true when cutEnablePushButton is being updated. | |
| std::map< PlotterBase *, int > | m_cut_map |
| A map of the last cut item selected for each plotter. | |
| bool | m_dragging |
| std::vector< int > | m_functionIndexMap |
| FunctionRep * | m_functionRep |
| The currently displayed FunctionRep. | |
| int | m_highslider1_last_val |
| The value of the high slider in Axis Widget 1 as last recorded. | |
| bool | m_is_updating |
Set to true if updating is being processed. | |
| int | m_last_cut_index |
| The index of the last selected cut. | |
| int | m_last_ntuple_edited |
| The m_all_ntuples item that was lasted edited. | |
| QWidget * | m_layoutWidget |
| int | m_lowslider1_last_val |
| The value of the low slider in Axis Widget 1 as last recorded. | |
| std::vector< QComboBox * > | m_new_combos |
| Binding combo boxes for new plot group box. | |
| std::vector< QLabel * > | m_new_labels |
| Binding labels for new plot group box. | |
| QWidget * | m_newLayoutWidget |
| QVBoxLayout * | m_newVLayout |
| std::vector< double > | m_oldParameters |
| PlotterBase * | m_plotter |
| The currently selected PlotterBase object. | |
| std::vector< PlotterBase * > | m_plotter_list |
| The currently selected plotters. | |
| Range | m_range |
| std::vector< QComboBox * > | m_sel_combos |
| Binding combo boxes for selected plot group box. | |
| std::vector< QLabel * > | m_sel_labels |
| Binding labels for selected plot group box. | |
| PlotterList_t | m_tuple_cut_plotters |
| The PlotterBase object associated with each TupleCut object. | |
| TupleCutList_t | m_tuple_cuts |
| The list of TupleCut objects currently selected. | |
| QVBoxLayout * | m_vLayout |
| std::map< const PlotterBase *, bool > | m_zoompan |
| std::vector< std::string > | usr_models |
| User defined model name. | |
|
|
The type of container for PlotterBase objects.
Definition at line 235 of file Inspector.h. |
|
|
The type of container for current TupleCut objects.
Definition at line 227 of file Inspector.h. |
|
||||||||||||||||||||
|
|
The virtual destructor.
Definition at line 199 of file Inspector.cxx. Referenced by Inspector(). |
|
|
Responds to click on the add Data Rep button.
Definition at line 1157 of file Inspector.cxx. References std::count(), getArrayTupleLabel(), getPlotter(), incompatibleDataRepError(), DisplayController::instance(), RootController::instance(), DataSourceController::instance(), invalidDataWarning(), QString::latin1(), m_new_combos, and update(). |
|
|
Definition at line 2578 of file Inspector.cxx. References disableCutControls(), getDataCutList(), getPlotter(), updateCutControls(), and updateCutControlValues(). Referenced by cutNew(), and updateCutsTab(). |
|
|
Definition at line 504 of file Inspector.cxx. References availPlotTypesActivated(), changeNTupleName(), and m_last_ntuple_edited. |
|
|
Slot which responds to the toggle in state of the autoScale check box.
Definition at line 4144 of file Inspector.cxx. References PlotterBase::getTransform(), m_axis, m_plotter_list, PeriodicBinaryTransform::setXOffset(), PeriodicBinaryTransform::setYOffset(), and updateAxisTab(). Referenced by setDragOn(). |
|
|
Definition at line 610 of file Inspector.cxx. References clearNewBindings(), DataSource::getLabels(), QWidget::hide(), DisplayController::instance(), DataSourceController::instance(), m_new_combos, m_new_labels, m_newLayoutWidget, and num_util::size(). Referenced by allNtupleComboActivated(), dataNTupleSelChanged(), and updateNewPlotControls(). |
|
||||||||||||
|
Responds to change in axis binding on existing plotter.
Definition at line 547 of file Inspector.cxx. References getPlotter(), DisplayController::instance(), invalidDataWarning(), QString::latin1(), m_plotter_list, m_sel_labels, and multiplePlotError(). Referenced by on_sel_combo_0_activated(), on_sel_combo_1_activated(), on_sel_combo_2_activated(), and on_sel_combo_3_activated(). |
|
|
Responds to return in axis label text box.
Definition at line 2022 of file Inspector.cxx. References convertToString(), getPlotter(), QString::latin1(), and m_axis. |
|
|
Responds to change in zoom/pan check box.
Definition at line 1855 of file Inspector.cxx. References getPlotter(), PlotterBase::getRange(), m_axis, m_zoompan, and PlotterBase::setAutoRanging(). Referenced by Inspector(). |
|
|
Changes the name NTuple. Changes the name of a NTuple object to new_name. The NTuple whose names get changed is the one whose name was last edited in the m_all_ntuples QComboBox. It was save in m_last_ntuple_edited. Definition at line 480 of file Inspector.cxx. References DataSourceController::instance(), QString::latin1(), and m_last_ntuple_edited. Referenced by allNtupleComboActivated(). |
|
|
Clears the combo boxes associated with new plot bindings.
Definition at line 596 of file Inspector.cxx. References m_new_combos, m_new_labels, and num_util::size(). Referenced by availPlotTypesActivated(). |
|
|
Sets the Color of the cut plotter.
Definition at line 4291 of file Inspector.cxx. References QColor::blue(), Color::getBlue(), QColorDialog::getColor(), Color::getGreen(), Color::getRed(), getSelectedCut(), QColor::green(), QColor::isValid(), and QColor::red(). |
|
|
Definition at line 1796 of file Inspector.cxx. References PlotterBase::activePlotIndex(), QColor::blue(), Color::getBlue(), QColorDialog::getColor(), Color::getGreen(), getPlotter(), Color::getRed(), QColor::green(), QColor::isValid(), multipleDataRepError(), QColor::red(), PlotterBase::repColor(), and PlotterBase::setRepColor(). |
|
|
The slot that recieves the signal when ComboBoxEllipsoidParamX (which is in the Confidence ellipsoid Group Box) is highlighted. It sets the paramter along the Y axis against which the confidence ellipsoid is to be plotted Definition at line 3630 of file Inspector.cxx. References FunctionController::instance(), and hippodraw::Axes::X. |
|
|
The slot that recieves the signal when ComboBoxEllipsoidParamY (which is in the Confidence ellipsoid Group Box) is highlighted. It sets the paramter along the Y axis against which the confidence ellipsoid is to be plotted Definition at line 3640 of file Inspector.cxx. References FunctionController::instance(), and hippodraw::Axes::Y. |
|
|
Raises message box on contour input error.
Definition at line 4412 of file Inspector.cxx. References QMessageBox::critical(). Referenced by contourLevelsTextBox_returnPressed(). |
|
|
Responds to change in contour levels text box.
Definition at line 4428 of file Inspector.cxx. References DisplayController::activeDataRepIndex(), contourError(), PlotterBase::getDataRep(), getPlotter(), DataRep::getProjector(), DataRep::getRepresentation(), DisplayController::instance(), QString::isEmpty(), Observable::notifyObservers(), ContourPointRep::setContourValues(), QString::simplifyWhiteSpace(), and QString::toDouble(). Referenced by contourRadioButton1_toggled(). |
|
|
Responds to change in 1st contour radio button.
Definition at line 4369 of file Inspector.cxx. References contourLevelsTextBox_returnPressed(), contourSlider_valueChanged(), ContourPointRep::getNumContours(), getPlotter(), and DataRep::getRepresentation(). Referenced by updateAxisTab(). |
|
|
Definition at line 4311 of file Inspector.cxx. References DisplayController::activeDataRepIndex(), PlotterBase::getDataRep(), getPlotter(), DataRep::getRepresentation(), DisplayController::instance(), Observable::notifyObservers(), ContourPointRep::setNumContours(), and ContourPointRep::setUsingUserValues(). Referenced by contourRadioButton1_toggled(). |
|
|
|
Definition at line 3724 of file Inspector.cxx. References m_axis, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. Referenced by axisLabelText(), setBinWidth(), setHighRange(), setLowRange(), setOffset(), and updateAxisTab(). |
|
|
Creates a display showing the residuals of the function.
Definition at line 3611 of file Inspector.cxx. References getPlotter(), WindowController::instance(), FunctionController::instance(), and hippodraw::Axes::X. |
|
|
The method to receive update events from the application queue. The event object's data should contain a pointer to a PlotterBase object. This object's properties will be use to update the Inspector's tabbed panels and will be the target for its controls. Definition at line 280 of file Inspector.cxx. References m_plotter, m_plotter_list, and update(). |
|
|
Adds all the cuts to the DataRep.
Definition at line 2536 of file Inspector.cxx. References getDataCutList(), getPlotter(), |