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

Combine a set of EventViewerWidget's to a 'perspective' (see enum Layouts) and provide user-interface. More...

#include <EventMultiViewer.h>

Inheritance diagram for EventMultiViewer:

Public Types

enum  Layouts {
  ONE_VIEWER =0, TWO_VIEWERS, FOUR_VIEWERS, CLUSTER_VIS,
  TRACKDET_VIS, NUM_LAYOUTS
}
 
enum  { DefaultLayout = TWO_VIEWERS }
 
enum  MouseMode { ROTATE = MyCameraWidget::ROTATE, RUBBERBAND = MyCameraWidget::RUBBERBAND, SELECT = MyCameraWidget::SELECT }
 
enum  ExportFormats { PS =GL2PS_PS, EPS =GL2PS_EPS, PDF =GL2PS_PDF, SVG =GL2PS_SVG }
 

Public Slots

void homeViewers ()
 
void triggerRedraw ()
 
void exportActiveViewerTo (int exportFormat)
 
QAction * layoutAction (int layout)
 
void setActiveParticle (int index)
 This is used to forward a particle change to any FilterVis* viewer who needs it. More...
 

Signals

void positionChanged (float x, float y, float z)
 

Public Member Functions

 EventMultiViewer ()
 
void setPhastScene (PhastScene *phastScene)
 
QToolBar * globalActionsToolbar ()
 Toolbar containing global actions (like "Zoom", "Rotate", "Select" and "Ruler") More...
 
QToolBar * localActionsToolbar ()
 Toolbar containing local per-viewer actions (like "Projection mode", "Link") More...
 

Protected Slots

void link (bool b)
 
void lock (bool b)
 
void setLayout (int layout)
 
void setLayout (QAction *layoutAction)
 
void setMouseMode (int mouseMode)
 
void setMouseMode (QAction *mouseModeAction)
 
void setRulerVisible (bool visible)
 
void setLocalActionsEnabled (bool enable)
 
void setActiveViewer (EventViewerWidget *viewer)
 
void changeProjection (int proj)
 
void requestView (Selectable *selectable)
 

Protected Member Functions

void createActions ()
 
void createWidgets ()
 
void createToolBars ()
 
QWidget * createViewerMatrix ()
 
QWidget * createClusterVisPerspective ()
 
QWidget * createTrackDetVisPerspective ()
 
void connectViewers ()
 
void disconnectViewers ()
 

Detailed Description

Combine a set of EventViewerWidget's to a 'perspective' (see enum Layouts) and provide user-interface.

Author
Max Hermann <mhermann[at]mail.cern.ch>

Member Enumeration Documentation

anonymous enum
Enumerator
DefaultLayout 
Enumerator
PS 
EPS 
PDF 
SVG 
Enumerator
ONE_VIEWER 
TWO_VIEWERS 
FOUR_VIEWERS 
CLUSTER_VIS 
TRACKDET_VIS 
NUM_LAYOUTS 
Enumerator
ROTATE 
RUBBERBAND 
SELECT 

Constructor & Destructor Documentation

EventMultiViewer::EventMultiViewer ( )

Member Function Documentation

void EventMultiViewer::changeProjection ( int  proj)
protectedslot
void EventMultiViewer::connectViewers ( )
protected
void EventMultiViewer::createActions ( )
protected
QWidget * EventMultiViewer::createClusterVisPerspective ( )
protected
void EventMultiViewer::createToolBars ( )
protected

Referenced by EventMultiViewer().

QWidget * EventMultiViewer::createTrackDetVisPerspective ( )
protected
QWidget * EventMultiViewer::createViewerMatrix ( )
protected
void EventMultiViewer::createWidgets ( )
protected

Referenced by EventMultiViewer().

void EventMultiViewer::disconnectViewers ( )
protected

References EVENTMULTIVIEWER_DEBUG_OUT.

Referenced by setLayout().

void EventMultiViewer::exportActiveViewerTo ( int  exportFormat)
slot
QToolBar* EventMultiViewer::globalActionsToolbar ( )
inline

Toolbar containing global actions (like "Zoom", "Rotate", "Select" and "Ruler")

Referenced by MainWindow::MainWindow().

void EventMultiViewer::homeViewers ( )
slot

Referenced by setLayout().

QAction * EventMultiViewer::layoutAction ( int  layout)
slot

Referenced by MainWindow::MainWindow().

void EventMultiViewer::link ( bool  b)
protectedslot
QToolBar* EventMultiViewer::localActionsToolbar ( )
inline

Toolbar containing local per-viewer actions (like "Projection mode", "Link")

void EventMultiViewer::lock ( bool  b)
protectedslot
void EventMultiViewer::positionChanged ( float  x,
float  y,
float  z 
)
signal

Referenced by connectViewers().

void EventMultiViewer::requestView ( Selectable *  selectable)
protectedslot
void EventMultiViewer::setActiveParticle ( int  index)
slot

This is used to forward a particle change to any FilterVis* viewer who needs it.

References FilterVisViewer::setActiveParticle().

void EventMultiViewer::setActiveViewer ( EventViewerWidget *  viewer)
protectedslot
void EventMultiViewer::setLayout ( int  layout)
protectedslot
void EventMultiViewer::setLayout ( QAction *  layoutAction)
protectedslot

References setLayout().

void EventMultiViewer::setLocalActionsEnabled ( bool  enable)
protectedslot
void EventMultiViewer::setMouseMode ( int  mouseMode)
protectedslot
void EventMultiViewer::setMouseMode ( QAction *  mouseModeAction)
protectedslot

References ROTATE, RUBBERBAND, SELECT, and setMouseMode().

void EventMultiViewer::setPhastScene ( PhastScene *  phastScene)
void EventMultiViewer::setRulerVisible ( bool  visible)
protectedslot

Referenced by createActions().

void EventMultiViewer::triggerRedraw ( )
slot