#include <VP1EventDisplaySceneView.h>
Definition at line 65 of file VP1EventDisplaySceneView.h.
◆ VP1EventDisplaySceneView()
VP1EventDisplaySceneView::VP1EventDisplaySceneView |
( |
const QString & |
name, |
|
|
bool |
preview = false , |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Definition at line 41 of file VP1EventDisplaySceneView.cxx.
47 setFrameStyle(Sunken | StyledPanel);
52 m_graphicsView->setOptimizationFlags(QGraphicsView::DontSavePainterState);
53 m_graphicsView->setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
54 m_graphicsView->setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
56 int size =
style()->pixelMetric(QStyle::PM_ToolBarIconSize);
66 m_zoomInIcon->setIcon(QPixmap(
":/vp1/icons/icons/zoomin.png"));
73 m_zoomOutIcon->setIcon(QPixmap(
":/vp1/icons/icons/zoomout.png"));
116 QHBoxLayout *labelLayout =
new QHBoxLayout;
118 m_label2 =
new QLabel(tr(
"Pointer Mode"));
144 m_printButton->setIcon(QIcon(QPixmap(
":/vp1/icons/icons/fileprint.png")));
146 QButtonGroup *pointerModeGroup =
new QButtonGroup;
147 pointerModeGroup->setExclusive(
true);
151 labelLayout->addWidget(
m_label);
152 labelLayout->addStretch();
158 labelLayout->addStretch();
164 QGridLayout *topLayout =
new QGridLayout;
165 topLayout->addLayout(labelLayout, 0, 0);
184 setLayout(topLayout);
◆ ~VP1EventDisplaySceneView()
VP1EventDisplaySceneView::~VP1EventDisplaySceneView |
( |
| ) |
|
◆ addRenderingFrame()
void VP1EventDisplaySceneView::addRenderingFrame |
( |
| ) |
|
Definition at line 246 of file VP1EventDisplaySceneView.cxx.
250 QPen pen(
Qt::red, 5, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
258 qreal
x1 = sceneRect.left();
259 qreal
y1 = sceneRect.bottom();
261 qreal
x2 = sceneRect.right();
◆ hideRenderingFrame()
void VP1EventDisplaySceneView::hideRenderingFrame |
( |
| ) |
|
◆ print
void VP1EventDisplaySceneView::print |
( |
| ) |
|
|
slot |
Definition at line 341 of file VP1EventDisplaySceneView.cxx.
343 #ifndef QT_NO_PRINTER
345 QPrintDialog dialog(&printer,
this);
347 QPainter painter(&printer);
◆ resetView
void VP1EventDisplaySceneView::resetView |
( |
| ) |
|
|
privateslot |
◆ rotateLeft
void VP1EventDisplaySceneView::rotateLeft |
( |
| ) |
|
|
privateslot |
◆ rotateRight
void VP1EventDisplaySceneView::rotateRight |
( |
| ) |
|
|
privateslot |
◆ setPreviewZoom()
void VP1EventDisplaySceneView::setPreviewZoom |
( |
qreal |
xx | ) |
|
◆ setResetButtonEnabled
void VP1EventDisplaySceneView::setResetButtonEnabled |
( |
| ) |
|
|
privateslot |
◆ setupMatrix
void VP1EventDisplaySceneView::setupMatrix |
( |
| ) |
|
|
privateslot |
◆ showRenderingFrame()
void VP1EventDisplaySceneView::showRenderingFrame |
( |
| ) |
|
◆ toggleAntialiasing
void VP1EventDisplaySceneView::toggleAntialiasing |
( |
| ) |
|
|
privateslot |
◆ toggleOpenGL
void VP1EventDisplaySceneView::toggleOpenGL |
( |
| ) |
|
|
privateslot |
◆ togglePointerMode
void VP1EventDisplaySceneView::togglePointerMode |
( |
| ) |
|
|
privateslot |
◆ view()
QGraphicsView * VP1EventDisplaySceneView::view |
( |
| ) |
const |
◆ zoomIn
void VP1EventDisplaySceneView::zoomIn |
( |
int |
level = 1 | ) |
|
|
slot |
◆ zoomOut
void VP1EventDisplaySceneView::zoomOut |
( |
int |
level = 1 | ) |
|
|
slot |
◆ m_antialiasButton
QToolButton* VP1EventDisplaySceneView::m_antialiasButton |
|
private |
◆ m_dragModeButton
QToolButton* VP1EventDisplaySceneView::m_dragModeButton |
|
private |
◆ m_frame
QGraphicsRectItem* VP1EventDisplaySceneView::m_frame |
|
private |
◆ m_graphicsView
◆ m_label
QLabel* VP1EventDisplaySceneView::m_label |
|
private |
◆ m_label2
QLabel* VP1EventDisplaySceneView::m_label2 |
|
private |
◆ m_line
QGraphicsLineItem* VP1EventDisplaySceneView::m_line |
|
private |
◆ m_openGlButton
QToolButton* VP1EventDisplaySceneView::m_openGlButton |
|
private |
◆ m_preview
bool VP1EventDisplaySceneView::m_preview |
|
private |
◆ m_printButton
QToolButton* VP1EventDisplaySceneView::m_printButton |
|
private |
◆ m_resetButton
QToolButton* VP1EventDisplaySceneView::m_resetButton |
|
private |
◆ m_rotateLeftIcon
QToolButton* VP1EventDisplaySceneView::m_rotateLeftIcon |
|
private |
◆ m_rotateRightIcon
QToolButton* VP1EventDisplaySceneView::m_rotateRightIcon |
|
private |
◆ m_rotateSlider
QSlider* VP1EventDisplaySceneView::m_rotateSlider |
|
private |
◆ m_rotateSliderLayout
QHBoxLayout* VP1EventDisplaySceneView::m_rotateSliderLayout |
|
private |
◆ m_selectModeButton
QToolButton* VP1EventDisplaySceneView::m_selectModeButton |
|
private |
◆ m_zoomInIcon
QToolButton* VP1EventDisplaySceneView::m_zoomInIcon |
|
private |
◆ m_zoomOutIcon
QToolButton* VP1EventDisplaySceneView::m_zoomOutIcon |
|
private |
◆ m_zoomSlider
QSlider* VP1EventDisplaySceneView::m_zoomSlider |
|
private |
◆ m_zoomSliderLayout
QVBoxLayout* VP1EventDisplaySceneView::m_zoomSliderLayout |
|
private |
The documentation for this class was generated from the following files: