Fraxinus
16.5.0-fx-rc5
An IGT application
|
test video source generator More...
#include <cxTestVideoSource.h>
Public Member Functions | |
TestVideoSource (QString uid, QString name, int width, int height) | |
virtual | ~TestVideoSource () |
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 | setConnected (bool state) |
virtual void | setValidData (bool valid) |
virtual void | setResolution (double resolution) |
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... | |
test video source generator
This class implements the VideoSource interface and generates a moving test pattern. The color change front moves diagonally from lower right to upper left corner. There are vertical black lines every 10mm
Definition at line 62 of file cxTestVideoSource.h.
cx::TestVideoSource::TestVideoSource | ( | QString | uid, |
QString | name, | ||
int | width, | ||
int | height | ||
) |
Definition at line 41 of file cxTestVideoSource.cpp.
|
virtual |
Definition at line 65 of file cxTestVideoSource.cpp.
|
virtual |
Implements cx::VideoSource.
Definition at line 140 of file cxTestVideoSource.cpp.
|
inlinevirtual |
an information text intended to be visible along with the data stream at all times
Implements cx::VideoSource.
Definition at line 76 of file cxTestVideoSource.h.
|
inlinevirtual |
Implements cx::VideoSource.
Definition at line 71 of file cxTestVideoSource.h.
|
inlinevirtual |
status text describing the stream state, display instead of stream when the stream is invalid.
Implements cx::VideoSource.
Definition at line 77 of file cxTestVideoSource.h.
|
virtual |
Implements cx::VideoSource.
Definition at line 135 of file cxTestVideoSource.cpp.
|
inlinevirtual |
Implements cx::VideoSource.
Definition at line 70 of file cxTestVideoSource.h.
|
virtual |
Implements cx::VideoSource.
Definition at line 77 of file cxTestVideoSource.cpp.
|
inlinevirtual |
return true when a connection to the data source is established.
Implements cx::VideoSource.
Definition at line 83 of file cxTestVideoSource.h.
|
inlinevirtual |
return true when the source is streaming data.
Implements cx::VideoSource.
Definition at line 84 of file cxTestVideoSource.h.
|
inlinevirtual |
Definition at line 86 of file cxTestVideoSource.h.
|
virtual |
Set the resolution of the incoming video in mm/pixel
Reimplemented from cx::VideoSource.
Definition at line 71 of file cxTestVideoSource.cpp.
|
inlinevirtual |
Definition at line 87 of file cxTestVideoSource.h.
|
virtual |
|
virtual |
|
inlinevirtual |
return true is data stream is ok to display. This is a heuristic based on the data rate.
Implements cx::VideoSource.
Definition at line 82 of file cxTestVideoSource.h.