CEDRIC  Revision_backup-2009-02
SelectionDispatcher.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 2008 Boris Iven, Max Hermann
4  *
5  * This file is part of the "CEDRIC Event Display" application.
6  *
7  *****************************************************************************/
8 
9 #ifndef SELECTIONDISPATCHER_H
10 #define SELECTIONDISPATCHER_H
11 
12 #include <QObject>
13 #include <list>
14 
15 class PhastNode;
16 
26 class SelectionDispatcher : public QObject
27 {
28  Q_OBJECT
29 
30 signals:
31  void highlightSetupEntity( int uid );
32  void highlightEventEntity( int uid );
33 
34 public:
35  typedef std::list<PhastNode*> PhastNodes;
36 
37  void highlight( PhastNode* phastNode );
38  //void select( PhastNodes phastNodes );
39 
42 public:
43  static SelectionDispatcher& ref() { static SelectionDispatcher sd; return sd; }
44 private:
47  SelectionDispatcher( const SelectionDispatcher& /*sd*/ ): QObject() {}
48  SelectionDispatcher& operator = ( const SelectionDispatcher& /*sd*/ ) { return *this; }
50 };
51 
52 #endif
void highlightSetupEntity(int uid)
Graphical representation of Phast objects (e.g. PaDetector, PaTrack, ...) as OpenSceneGraph node...
Definition: PhastNode.h:32
void highlight(PhastNode *phastNode)
Definition: SelectionDispatcher.cpp:15
std::list< PhastNode * > PhastNodes
Definition: SelectionDispatcher.h:35
static SelectionDispatcher & ref()
Definition: SelectionDispatcher.h:43
Forward picked PhastNode's index (UID) to corresponding widget (i.e. SetupTreeWidget or ParticleTreeW...
Definition: SelectionDispatcher.h:26
void highlightEventEntity(int uid)