Fraxinus  17.12-rc3
An IGT application
cxCameraStyleInteractor.h
Go to the documentation of this file.
1 #ifndef CXCAMERASTYLEINTERACTOR_H
2 #define CXCAMERASTYLEINTERACTOR_H
3 
4 /*=========================================================================
5 This file is part of CustusX, an Image Guided Therapy Application.
6 
7 Copyright (c) 2008-2014, SINTEF Department of Medical Technology
8 All rights reserved.
9 
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions are met:
12 
13 1. Redistributions of source code must retain the above copyright notice,
14  this list of conditions and the following disclaimer.
15 
16 2. Redistributions in binary form must reproduce the above copyright notice,
17  this list of conditions and the following disclaimer in the documentation
18  and/or other materials provided with the distribution.
19 
20 3. Neither the name of the copyright holder nor the names of its contributors
21  may be used to endorse or promote products derived from this software
22  without specific prior written permission.
23 
24 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 =========================================================================*/
35 
36 #include "cxResourceVisualizationExport.h"
37 
38 #include <QPointer>
39 #include "cxTransform3D.h"
40 #include "cxForwardDeclarations.h"
41 #include "cxEnumConverter.h"
42 class QIcon;
43 class QWidget;
44 class QMenu;
45 class QActionGroup;
46 
47 namespace cx
48 {
49 
50 typedef boost::shared_ptr<class CoreServices> CoreServicesPtr;
51 
69 class cxResourceVisualization_EXPORT CameraStyleInteractor: public QObject
70 {
71 Q_OBJECT
72 public:
73  explicit CameraStyleInteractor();
74  QActionGroup* getInteractorStyleActionGroup();
75  void connectCameraStyle(ViewGroupDataPtr vg);
76 
77 private slots:
78  void setInteractionStyleActionSlot();
79  void updateActionGroup();
80 private:
81  void addInteractorStyleAction(QString caption, QActionGroup* group, QString className, QIcon icon,
82  QString helptext);
83  QPointer<QActionGroup> mCameraStyleGroup;
84  ViewGroupDataPtr mGroup;
85  CoreServicesPtr mBackend;
86 };
87 typedef boost::shared_ptr<class CameraStyleInteractor> CameraStyleInteractorPtr;
88 
92 } //namespace cx
93 
94 
95 #endif // CXCAMERASTYLEINTERACTOR_H
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
Definition: cxViewGroup.h:50
boost::shared_ptr< class CoreServices > CoreServicesPtr
Definition: cxCameraStyle.h:59
boost::shared_ptr< class CameraStyleInteractor > CameraStyleInteractorPtr
Namespace for all CustusX production code.