NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx2DZoomHandler.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CX2DZOOMHANDLER_H
13 #define CX2DZOOMHANDLER_H
14 
15 #include "org_custusx_core_view_Export.h"
16 
17 #include "cxViewGroupData.h"
18 #include <QMenu>
19 
20 namespace cx
21 {
22 typedef boost::shared_ptr<class Zoom2DHandler> Zoom2DHandlerPtr;
23 
30 class org_custusx_core_view_EXPORT Zoom2DHandler : public QObject
31 {
32  Q_OBJECT
33 public:
34  Zoom2DHandler();
35 
36  void addActionsToMenu(QMenu* contextMenu);
37  void setGroupData(ViewGroupDataPtr group);
38  double getFactor();
39  void setFactor(double factor);
40 
41 private slots:
42  void zoom2DActionSlot();
43 signals:
44  void zoomChanged();
45 private:
46  void setConnectivityFromType(QString type);
47  QString getConnectivityType();
48  void addConnectivityAction(QString type, QString text, QString toolTip, QMenu *contextMenu);
49  void set(SyncedValuePtr value);
50 
51  SyncedValuePtr mZoom2D;
52  ViewGroupDataPtr mGroupData;
53 };
54 
55 
56 } // namespace cx
57 
58 
59 
60 #endif // CX2DZOOMHANDLER_H
cx::ViewGroupDataPtr
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
Definition: cxViewGroup.h:29
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxViewGroupData.h
cx::Zoom2DHandlerPtr
boost::shared_ptr< class Zoom2DHandler > Zoom2DHandlerPtr
Definition: cx2DZoomHandler.h:22
cx::SyncedValuePtr
boost::shared_ptr< class SyncedValue > SyncedValuePtr
Definition: cxViewGroup.h:30
cx::Zoom2DHandler
Definition: cx2DZoomHandler.h:30