#include <ViewState.h>
This is a grab bag for qualities of a view which should be shared among multiple (although, not necessarily all) Gfx's. Instead of holding this state in an individual Gfx and then fighting to get all the signal/slot dependencies working, one should just modify the quantity via this state object and all Gfx's should connect and passively react to the related signal.
Contact: bv@bnl.gov
Created on: Tue Dec 31 13:44:07 2002
Definition at line 29 of file EventDisplay/ViewState.h.
|
|
Definition at line 39 of file Midad/MultiPage/ViewState.h. 00039 {
00040 color_is_charge,
00041 color_is_time
00042 } ColorSemantic_t;
|
|
|
Definition at line 39 of file EventDisplay/ViewState.h. Referenced by GetColorSemantic(). 00039 {
00040 color_is_charge,
00041 color_is_time
00042 } ColorSemantic_t;
|
|
|
Definition at line 51 of file Midad/MultiPage/ViewState.h. 00051 {
00052 metric_is_discreet, // strip/plane
00053 metric_is_continuous // real coords
00054 } SpatialMetric_t;
|
|
|
Definition at line 55 of file EventDisplay/ViewState.h. Referenced by GetSpatialMetric(). 00055 {
00056 metric_is_discreet, // strip/plane
00057 metric_is_continuous // real coords
00058 } SpatialMetric_t;
|
|
|
Definition at line 3 of file EventDisplay/ViewState.cxx. 00004 : fColorSemantic(color_is_charge) 00005 , fShowMultiplex(true) 00006 , fShowXYZ(false) 00007 , fSpatialMetric(metric_is_continuous) 00008 { 00009 }
|
|
|
Definition at line 10 of file EventDisplay/ViewState.cxx. 00010 {}
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 12 of file EventDisplay/ViewState.cxx. References ColorSemantic_t. Referenced by GfxDigitList::DigitMasked(), GfxDigitList::GetDigitColor(), GfxStripList::GetStripColor(), and GfxStripList::StripMasked(). 00013 {
00014 return fColorSemantic;
00015 }
|
|
|
|
|
|
Definition at line 67 of file EventDisplay/ViewState.cxx. References SpatialMetric_t. Referenced by GfxTrack::Configure(), GfxStrip::Configure(), GfxShower::Configure(), GfxMCVec::Configure(), and GfxDigit::Configure(). 00068 {
00069 return fSpatialMetric;
00070 }
|
|
|
|
|
|
Definition at line 16 of file EventDisplay/ViewState.cxx. References color_semantic, and fColorSemantic. 00017 {
00018 if (fColorSemantic == cs) return;
00019 fColorSemantic = cs;
00020 color_semantic.emit();
00021 }
|
|
|
|
|
|
Definition at line 35 of file EventDisplay/ViewState.cxx. References fShowMultiplex, and show_multiplex. 00036 {
00037 if (fShowMultiplex == show) return;
00038
00039 fShowMultiplex = show;
00040 show_multiplex.emit();
00041 }
|
|
|
Definition at line 53 of file EventDisplay/ViewState.cxx. References fShowXYZ, and show_xyz. 00054 {
00055 if (fShowXYZ == show) return;
00056
00057 fShowXYZ = show;
00058 show_xyz.emit();
00059 }
|
|
|
|
|
|
Definition at line 71 of file EventDisplay/ViewState.cxx. References fSpatialMetric, and spatial_metric. 00072 {
00073 if (fSpatialMetric == sm) return;
00074 fSpatialMetric = sm;
00075 spatial_metric.emit();
00076 }
|
|
|
|
|
|
Definition at line 30 of file EventDisplay/ViewState.cxx. Referenced by MultiPage::BuildMenus(), EVD::BuildMenus(), GfxDigitList::Configure(), and toggle_mux(). 00031 {
00032 return fShowMultiplex;
00033 }
|
|
|
Definition at line 48 of file EventDisplay/ViewState.cxx. 00049 {
00050 return fShowXYZ;
00051 }
|
|
|
|
|
|
Definition at line 22 of file EventDisplay/ViewState.cxx. References color_semantic, and fColorSemantic. 00023 {
00024 if (fColorSemantic == color_is_time) fColorSemantic = color_is_charge;
00025 else fColorSemantic = color_is_time;
00026 color_semantic.emit();
00027 }
|
|
|
|
|
|
Definition at line 43 of file EventDisplay/ViewState.cxx. References fShowMultiplex, and show_multiplex. 00044 {
00045 fShowMultiplex = !fShowMultiplex;
00046 show_multiplex.emit();
00047 }
|
|
|
|
|
|
Definition at line 77 of file EventDisplay/ViewState.cxx. References fSpatialMetric, and spatial_metric. 00078 {
00079 if (fSpatialMetric == metric_is_discreet) fSpatialMetric = metric_is_continuous;
00080 else fSpatialMetric = metric_is_discreet;
00081 spatial_metric.emit();
00082 }
|
|
|
Definition at line 61 of file EventDisplay/ViewState.cxx. References fShowXYZ, and show_xyz.
|
|
|
Definition at line 37 of file Midad/MultiPage/ViewState.h. |
|
|
Definition at line 37 of file EventDisplay/ViewState.h. Referenced by GfxStripList::Init(), GfxDigitList::Init(), SetColorSemantic(), and ToggleColorSemantic(). |
|
|
Definition at line 61 of file Midad/MultiPage/ViewState.h. Referenced by SetColorSemantic(), and ToggleColorSemantic(). |
|
|
Definition at line 62 of file Midad/MultiPage/ViewState.h. Referenced by SetShowMultiplex(), and ToggleMultiplex(). |
|
|
Definition at line 67 of file EventDisplay/ViewState.h. Referenced by SetShowXYZ(), and ToggleXYZ(). |
|
|
Definition at line 63 of file Midad/MultiPage/ViewState.h. Referenced by SetSpatialMetric(), and ToggleSpatialMetric(). |
|
|
Definition at line 37 of file Midad/MultiPage/ViewState.h. |
|
|
Definition at line 37 of file EventDisplay/ViewState.h. Referenced by MultiPage::BuildMenus(), EVD::BuildMenus(), SetShowMultiplex(), and ToggleMultiplex(). |
|
|
Definition at line 37 of file EventDisplay/ViewState.h. Referenced by SetShowXYZ(), and ToggleXYZ(). |
|
|
Definition at line 37 of file Midad/MultiPage/ViewState.h. |
|
|
Definition at line 37 of file EventDisplay/ViewState.h. Referenced by GfxTrackList::Init(), GfxStripList::Init(), GfxShowerList::Init(), GfxMCVecList::Init(), GfxDigitList::Init(), SetSpatialMetric(), and ToggleSpatialMetric(). |
1.3.9.1