Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxViewServiceNull.cpp
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 #include "cxViewServiceNull.h"
13 
14 #include <QActionGroup>
15 #include <QDomNode>
16 #include "cxLogger.h"
17 
18 namespace cx
19 {
21 {
22  mActionGroup = new QActionGroup(this);
23 }
24 
25 ViewPtr ViewServiceNull::get3DView(int group, int index)
26 {
27  printWarning();
28  return ViewPtr();
29 }
30 
32 {
33  printWarning();
34  return -1;
35 }
36 
38 {
39  printWarning();
40  return ViewGroupDataPtr();
41 }
42 
43 void ViewServiceNull::setRegistrationMode(REGISTRATION_STATUS mode)
44 {
45  printWarning();
46 }
48 {
49  return true;
50 }
51 
52 void ViewServiceNull::printWarning() const
53 {
54  CX_LOG_WARNING() <<"Trying to use VideoServiceNull. Is VideoService (org.custusx.core.view) disabled?";
55 }
56 
58 {
59  printWarning();
60 }
61 
63 {
64 
65 }
66 
68 {
69  return false;
70 }
71 
72 QWidget* ViewServiceNull::createLayoutWidget(QWidget *parent, int index) { return NULL; }
73 QWidget* ViewServiceNull::getLayoutWidget(int index) { return NULL; }
74 QString ViewServiceNull::getActiveLayout(int widgetIndex) const { return ""; }
75 void ViewServiceNull::setActiveLayout(const QString& uid, int widgetIndex) {}
81 QActionGroup* ViewServiceNull::getInteractorStyleActionGroup() { return mActionGroup; }
82 
84 {
85  printWarning();
86 }
87 
88 void ViewServiceNull::setCameraStyle(CAMERA_STYLE_TYPE style, int groupIdx)
89 {
90  printWarning();
91 }
92 
93 void ViewServiceNull::zoomCamera3D(int viewGroup3DNumber, int zoomFactor)
94 {
95  printWarning();
96 }
97 
99 {
100  printWarning();
101 }
102 
104 {
105  printWarning();
106 }
107 
109 {
110  return ClippersPtr();
111 }
112 
113 } //cx
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< class LayoutRepository > LayoutRepositoryPtr
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
Definition: cxViewGroup.h:29
virtual QActionGroup * getInteractorStyleActionGroup()
boost::shared_ptr< class CameraControl > CameraControlPtr
virtual bool renderingIsEnabled() const
virtual void enableRender(bool val)
virtual void addDefaultLayout(LayoutData layoutData)
virtual ViewGroupDataPtr getGroup(int groupIdx) const
boost::shared_ptr< class InteractiveCropper > InteractiveCropperPtr
virtual void enableContextMenuForViews(bool enable=true)
virtual int getActiveGroupId() const
virtual QWidget * createLayoutWidget(QWidget *parent, int index)
Get the specified layout widget, create if necessary.
boost::shared_ptr< class View > ViewPtr
virtual void zoomCamera3D(int viewGroup3DNumber, int zoomFactor)
boost::shared_ptr< class Clippers > ClippersPtr
boost::shared_ptr< class Data > DataPtr
virtual InteractiveCropperPtr getCropper()
virtual void setActiveLayout(const QString &uid, int widgetIndex)
virtual ViewPtr get3DView(int group=0, int index=0)
virtual QString getActiveLayout(int widgetIndex) const
virtual QWidget * getLayoutWidget(int index)
Get the specified layout widget, NULL if not created.
virtual CameraControlPtr getCameraControl()
virtual void centerToImageCenterInActiveViewGroup()
virtual CyclicActionLoggerPtr getRenderTimer()
virtual ClippersPtr getClippers()
virtual void autoShowData(DataPtr data)
#define CX_LOG_WARNING
Definition: cxLogger.h:98
virtual void setCameraStyle(CAMERA_STYLE_TYPE style, int groupIdx)
virtual LayoutRepositoryPtr getLayoutRepository()
boost::shared_ptr< class Navigation > NavigationPtr
virtual NavigationPtr getNavigation(int group=0)
virtual void setRegistrationMode(REGISTRATION_STATUS mode)
Namespace for all CustusX production code.