|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
14 #include "vtkImageData.h"
30 return QString(
"LayoutVideoSource%1").arg(
reinterpret_cast<long>(
this));
35 return QString(
"LayoutVideoSource");
40 return mTimestamp.toMSecsSinceEpoch();
45 return TimeInfo(mTimestamp.toMSecsSinceEpoch());
82 void LayoutVideoSource::onRendered()
88 mTimestamp = QDateTime::currentDateTime();
100 mGrabbed = grabber.
grab();
void newFrame()
emitted when a new frame has arrived (getVtkImageData() returns something new). info/status/name/vali...
#define CX_ASSERT(statement)
Namespace for all CustusX production code.
virtual void start()
start streaming
virtual TimeInfo getAdvancedTimeInfo()
virtual vtkImageDataPtr getVtkImageData()
virtual bool isConnected() const
return true when a connection to the data source is established.
virtual void stop()
stop streaming
virtual QString getName()
LayoutVideoSource(ViewCollectionWidget *widget)
virtual bool validData() const
return true is data stream is ok to display. This is a heuristic based on the data rate.
virtual double getTimestamp()
virtual bool isStreaming() const
return true when the source is streaming data.
void streaming(bool on)
emitted when streaming started/stopped