NorMIT-nav  22.09
An IGT application
cxVideoServiceNull.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 "cxVideoServiceNull.h"
13 
14 #include "cxStreamerService.h"
15 #include "cxStreamerServiceNull.h"
16 #include "cxNullDeleter.h"
17 #include "cxBasicVideoSource.h"
18 
19 namespace cx
20 {
21 
23 {
24 }
25 
27 {
28  return VideoSourcePtr(new BasicVideoSource());
29 }
30 
31 std::vector<VideoSourcePtr> VideoServiceNull::getVideoSources()
32 {
33  return std::vector<VideoSourcePtr>();
34 }
35 
36 void VideoServiceNull::setConnectionMethod(QString connectionMethod)
37 {
38 }
39 
41 {
42  return "";
43 }
44 
46 {
47 }
48 
50 {
51 }
52 
54 {
55  return false;
56 }
57 
59 {
60 }
61 
62 std::vector<TimelineEvent> VideoServiceNull::getPlaybackEvents()
63 {
64  return std::vector<TimelineEvent>();
65 }
66 
68 {
70 }
71 
72 QList<StreamerServicePtr> VideoServiceNull::getStreamerServices()
73 {
74  printWarning();
75  return QList<StreamerServicePtr>();
76 }
78 {
79  return true;
80 }
81 
82 void VideoServiceNull::printWarning()
83 {
84 // reportWarning("Trying to use VideoServiceNull. Is VideoService (org.custusx.core.video) disabled?");
85 }
86 
87 } //cx
cx::null_deleter
Definition: cxNullDeleter.h:8
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::VideoServiceNull::isConnected
virtual bool isConnected() const
Definition: cxVideoServiceNull.cpp:53
cx::VideoServiceNull::getStreamerService
virtual StreamerServicePtr getStreamerService(QString uid)
Definition: cxVideoServiceNull.cpp:67
cx::VideoServiceNull::openConnection
virtual void openConnection()
Definition: cxVideoServiceNull.cpp:45
cx::VideoServiceNull::getActiveVideoSource
virtual VideoSourcePtr getActiveVideoSource()
Definition: cxVideoServiceNull.cpp:26
cxStreamerService.h
cx::PlaybackTimePtr
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
Definition: cxTrackingSystemBronchoscopyService.h:42
cx::VideoSourcePtr
boost::shared_ptr< class VideoSource > VideoSourcePtr
Definition: cxForwardDeclarations.h:109
cxBasicVideoSource.h
cx::VideoServiceNull::setConnectionMethod
virtual void setConnectionMethod(QString connectionMethod)
Definition: cxVideoServiceNull.cpp:36
cx::VideoServiceNull::setPlaybackMode
virtual void setPlaybackMode(PlaybackTimePtr controller)
Definition: cxVideoServiceNull.cpp:58
cxNullDeleter.h
cx::StreamerServicePtr
boost::shared_ptr< class StreamerService > StreamerServicePtr
Definition: cxPlusConnectWidget.h:26
cx::VideoServiceNull::closeConnection
virtual void closeConnection()
Definition: cxVideoServiceNull.cpp:49
cxVideoServiceNull.h
cx::BasicVideoSource
VideoSource controlled by a vtkImageData.
Definition: cxBasicVideoSource.h:44
cx::VideoServiceNull::setActiveVideoSource
virtual void setActiveVideoSource(QString uid)
Definition: cxVideoServiceNull.cpp:22
cx::VideoServiceNull::isNull
virtual bool isNull()
Definition: cxVideoServiceNull.cpp:77
cxStreamerServiceNull.h
cx::VideoServiceNull::getStreamerServices
virtual QList< StreamerServicePtr > getStreamerServices()
Definition: cxVideoServiceNull.cpp:72
cx::VideoServiceNull::getPlaybackEvents
virtual std::vector< TimelineEvent > getPlaybackEvents()
Definition: cxVideoServiceNull.cpp:62
cx::StreamerServiceNull
Null implementation of the StreamerService.
Definition: cxStreamerServiceNull.h:27
cx::VideoServiceNull::getConnectionMethod
virtual QString getConnectionMethod()
Definition: cxVideoServiceNull.cpp:40
cx::VideoServiceNull::getVideoSources
virtual std::vector< VideoSourcePtr > getVideoSources()
Definition: cxVideoServiceNull.cpp:31