35 #include "vtkImageData.h"
51 return QString(
"LayoutVideoSource%1").arg(reinterpret_cast<long>(
this));
56 return QString(
"LayoutVideoSource");
61 return mTimestamp.toMSecsSinceEpoch();
66 return TimeInfo(mTimestamp.toMSecsSinceEpoch());
103 void LayoutVideoSource::onRendered()
109 mTimestamp = QDateTime::currentDateTime();
121 mGrabbed = grabber.
grab();
virtual TimeInfo getAdvancedTimeInfo()
virtual void stop()
stop streaming
#define CX_ASSERT(statement)
virtual bool isConnected() const
return true when a connection to the data source is established.
void streaming(bool on)
emitted when streaming started/stopped
virtual vtkImageDataPtr getVtkImageData()
LayoutVideoSource(ViewCollectionWidget *widget)
virtual void start()
start streaming
virtual double getTimestamp()
virtual bool isStreaming() const
return true when the source is streaming data.
virtual bool validData() const
return true is data stream is ok to display. This is a heuristic based on the data rate...
virtual QString getName()
void newFrame()
emitted when a new frame has arrived (getVtkImageData() returns something new). info/status/name/vali...