NorMIT-nav
22.09
An IGT application
cxProbeAdapterRTSource.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
13
#ifndef CXPROBEADAPTERRTSOURCE_H_
14
#define CXPROBEADAPTERRTSOURCE_H_
15
16
#include "cxResourceExport.h"
17
18
#include "
cxForwardDeclarations.h
"
19
#include "
vtkForwardDeclarations.h
"
20
#include "
cxVideoSource.h
"
21
#include "
cxTool.h
"
22
23
class
QString;
24
25
namespace
cx
26
{
27
40
class
cxResource_EXPORT
ProbeAdapterRTSource
:
public
VideoSource
41
{
42
Q_OBJECT
43
44
public
:
45
ProbeAdapterRTSource
(QString uid,
ProbePtr
probe,
VideoSourcePtr
source);
46
virtual
~
ProbeAdapterRTSource
();
47
48
virtual
QString getUid();
49
virtual
QString getName();
50
virtual
vtkImageDataPtr
getVtkImageData();
51
virtual
double
getTimestamp();
52
virtual
TimeInfo
getAdvancedTimeInfo();
53
54
virtual
QString getInfoString()
const
;
55
virtual
QString getStatusString()
const
;
56
57
virtual
void
start();
58
virtual
void
stop();
59
virtual
bool
validData()
const
;
60
virtual
bool
isConnected()
const
;
61
virtual
bool
isStreaming()
const
;
62
VideoSourcePtr
getBaseSource();
63
64
private
slots:
65
void
probeChangedSlot();
66
void
newFrameSlot();
67
68
private
:
69
QString mUid;
70
VideoSourcePtr
mBase;
71
ProbeWeakPtr
mProbe;
72
vtkImageChangeInformationPtr
mRedirecter;
73
};
74
75
typedef
boost::shared_ptr<ProbeAdapterRTSource>
ProbeAdapterRTSourcePtr
;
76
77
}
// cx
78
79
#endif
/* CXPROBEADAPTERRTSOURCE_H_ */
cx::ProbeAdapterRTSourcePtr
boost::shared_ptr< ProbeAdapterRTSource > ProbeAdapterRTSourcePtr
Definition:
cxProbeAdapterRTSource.h:75
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::VideoSource
video source interface.
Definition:
cxVideoSource.h:43
cx::ProbeAdapterRTSource
VideoSource that applies the parameters from a Probe to the VideoSource.
Definition:
cxProbeAdapterRTSource.h:40
vtkImageDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Definition:
cxVideoConnectionWidget.h:30
cx::VideoSourcePtr
boost::shared_ptr< class VideoSource > VideoSourcePtr
Definition:
cxForwardDeclarations.h:109
cxVideoSource.h
cx::TimeInfo
Definition:
cxData.h:43
cxTool.h
vtkForwardDeclarations.h
cx::ProbeWeakPtr
boost::weak_ptr< Probe > ProbeWeakPtr
Definition:
cxProbe.h:73
vtkImageChangeInformationPtr
vtkSmartPointer< vtkImageChangeInformation > vtkImageChangeInformationPtr
Definition:
cxImage.cpp:46
cx::ProbePtr
boost::shared_ptr< Probe > ProbePtr
Definition:
cxProbe.h:72
CX
source
resource
core
Tool
cxProbeAdapterRTSource.h
Generated on Tue Sep 13 2022 11:06:15 for NorMIT-nav by
1.8.17