|
CEDRIC
Revision_backup-2009-02
|
#include <EventNavigator.h>
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) |
| EventNavigator::EventNavigator | ( | QWidget * | parent = 0 | ) |
| EventNavigator::~EventNavigator | ( | ) |
|
slot |
Let the user change options (i.e. sample size, ground distance, weight type).
References computeOverviewMap(), computeSignatures(), EventMapDialog::getGroundDistance(), EventMapDialog::getSampleSize(), EventMapDialog::getWeightType(), overview(), reset(), EventMapDialog::setGroundDistance(), EventMapDialog::setSampleSize(), and EventMapDialog::setWeightType().
|
slot |
Show cluster dialog.
References computeClustering(), ClusterDialog::getNumClusters(), and showMap().
Referenced by computeClustering().
|
protected |
| k | number of clusters (-1 lets AutomaticPAM decide which k to use) |
References PAMClustering::calcSilhouette(), AutomaticPAM::cluster(), PAMClustering::cluster(), cluster(), EventMap::distanceMatrix(), findSignature(), ProgressIndicator::finish(), EventMap::getIndex(), PAMClustering::labels(), PAMClustering::medoids(), AutomaticPAM::pam(), ProgressIndicator::poll(), printInfo(), GlobalProgressIndicator::ref(), GlobalProgressIndicator::setLabel(), EventSignature::setLabel(), ProgressIndicator::setRange(), GlobalProgressIndicator::setTitle(), ProgressIndicator::start(), EarthMoversDistance< T, F >::value(), and ProgressIndicator::wasCanceled().
Referenced by cluster().
|
protected |
References createMap(), EventMap::numCoordinates(), printInfo(), and EventMap::wasCanceled().
Referenced by changeOptions(), and init().
|
protected |
References FeatureCovar< F, DIM_FEAT >::compute(), createSignaturesAll(), ProgressIndicator::finish(), FeatureCovar< F, DIM_FEAT >::print(), printInfo(), GlobalProgressIndicator::ref(), GlobalProgressIndicator::setLabel(), and GlobalProgressIndicator::setTitle().
Referenced by changeOptions(), and init().
|
protected |
|
inlineprotected |
Referenced by EventNavigator::MapSelection::MapSelection().
|
signal |
User selected a single event in map (forwarded from MDSView)
| index | is the global event index (should be the same as used by Phast) |
Referenced by EventNavigator().
|
protected |
Referenced by computeClustering(), immerse(), EventNavigator::MapSelection::MapSelection(), selectEventUserMode(), and showMap().
|
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().
|
protectedslot |
Compute "immmersed" map, i.e. the map consisting only of events inside selected radius around pivot event.
References createMap(), findSignature(), SignaturePivotSample::fractionVisible(), printInfo(), ScaleByGreatestDissimilarity, ScaleByGreatestDissimilarityInliers, ScaleByPercentileInliersHigh, ScaleByPercentileInliersLow, EventSignature::setPivotDistance(), MDSItem::setPivotIndex(), showMap(), SignaturePivotSample::sizeIn(), EventMap::stressKruskal(), EarthMoversDistance< T, F >::value(), and EventMap::wasCanceled().
Referenced by EventNavigator().
|
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().
|
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().
|
inlineprotected |
References info().
Referenced by computeClustering(), computeOverviewMap(), computeSignatures(), immerse(), init(), selectEventUserMode(), and showMap().
|
slot |
References setScene().
Referenced by changeOptions(), init(), and MainWindow::openRootFile().
|
protectedvirtualslot |
References fit().
|
protectedslot |
References createMap(), findSignature(), EventSignature::label(), EventMap::numCoordinates(), printInfo(), showMap(), SingleClusterMode, and EventMap::wasCanceled().
Referenced by EventNavigator().
|
protectedslot |
References showMap().
Referenced by EventNavigator().
|
inlineprotectedslot |
Referenced by EventNavigator().
|
protectedslot |
|
protected |
References MDSItem::adjustSize(), ColorByCluster, ColorByKruskalStress, ColorByStress, findSignature(), EventMap::getCoordinate(), EventMap::getIndex(), EventMap::getKruskalPointStress(), EventMap::getRawStress(), EventSignature::label(), EventMap::numCoordinates(), printInfo(), MDSItem::setPointSize(), setScene(), EventMap::stressMean(), EventMap::stressNorm(), EventMap::Coordinate::x, and EventMap::Coordinate::y.
Referenced by cluster(), immerse(), overview(), selectEventUserMode(), and setColorMethod().
|
inline |
|
protectedslot |
References fit().
Referenced by EventNavigator(), and setScene().
|
protectedslot |
References fit().
1.8.6