CEDRIC  Revision_backup-2009-02
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
MainWindow Class Reference

MainWindow for QtOsgEventDisplay application. More...

#include <MainWindow.h>

Inheritance diagram for MainWindow:

Public Slots

void openRootFile (const QString &filename="")
 Open a ROOT tree mDST from disk, if no filename is given a file dialog is shown. More...
 
void reload ()
 Reload a ROOT file with curent selected event and configuration. More...
 
void setPositionStatus (float x, float y, float z)
 Set statusbar position entry. More...
 
void selectEvent (int index, bool showProgress=false)
 Load specific event from EventList. More...
 
void updateNavigator ()
 Call EventNavigator::init() which creates Signatures for all events and shows overview map (may take a while!) More...
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 
virtual ~MainWindow ()
 

Protected Slots

void exportAction (QAction *ea)
 
void optionShowOnlyParticles (bool b)
 
void optionShowOnlyPhysicalTracks (bool b)
 

Protected Member Functions

void connectDocks (bool enable=true)
 Make connections from and to all docks when enable==true, else kills all connections. More...
 
void updateViewers ()
 Update setup and event nodes of active viewers. More...
 
bool buildSetup ()
 Instantiate PhastParser and build setup tree and scenegraph, returns false on failure. More...
 
bool loadSetup (int run)
 Load setup for specified run (calls buildSetup() internally) More...
 
void resizeEvent (QResizeEvent *event)
 
void moveEvent (QMoveEvent *event)
 

Detailed Description

MainWindow for QtOsgEventDisplay application.

Some of its content is specified in MainWindow.ui so it can be easily modified with QtDesigner.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0)
MainWindow::~MainWindow ( )
virtual

Member Function Documentation

bool MainWindow::buildSetup ( )
protected

Instantiate PhastParser and build setup tree and scenegraph, returns false on failure.

References g_phast, StopWatch::start(), and StopWatch::stop().

Referenced by loadSetup(), and reload().

void MainWindow::connectDocks ( bool  enable = true)
protected

Make connections from and to all docks when enable==true, else kills all connections.

References reload(), and selectEvent().

Referenced by openRootFile().

void MainWindow::exportAction ( QAction *  ea)
protectedslot
bool MainWindow::loadSetup ( int  run)
protected
void MainWindow::moveEvent ( QMoveEvent *  event)
protected
void MainWindow::openRootFile ( const QString &  filename = "")
slot
void MainWindow::optionShowOnlyParticles ( bool  b)
protectedslot
void MainWindow::optionShowOnlyPhysicalTracks ( bool  b)
protectedslot
void MainWindow::reload ( )
slot

Reload a ROOT file with curent selected event and configuration.

References buildSetup(), and updateViewers().

Referenced by connectDocks().

void MainWindow::resizeEvent ( QResizeEvent *  event)
protected
void MainWindow::selectEvent ( int  index,
bool  showProgress = false 
)
slot

Load specific event from EventList.

Loads selected event as Phast current event and build the scenegraph node containing the tracks. If necessary also loads setup and builds its scenegraph node. Finally the EventViewerWidget's scenegraph is updated.

Warning
EventList m_eventList must correspond to current open Phast file!

References g_phast, loadSetup(), PhastInterface::phast(), ProgressIndicator::poll(), ProgressIndicator::progress(), GlobalProgressIndicator::ref(), PhastInterface::ref(), GlobalProgressIndicator::setLabel(), StopWatch::start(), StopWatch::stop(), and updateViewers().

Referenced by connectDocks(), MainWindow(), openRootFile(), and updateNavigator().

void MainWindow::setPositionStatus ( float  x,
float  y,
float  z 
)
slot

Set statusbar position entry.

void MainWindow::updateNavigator ( )
slot

Call EventNavigator::init() which creates Signatures for all events and shows overview map (may take a while!)

References EventNavigator::init(), and selectEvent().

Referenced by MainWindow().

void MainWindow::updateViewers ( )
protected

Update setup and event nodes of active viewers.

References EventMultiViewer::setPhastScene(), StopWatch::start(), and StopWatch::stop().

Referenced by reload(), and selectEvent().