CustusX  22.04-rc5
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_
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< class LayoutRepository > LayoutRepositoryPtr
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
Definition: cxViewGroup.h:29
Visualization services.
Definition: cxViewService.h:50
boost::shared_ptr< class CameraControl > CameraControlPtr
boost::shared_ptr< class InteractiveCropper > InteractiveCropperPtr
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class Clippers > ClippersPtr
boost::shared_ptr< class Data > DataPtr
virtual void aboutToStop()
boost::shared_ptr< class Navigation > NavigationPtr
Namespace for all CustusX production code.