ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Base
VP1Base
VP12DExaminerViewer.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 VP12DExaminerViewer //
8
// //
9
// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10
// //
11
// Initial version: April 2007 //
12
// Major update to support multiple views: July 2007 //
13
// //
15
16
#ifndef VP12DEXAMINERVIEWER_H
17
#define VP12DEXAMINERVIEWER_H
18
19
#include <QList>
20
#include <QPair>
21
#include <QStringList>
22
#include <QWidget>
23
24
class
VP1GraphicsView
;
25
26
class
VP12DExaminerViewer
:
public
QWidget {
27
28
Q_OBJECT
29
30
public
:
31
32
//The choice of constructor will determine whether this view is in single or multi view mode:
33
34
//An examinerviewer with just one VP1GraphicsView:
35
VP12DExaminerViewer
(QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
36
//An examinerviewer with several VP1GraphicsView's. First argument is a list of view_id's and icon urls for the views:
37
VP12DExaminerViewer
(
const
QList<QPair<QString,QString> >& views, QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
38
virtual
~VP12DExaminerViewer
();
39
40
bool
isSingleViewMode
()
const
;
41
42
VP1GraphicsView
*
view
()
const
;
//Returns the pointer to the view which is currently shown.
43
VP1GraphicsView
*
view
(
const
QString& view_id)
const
;
//Returns pointer to view with a given view_id (0 if view_id not found or single view mode).
44
QString
currentView
()
const
;
//Only relevant in multiview mode (returns empty string otherwise)
45
46
//These two return empty stringlists if we are in the mode with just one VP1GraphicsView:
47
QStringList
viewIDs
()
const
;
48
QList<QPair<QString,QString> >
viewIDsAndIconUrls
()
const
;
49
50
public
Q_SLOTS:
51
void
setPickMode
();
52
void
setChangeViewMode
();
53
void
setSeekMode
();
54
void
setShownView
(
const
QString&);
//Only relevant in multiview mode
55
56
signals:
57
void
currentViewAboutToChange
(
VP1GraphicsView
*);
//Emitted just before the view changes. Parameter is the view which will be shown.
58
void
currentViewChanged
();
//Just after the view changed.
59
60
private
Q_SLOTS:
61
void
changeViewButtonClicked
();
62
private
:
63
VP12DExaminerViewer
(
const
VP12DExaminerViewer
& );
64
VP12DExaminerViewer
&
operator=
(
const
VP12DExaminerViewer
& );
65
class
Imp
;
66
Imp
*
m_d
;
67
68
};
69
70
#endif
VP12DExaminerViewer::Imp
Definition
VP12DExaminerViewer.cxx:26
VP12DExaminerViewer::VP12DExaminerViewer
VP12DExaminerViewer(QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags())
Definition
VP12DExaminerViewer.cxx:89
VP12DExaminerViewer::view
VP1GraphicsView * view() const
Definition
VP12DExaminerViewer.cxx:195
VP12DExaminerViewer::isSingleViewMode
bool isSingleViewMode() const
Definition
VP12DExaminerViewer.cxx:270
VP12DExaminerViewer::setPickMode
void setPickMode()
Definition
VP12DExaminerViewer.cxx:224
VP12DExaminerViewer::VP12DExaminerViewer
VP12DExaminerViewer(const VP12DExaminerViewer &)
VP12DExaminerViewer::currentViewChanged
void currentViewChanged()
VP12DExaminerViewer::setSeekMode
void setSeekMode()
Definition
VP12DExaminerViewer.cxx:240
VP12DExaminerViewer::viewIDsAndIconUrls
QList< QPair< QString, QString > > viewIDsAndIconUrls() const
Definition
VP12DExaminerViewer.cxx:261
VP12DExaminerViewer::setShownView
void setShownView(const QString &)
Definition
VP12DExaminerViewer.cxx:295
VP12DExaminerViewer::viewIDs
QStringList viewIDs() const
Definition
VP12DExaminerViewer.cxx:246
VP12DExaminerViewer::currentViewAboutToChange
void currentViewAboutToChange(VP1GraphicsView *)
VP12DExaminerViewer::currentView
QString currentView() const
Definition
VP12DExaminerViewer.cxx:276
VP12DExaminerViewer::m_d
Imp * m_d
Definition
VP12DExaminerViewer.h:66
VP12DExaminerViewer::operator=
VP12DExaminerViewer & operator=(const VP12DExaminerViewer &)
VP12DExaminerViewer::~VP12DExaminerViewer
virtual ~VP12DExaminerViewer()
Definition
VP12DExaminerViewer.cxx:189
VP12DExaminerViewer::setChangeViewMode
void setChangeViewMode()
Definition
VP12DExaminerViewer.cxx:232
VP12DExaminerViewer::changeViewButtonClicked
void changeViewButtonClicked()
Definition
VP12DExaminerViewer.cxx:320
VP1GraphicsView
Definition
VP1GraphicsView.h:22
Generated on
for ATLAS Offline Software by
1.17.0