ATLAS Offline Software
Loading...
Searching...
No Matches
IVP12DSystem.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// Header file for class IVP12DSystem //
8// //
9// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10// //
11// Initial version: April 2007 //
12// //
14
15#ifndef IVP12DSYSTEM_H
16#define IVP12DSYSTEM_H
17
18#include "VP1Base/IVP1System.h"
19
20#include <QSet>
21
23class QGraphicsItem;
24
25class IVP12DSystem : public IVP1System {
26
27 Q_OBJECT
28
29public:
30
35
36 IVP12DSystem(const QString & name, const QString & information, const QString & contact_info);
37
38 //Derived classes must call the following method exactly once on
39 //each item collection they provide:
41
42 //Reimplement if you need to catch user picks, selections or events (you need to enable the item collections for this!):
43
44 virtual void itemPicked(VP1GraphicsItemCollection*,QGraphicsItem*);
45 virtual void itemGotEvent(VP1GraphicsItemCollection*,QGraphicsItem*,QEvent*);
46 virtual void selectionChanged(VP1GraphicsItemCollection*,QList<QGraphicsItem*>);
47
48 //This is for use by the channels:
49 const QSet<VP1GraphicsItemCollection*>& getItemCollections();
50
55
56 virtual ~IVP12DSystem();
57
58signals:
59 void itemFromSystemSelected();//Should be emitted whenever item in this system is selected (mainly to give channel chance to show the system controller)
60
61private:
64 class Imp;
66
67private Q_SLOTS:
68 void itemPickedPrivate(QGraphicsItem*);
69 void itemGotEventPrivate(QGraphicsItem*,QEvent*);
70 void selectionChangedPrivate(const QList<QGraphicsItem*>&);
71};
72
73#endif
virtual void itemPicked(VP1GraphicsItemCollection *, QGraphicsItem *)
virtual void selectionChanged(VP1GraphicsItemCollection *, QList< QGraphicsItem * >)
IVP12DSystem(const IVP12DSystem &)
void selectionChangedPrivate(const QList< QGraphicsItem * > &)
IVP12DSystem(const QString &name, const QString &information, const QString &contact_info)
void itemGotEventPrivate(QGraphicsItem *, QEvent *)
virtual void itemGotEvent(VP1GraphicsItemCollection *, QGraphicsItem *, QEvent *)
virtual ~IVP12DSystem()
void itemFromSystemSelected()
IVP12DSystem & operator=(const IVP12DSystem &)
const QSet< VP1GraphicsItemCollection * > & getItemCollections()
void registerItemCollection(VP1GraphicsItemCollection *)
void itemPickedPrivate(QGraphicsItem *)
const QString & name() const
IVP1System(const QString &name, const QString &information, const QString &contact_info)
const QString & information() const
const QString & contact_info() const