 |
Belle II Software
release-05-02-19
|
20 class TEveElementList;
23 class TGPictureButton;
50 explicit DisplayUI(
bool automatic =
false);
73 void goToEvent(Long_t event, Long_t run, Long_t experiment);
105 void setTitle(
const std::string& fileName =
"");
void next()
Go to next event.
void hideObjects(const std::vector< std::string > &names)
hide objects with the given names.
bool getReturnValue() const
Return value for current event, only makes sense if allowFlaggingEvents(true) was called.
bool m_guiInitialized
Was GUI already built?
void showJumpToEventDialog()
Show a dialog to to enter exp, run, event numbers.
bool startDisplay()
Start interactive display for current event.
TGPictureButton * m_playPauseButton
Play / Pause button.
void autoAdvanceDelayChanged()
m_autoAdvanceDelay was changed, update m_timer if enabled.
void startAutomaticRun()
switch to automatic mode, where visualisations are saved for each event, with no interactive control.
void allowFlaggingEvents(const std::string &description="")
Show control for flagging events (to set module return value).
TGTextEntry * m_autoFileNamePrefix
File name prefix (prefix + #event + "_" + projection + ".png").
bool m_cumulative
If true, DisplayModule shouldn't clear previous data (i.e.
Control TEve browser user interface.
std::vector< std::string > m_hideObjects
objects which are to be hidden (can be manually re-enabled in tree view).
void clearEvent()
remove all event data in current event.
void automaticEvent()
The actual per-event functionality for automatic saving.
TGLabel * m_eventLabel
show event/run/exp number for current event.
TTimer * m_timer
Polling/auto-advance timer.
void handleEvent(Event_t *event)
Handles keyboard shortcuts.
void makeGui()
Build the buttons for event navigation.
void setTitle(const std::string &fileName="")
Set title of Eve window.
std::string m_label
Label shown in UI.
SplitGLView * m_viewPane
pointer to right-side pane with viewers.
void goToEvent(Long_t id)
Go to event with index id.
Wraps a module parameter that can be toggled from the UI.
int m_level
Level this parameter is shown at (0 is highest).
Abstract base class for different kinds of events.
TGCheckButton * m_flagEvent
Show control for flagging events (to set module return value).
void exit()
Close window and exit immediately.
void handleParameterChange(int id)
Called when one of the module parameters is changed via UI.
TGButton * m_nextButton
Button to switch to next event.
std::vector< Parameter > m_paramList
List of run time configurable module parameters.
void addParameter(const std::string &label, ModuleParam< bool > ¶m, int level)
Generate UI elements so the given module parameter can be changed at run time.
A single parameter of the module.
bool cumulativeIsOn() const
If true, DisplayModule shouldn't clear previous data (i.e.
bool m_reshowCurrentEvent
Show current event again after startDisplay() returns?
void togglePlayPause()
Handle Play/Pause button clicks.
bool m_automatic
If true, disable interactive control and call automaticEvent() instead.
void toggleCumulative()
toggle cumulative mode.
TGButton * m_prevButton
Button to switch to previous event.
void toggleUndock()
dock/undock active viewer.
void showUserData(const DisplayData &displayData)
Add user-defined data (histograms, etc.).
TGNumberEntry * m_autoPictureWidth
width of saved PNGs.
ModuleParam< bool > * m_param
wrapped parameter.
TEveElementList * m_eventData
List of event data, including projections.
Add custom information to the display.
SplitGLView * getViewPane()
return right-side pane with viewers.
void prev()
Go to previous event.
void selectionHandler(TEveElement *eveObj)
Handle special actions when objects are selected.
TGNumberEntry * m_eventNumberWidget
Event switcher with numeric entry.
void goToEventWidget()
go to the event given by m_eventNumberWidget.
void saveHiResPicture()
alias for savePicture(true).
TGNumberEntry * m_autoAdvanceDelay
Delay for automatic advance, in seconds.
void pollNewEvents()
Check if new events are available, and go to next event.
void updateUI()
Update UI after a new event was loaded, as well as m_currentEntry.
void toggleColorScheme()
Toggle between light and dark color scheme for viewers.
DisplayUI(bool automatic=false)
Constructor.
long m_currentEntry
Current entry id.
void savePicture(bool highres=false)
Save the current view to a user-defined filename.
Responsible for arranging the GL viewers and providing related functionality.