CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
VideoSource controlled by a vtkImageData. More...
#include <cxBasicVideoSource.h>
Public Member Functions | |
BasicVideoSource (QString uid="<none>") | |
virtual | ~BasicVideoSource () |
virtual QString | getUid () |
virtual QString | getName () |
virtual vtkImageDataPtr | getVtkImageData () |
virtual double | getTimestamp () |
virtual TimeInfo | getAdvancedTimeInfo () |
virtual QString | getInfoString () const |
an information text intended to be visible along with the data stream at all times More... | |
virtual QString | getStatusString () const |
status text describing the stream state, display instead of stream when the stream is invalid. More... | |
virtual void | start () |
start streaming More... | |
virtual void | stop () |
stop streaming More... | |
virtual bool | validData () const |
return true is data stream is ok to display. This is a heuristic based on the data rate. More... | |
virtual bool | isConnected () const |
return true when a connection to the data source is established. More... | |
virtual bool | isStreaming () const |
return true when the source is streaming data. More... | |
virtual void | setResolution (double resolution) |
void | setInput (ImagePtr input) |
void | setInfoString (QString text) |
void | setStatusString (QString text) |
void | deconfigure () |
void | overrideTimeout (bool timeout) |
Public Member Functions inherited from cx::VideoSource | |
virtual | ~VideoSource () |
Additional Inherited Members | |
Signals inherited from cx::VideoSource | |
void | streaming (bool on) |
emitted when streaming started/stopped More... | |
void | connected (bool on) |
emitted when source is connected/disconnected More... | |
void | newFrame () |
emitted when a new frame has arrived (getVtkImageData() returns something new). info/status/name/valid might also have changed More... | |
VideoSource controlled by a vtkImageData.
Primitive implementation of the VideoSource interface. Use the interface extensions to control the input: Set a vtkImageData and
Definition at line 44 of file cxBasicVideoSource.h.
|
explicit |
Definition at line 28 of file cxBasicVideoSource.cpp.
|
virtual |
Definition at line 48 of file cxBasicVideoSource.cpp.
|
inline |
Definition at line 85 of file cxBasicVideoSource.h.
|
virtual |
Implements cx::VideoSource.
Definition at line 94 of file cxBasicVideoSource.cpp.
|
inlinevirtual |
an information text intended to be visible along with the data stream at all times
Implements cx::VideoSource.
Definition at line 58 of file cxBasicVideoSource.h.
|
virtual |
Implements cx::VideoSource.
Definition at line 69 of file cxBasicVideoSource.cpp.
|
virtual |
status text describing the stream state, display instead of stream when the stream is invalid.
Implements cx::VideoSource.
Definition at line 154 of file cxBasicVideoSource.cpp.
|
virtual |
Implements cx::VideoSource.
Definition at line 89 of file cxBasicVideoSource.cpp.
|
virtual |
Implements cx::VideoSource.
Definition at line 65 of file cxBasicVideoSource.cpp.
|
virtual |
Implements cx::VideoSource.
Definition at line 114 of file cxBasicVideoSource.cpp.
|
virtual |
return true when a connection to the data source is established.
Implements cx::VideoSource.
Definition at line 99 of file cxBasicVideoSource.cpp.
|
virtual |
return true when the source is streaming data.
Implements cx::VideoSource.
Definition at line 104 of file cxBasicVideoSource.cpp.
void cx::BasicVideoSource::overrideTimeout | ( | bool | timeout | ) |
Disable internal timeout checking, instead set timeout directly.
Definition at line 53 of file cxBasicVideoSource.cpp.
|
inline |
Definition at line 83 of file cxBasicVideoSource.h.
void cx::BasicVideoSource::setInput | ( | ImagePtr | input | ) |
Set an image that is used for output.
Set a new image for each new frame. Only the vtkImageData, uid and timestamp are used, also make sure the uid is unchanged for each setInput().
Setting an input indicates connect(), settings an empty input indicates disconnect()
Definition at line 171 of file cxBasicVideoSource.cpp.
|
virtual |
Set the resolution of the incoming video in mm/pixel
Reimplemented from cx::VideoSource.
Definition at line 109 of file cxBasicVideoSource.cpp.
|
inline |
Definition at line 84 of file cxBasicVideoSource.h.
|
virtual |
|
virtual |
|
virtual |
return true is data stream is ok to display. This is a heuristic based on the data rate.
Implements cx::VideoSource.
Definition at line 84 of file cxBasicVideoSource.cpp.