NorMIT-nav  22.09
An IGT application
cxViewServiceNull.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 CXVIEWSERVICENULL_H_
13 #define CXVIEWSERVICENULL_H_
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include "cxViewService.h"
18 
19 namespace cx
20 {
21 class cxResourceVisualization_EXPORT ViewServiceNull : public ViewService
22 {
23 public:
25 
26  virtual ViewPtr get3DView(int group = 0, int index = 0);
27 
28  virtual int getActiveGroupId() const;
29  virtual ViewGroupDataPtr getGroup(int groupIdx) const;
30  virtual void setRegistrationMode(REGISTRATION_STATUS mode);
31 
32  virtual void autoShowData(DataPtr data);
33  virtual void enableRender(bool val);
34  virtual bool renderingIsEnabled() const;
35 
36  virtual QWidget* createLayoutWidget(QWidget* parent, int index);
37  virtual QWidget* getLayoutWidget(int index);
38  virtual QString getActiveLayout(int widgetIndex) const;
39  virtual void setActiveLayout(const QString& uid, int widgetIndex);
40  virtual ClippersPtr getClippers();
41  virtual InteractiveCropperPtr getCropper();
42  virtual CyclicActionLoggerPtr getRenderTimer();
43  virtual NavigationPtr getNavigation(int group = 0);
44  virtual LayoutRepositoryPtr getLayoutRepository();
45  virtual CameraControlPtr getCameraControl();
46  virtual QActionGroup* getInteractorStyleActionGroup();
47  virtual void centerToImageCenterInActiveViewGroup();
48  virtual void setCameraStyle(CAMERA_STYLE_TYPE style, int groupIdx);
49  virtual void zoomCamera3D(int viewGroup3DNumber, int zoomFactor);
50  virtual void addDefaultLayout(LayoutData layoutData);
51  virtual void enableContextMenuForViews(bool enable=true);
52 
53  virtual bool isNull();
54 
55 public slots:
56  virtual void aboutToStop(){}
57 
58 private:
59  void printWarning() const;
60  QActionGroup* mActionGroup;
61 
62 };
63 } //cx
64 #endif // CXVIEWSERVICENULL_H_
cx::ViewGroupDataPtr
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
Definition: cxViewGroup.h:29
cx::ViewServiceNull
Definition: cxViewServiceNull.h:21
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::ViewServiceNull::aboutToStop
virtual void aboutToStop()
Definition: cxViewServiceNull.h:56
cx::ClippersPtr
boost::shared_ptr< class Clippers > ClippersPtr
Definition: cxForwardDeclarations.h:151
cx::LayoutData
Definition: cxLayoutData.h:76
cx::NavigationPtr
boost::shared_ptr< class Navigation > NavigationPtr
Definition: cxForwardDeclarations.h:158
cxViewService.h
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::ViewPtr
boost::shared_ptr< class View > ViewPtr
Definition: cxForwardDeclarations.h:110
cx::CyclicActionLoggerPtr
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
Definition: cxForwardDeclarations.h:152
cx::LayoutRepositoryPtr
boost::shared_ptr< class LayoutRepository > LayoutRepositoryPtr
Definition: cxForwardDeclarations.h:157
cx::CameraControlPtr
boost::shared_ptr< class CameraControl > CameraControlPtr
Definition: cxForwardDeclarations.h:150
cx::ViewService
Visualization services.
Definition: cxViewService.h:50
cx::InteractiveCropperPtr
boost::shared_ptr< class InteractiveCropper > InteractiveCropperPtr
Definition: cxForwardDeclarations.h:156