Public Member Functions | |
const GUIModelData & | Data () const |
void | Subscribe (GUIModelSubscriber *s, unsigned int which) |
void | Unsubscribe (GUIModelSubscriber *s) |
void | HistogramBack () |
void | HistogramForward () |
void | SetDetector (const char *n) |
void | SetHistogramSource (const char *s) |
void | SetCurrentHistogram (const char *h) |
void | SetCSVFile (std::string v) |
void | SetHistogramInfoText (const char *t) |
void | SetPlotViewRefreshPaused (bool paused) |
void | DrawContentProjection () |
void | SendUpdates () const |
void | SetCompareWhich (unsigned int i) |
void | SetReferenceFile (const char *RefFile) |
void | SetLookBack (int lb) |
void | SetCompareMethod (unsigned int i) |
void | SetCompareNorm (unsigned int i) |
void | SendWatchListUpdate () |
void | SendPrint () |
void | Publish (unsigned int which) const |
void | Init () |
Static Public Member Functions | |
static GUIModel & | Instance () |
Private Member Functions | |
GUIModel () | |
Private Attributes | |
GUIModelData | fData |
std::vector< GUIModelSubscriber * > | fSubscriber |
std::vector< unsigned int > | fWhich |
Definition at line 11 of file GUIModel.h.
|
private |
|
inline |
Definition at line 15 of file GUIModel.h.
References DrawContentProjection(), fData, GUIModel(), make_syst_table_plots::h, HistogramBack(), HistogramForward(), MECModelEnuComparisons::i, Init(), getGoodRuns4SAM::n, Publish(), SendPrint(), SendUpdates(), SendWatchListUpdate(), SetCompareMethod(), SetCompareNorm(), SetCompareWhich(), SetCSVFile(), SetCurrentHistogram(), SetDetector(), SetHistogramInfoText(), SetHistogramSource(), SetLookBack(), SetPlotViewRefreshPaused(), SetReferenceFile(), string, Subscribe(), confusionMatrixTree::t, Unsubscribe(), and registry_explorer::v.
Referenced by om::PlotClickHandler::DecodeClick(), om::PlotClickHandler::FEButcInfo(), om::HeaderBar::HandleTimer(), om::HistogramBrowser::MakeCategories(), om::PlotOptions::MakeLabelText(), om::MenuBar::ResetLocks(), om::PlotViewer::Update(), and om::PlotViewer::UpdateCompare().
void GUIModel::DrawContentProjection | ( | ) |
Definition at line 203 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, om::GUIModelData::fContentProjection, fData, om::ComparisonOptions::fWhich, om::kComparisonUpdateID, om::ComparisonOptions::kNone, om::kPlotViewRefreshID, and Publish().
Referenced by Data(), and om::ButtonBank::Histo().
void GUIModel::HistogramBack | ( | ) |
Definition at line 113 of file GUIModel.cxx.
References om::CurrentHistogram::Backward(), om::GUIModelData::fCurrentHistogram, fData, om::kCurrentHistogramID, and Publish().
Referenced by om::ButtonBank::Back(), and Data().
void GUIModel::HistogramForward | ( | ) |
Definition at line 121 of file GUIModel.cxx.
References om::GUIModelData::fCurrentHistogram, fData, om::CurrentHistogram::Forward(), om::kCurrentHistogramID, and Publish().
Referenced by Data(), and om::ButtonBank::Forward().
void GUIModel::Init | ( | ) |
Definition at line 19 of file GUIModel.cxx.
References om::kComparisonUpdateID, om::kCurrentHistogramID, om::kPlotViewRefreshID, om::kPrintID, om::kRefFileInitID, and Publish().
Referenced by Data().
|
static |
Definition at line 11 of file GUIModel.cxx.
Referenced by om::ButtonBank::Back(), om::ButtonBank::ButtonBank(), om::UTCLabel::DCMLabels(), om::PlotClickHandler::DCMutcInfo(), om::PlotClickHandler::DecodeClick(), om::PlotClickHandler::DefaultHistogramInfo(), om::HistogramBrowser::DoubleClicked(), om::UTCLabel::FEBLabels(), om::PlotClickHandler::FEButcInfo(), om::MenuBar::FilePrint(), om::ButtonBank::Forward(), om::ComparisonBox::GUIModelDataIssue(), om::GUIModelSubscriber::GUIModelSubscriber(), om::WatchListBox::HandleAddToList(), om::ComparisonBox::HandleApplyOptions(), om::ComparisonBox::HandleCompareHowButtons(), om::ComparisonBox::HandleCompareNormButtons(), om::ComparisonBox::HandleCompareWhichButtons(), om::ComparisonBox::HandleFileBrowse(), om::WatchListBox::HandleRemoveFromList(), om::HeaderBar::HandleTimer(), om::ButtonBank::HandleTimer(), om::ButtonBank::Histo(), om::PlotClickHandler::HwDCMHistogramInfo(), om::PlotClickHandler::HwDetDoubleClick(), om::PlotClickHandler::HwDetHistogramInfo(), om::PlotClickHandler::HwPCHistogramInfoX(), om::PlotClickHandler::HwPCHistogramInfoY(), om::WatchListBox::LayoutHardwareFrame(), om::HistogramBrowser::MakeCategories(), om::PlotOptions::MakeLabelText(), om::PlotOptions::MakeSpecialLabel(), om::ButtonBank::Pause(), om::PlotClickHandler::PlotClickHandler(), om::HistogramBrowser::Populate(), om::ButtonBank::PrintPlot(), om::MenuBar::ResetLocks(), om::ButtonBank::Resume(), om::ButtonBank::Update(), om::PlotViewer::Update(), om::PlotViewer::UpdateCompare(), om::WatchListBox::UpdateCurrentList(), om::WatchListBox::UpdateHWboxes(), and om::GUIModelSubscriber::~GUIModelSubscriber().
Definition at line 227 of file GUIModel.cxx.
References fData, fSubscriber, fWhich, gsLocked, and MECModelEnuComparisons::i.
Referenced by Data(), DrawContentProjection(), om::ComparisonBox::HandleApplyOptions(), HistogramBack(), HistogramForward(), Init(), SendPrint(), SendUpdates(), SendWatchListUpdate(), SetCompareMethod(), SetCompareNorm(), SetCompareWhich(), SetCurrentHistogram(), SetDetector(), SetHistogramInfoText(), SetHistogramSource(), SetLookBack(), SetPlotViewRefreshPaused(), and SetReferenceFile().
void GUIModel::SendPrint | ( | ) |
Definition at line 196 of file GUIModel.cxx.
References om::kPrintID, and Publish().
Referenced by Data(), om::MenuBar::FilePrint(), and om::ButtonBank::PrintPlot().
void GUIModel::SendUpdates | ( | ) | const |
Definition at line 217 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fWhich, om::kComparisonUpdateID, om::ComparisonOptions::kNone, om::kPlotViewRefreshID, and Publish().
Referenced by Data(), and om::ButtonBank::Update().
void GUIModel::SendWatchListUpdate | ( | ) |
Definition at line 189 of file GUIModel.cxx.
References om::kWatchListUpdateID, and Publish().
Referenced by Data(), om::WatchListBox::HandleAddToList(), and om::WatchListBox::HandleRemoveFromList().
Definition at line 173 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fMethod, MECModelEnuComparisons::i, om::kComparisonOptionsID, and Publish().
Referenced by Data(), and om::ComparisonBox::HandleCompareHowButtons().
Definition at line 181 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fNormalize, MECModelEnuComparisons::i, om::kComparisonOptionsID, and Publish().
Referenced by Data(), and om::ComparisonBox::HandleCompareNormButtons().
Definition at line 147 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fWhich, MECModelEnuComparisons::i, om::kComparisonOptionsID, and Publish().
Referenced by Data(), om::ComparisonBox::HandleCompareWhichButtons(), and om::ComparisonBox::HandleFileBrowse().
void GUIModel::SetCSVFile | ( | std::string | v | ) |
Definition at line 78 of file GUIModel.cxx.
References fData, and om::GUIModelData::SetCSVFile().
Referenced by Data().
void GUIModel::SetCurrentHistogram | ( | const char * | h | ) |
Definition at line 102 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, om::GUIModelData::fCurrentHistogram, fData, om::ComparisonOptions::fWhich, om::kComparisonUpdateID, om::kCurrentHistogramID, om::ComparisonOptions::kNone, Publish(), and om::CurrentHistogram::Set().
Referenced by Data(), om::HistogramBrowser::DoubleClicked(), and om::PlotClickHandler::HwDetDoubleClick().
void GUIModel::SetDetector | ( | const char * | n | ) |
Definition at line 57 of file GUIModel.cxx.
References om::cout, fData, om::GUIModelData::fDetector, om::kDetectorID, om::kFARDET, om::kNDOS, om::kNEARDET, om::kTESTBEAM, Munits::nm, Publish(), and string.
Referenced by Data().
void GUIModel::SetHistogramInfoText | ( | const char * | t | ) |
Definition at line 129 of file GUIModel.cxx.
References fData, om::GUIModelData::fHistogramInfoText, om::kHistogramInfoTextID, Publish(), and confusionMatrixTree::t.
Referenced by Data(), om::PlotClickHandler::DCMutcInfo(), om::PlotClickHandler::DefaultHistogramInfo(), om::PlotClickHandler::FEButcInfo(), om::PlotClickHandler::HwDCMHistogramInfo(), om::PlotClickHandler::HwDetHistogramInfo(), om::PlotClickHandler::HwPCHistogramInfoX(), and om::PlotClickHandler::HwPCHistogramInfoY().
void GUIModel::SetHistogramSource | ( | const char * | s | ) |
Definition at line 85 of file GUIModel.cxx.
References galleryMaker::ext, fData, om::GUIModelData::fHistogramSource, om::kHistogramSourceID, Publish(), SetPlotViewRefreshPaused(), ss, and string.
Referenced by Data().
Definition at line 163 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fLookBack, om::kComparisonOptionsID, and Publish().
Referenced by Data(), and om::ComparisonBox::HandleApplyOptions().
void GUIModel::SetPlotViewRefreshPaused | ( | bool | paused | ) |
Definition at line 137 of file GUIModel.cxx.
References fData, om::GUIModelData::fPlotViewRefreshPaused, om::kPlotViewRefreshPausedID, and Publish().
Referenced by Data(), om::ButtonBank::Pause(), om::ButtonBank::Resume(), and SetHistogramSource().
void GUIModel::SetReferenceFile | ( | const char * | RefFile | ) |
Definition at line 155 of file GUIModel.cxx.
References om::GUIModelData::fComparisonOpt, fData, om::ComparisonOptions::fReferenceFile, om::kComparisonOptionsID, and Publish().
Referenced by Data(), and om::ComparisonBox::HandleFileBrowse().
void GUIModel::Subscribe | ( | GUIModelSubscriber * | s, |
unsigned int | which | ||
) |
Definition at line 35 of file GUIModel.cxx.
References fSubscriber, fWhich, and push_back().
Referenced by Data(), and om::GUIModelSubscriber::GUIModelSubscriber().
void GUIModel::Unsubscribe | ( | GUIModelSubscriber * | s | ) |
Definition at line 43 of file GUIModel.cxx.
References fSubscriber, and MECModelEnuComparisons::i.
Referenced by Data(), and om::GUIModelSubscriber::~GUIModelSubscriber().
|
private |
Definition at line 47 of file GUIModel.h.
Referenced by Data(), DrawContentProjection(), HistogramBack(), HistogramForward(), Publish(), SendUpdates(), SetCompareMethod(), SetCompareNorm(), SetCompareWhich(), SetCSVFile(), SetCurrentHistogram(), SetDetector(), SetHistogramInfoText(), SetHistogramSource(), SetLookBack(), SetPlotViewRefreshPaused(), and SetReferenceFile().
|
private |
Definition at line 48 of file GUIModel.h.
Referenced by Publish(), Subscribe(), and Unsubscribe().
|
private |
Definition at line 49 of file GUIModel.h.
Referenced by Publish(), and Subscribe().