VR-Engage  2.2
Loading...
Searching...
No Matches
zoomGraphicsView.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file zoomGraphicsView.h
7//! \brief Defines a zoomable graphics view for displaying SAR images
8//! \ingroup sarClient
9
10#pragma once
11
12#include <QGraphicsView>
13#include <QGraphicsRectItem>
14
15//! \brief Zoomable graphics view for displaying SAR response images
16//!
17//! This class extends QGraphicsView to provide zooming capabilities for
18//! SAR response images. It handles mouse wheel and keyboard events to allow
19//! the user to zoom in and out of the displayed imagery. This is used for
20//! the non-GLStudio SAR response window.
21class DtZoomGraphicsView : public QGraphicsView
22{
23public:
24 //! \brief Constructor
25 //! \param parent Pointer to the parent widget
26 //!
27 //! Creates a new zoomable graphics view with the specified parent
28 DtZoomGraphicsView(QWidget* parent = NULL);
29
30protected:
31 //! \brief Handles mouse wheel events for zooming
32 //! \param event Pointer to the wheel event
33 //!
34 //! Processes mouse wheel events to zoom in or out of the view
35 virtual void wheelEvent(QWheelEvent* event) override;
36
37 //! \brief Handles key release events for additional controls
38 //! \param event Pointer to the key event
39 //!
40 //! Processes key release events for additional view manipulation
41 virtual void keyReleaseEvent(QKeyEvent* event) override;
42};
virtual void keyReleaseEvent(QKeyEvent *event) override
Handles key release events for additional controls.
DtZoomGraphicsView(QWidget *parent=NULL)
Constructor.
virtual void wheelEvent(QWheelEvent *event) override
Handles mouse wheel events for zooming.