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

#include <EventNavigator.h>

Inheritance diagram for EventNavigator:

Classes

class  MapSelection
 Class for different immersion techniques. More...
 

Public Types

enum  ImmerseScalingMethods { ScaleByGreatestDissimilarity =0, ScaleByGreatestDissimilarityInliers, ScaleByPercentileInliersLow, ScaleByPercentileInliersHigh }
 
enum  ColorMethods { ColorByStress =0, ColorByKruskalStress, ColorByCluster }
 
enum  UserActionModes { DefaultActionMode = MDSView::NO_ACTION, SingleClusterMode = MDSView::USER+1 }
 

Public Slots

void changeOptions ()
 Let the user change options (i.e. sample size, ground distance, weight type). More...
 
void overview ()
 Return to "overview" map, i.e. the map computed by init() from a random sample of all events. More...
 
void cluster ()
 Show cluster dialog. More...
 
void reset ()
 

Signals

void eventSelected (int index)
 
void info (const QString &)
 

Public Member Functions

 EventNavigator (QWidget *parent=0)
 
 ~EventNavigator ()
 
MDSView * view () const
 
bool init ()
 Create signatures for all events, compute overview map and show it. Assumes that a mDST is already loaded and fully accesible through Phast. EventMapDialog is shown to query EventMap options. More...
 

Protected Slots

void setScene (QGraphicsScene *scene)
 
void zoomAll ()
 
void zoomSelection ()
 
void selectEventUserMode (int index, int mode)
 
void fit (const QRectF &rect)
 Adjust viewer in such a way, that the region specified by rect is visible (keeps the aspect ratio) More...
 
void immerse (int index, double radius)
 Compute "immmersed" map, i.e. the map consisting only of events inside selected radius around pivot event. More...
 
void setImmerseScalingMethod (int method)
 
void setColorMethod (int method)
 
virtual void resizeEvent (QResizeEvent *event)
 

Protected Member Functions

void printInfo (const QString &msg)
 
EventMap * createMap (EventMap::SignatureSampler *sampler)
 
void showMap (EventMap *map, QString additionalInfo=QString(""))
 
EventMap * curMap ()
 
bool computeSignatures ()
 
bool computeOverviewMap ()
 
bool computeClustering (int k=-1)
 
EventSignature & findSignature (int phastIndex)
 

Detailed Description

Manage/create EventMap, the map's QGraphicsScene where it is drawn and a MDSView on it.

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

Member Enumeration Documentation

Enumerator
ColorByStress 
ColorByKruskalStress 
ColorByCluster 
Enumerator
ScaleByGreatestDissimilarity 
ScaleByGreatestDissimilarityInliers 
ScaleByPercentileInliersLow 
ScaleByPercentileInliersHigh 
Enumerator
DefaultActionMode 
SingleClusterMode 

Constructor & Destructor Documentation

EventNavigator::EventNavigator ( QWidget *  parent = 0)
EventNavigator::~EventNavigator ( )

Member Function Documentation

void EventNavigator::changeOptions ( )
slot
void EventNavigator::cluster ( )
slot

Show cluster dialog.

References computeClustering(), ClusterDialog::getNumClusters(), and showMap().

Referenced by computeClustering().

bool EventNavigator::computeClustering ( int  k = -1)
protected
bool EventNavigator::computeOverviewMap ( )
protected
bool EventNavigator::computeSignatures ( )
protected
EventMap * EventNavigator::createMap ( EventMap::SignatureSampler *  sampler)
protected
EventMap* EventNavigator::curMap ( )
inlineprotected
void EventNavigator::eventSelected ( int  index)
signal

User selected a single event in map (forwarded from MDSView)

Parameters
indexis the global event index (should be the same as used by Phast)

Referenced by EventNavigator().

EventSignature & EventNavigator::findSignature ( int  phastIndex)
protected
void EventNavigator::fit ( const QRectF &  rect)
protectedslot

Adjust viewer in such a way, that the region specified by rect is visible (keeps the aspect ratio)

Referenced by EventNavigator(), resizeEvent(), zoomAll(), and zoomSelection().

void EventNavigator::immerse ( int  index,
double  radius 
)
protectedslot
void EventNavigator::info ( const QString &  )
signal

Referenced by EventNavigator(), and printInfo().

bool EventNavigator::init ( )

Create signatures for all events, compute overview map and show it. Assumes that a mDST is already loaded and fully accesible through Phast. EventMapDialog is shown to query EventMap options.

References computeOverviewMap(), computeSignatures(), EventMapDialog::getGroundDistance(), EventMapDialog::getSampleSize(), EventMapDialog::getWeightType(), EventSignature::NormalizedWeight, overview(), printInfo(), reset(), and EventSignature::UnitWeight.

Referenced by MainWindow::updateNavigator().

void EventNavigator::overview ( )
slot

Return to "overview" map, i.e. the map computed by init() from a random sample of all events.

References MDSItem::setPivotIndex(), and showMap().

Referenced by changeOptions(), EventNavigator(), and init().

void EventNavigator::printInfo ( const QString &  msg)
inlineprotected
void EventNavigator::reset ( )
slot

References setScene().

Referenced by changeOptions(), init(), and MainWindow::openRootFile().

void EventNavigator::resizeEvent ( QResizeEvent *  event)
protectedvirtualslot

References fit().

void EventNavigator::selectEventUserMode ( int  index,
int  mode 
)
protectedslot
void EventNavigator::setColorMethod ( int  method)
protectedslot

References showMap().

Referenced by EventNavigator().

void EventNavigator::setImmerseScalingMethod ( int  method)
inlineprotectedslot

Referenced by EventNavigator().

void EventNavigator::setScene ( QGraphicsScene *  scene)
protectedslot

References zoomAll().

Referenced by reset(), and showMap().

void EventNavigator::showMap ( EventMap *  map,
QString  additionalInfo = QString("") 
)
protected
MDSView* EventNavigator::view ( ) const
inline
void EventNavigator::zoomAll ( )
protectedslot

References fit().

Referenced by EventNavigator(), and setScene().

void EventNavigator::zoomSelection ( )
protectedslot

References fit().