Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TestVideoSource Class Reference

test video source generator More...

#include <cxTestVideoSource.h>

Inheritance diagram for cx::TestVideoSource:
cx::VideoSource

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

cx::TestVideoSource::TestVideoSource ( QString  uid,
QString  name,
int  width,
int  height 
)

Definition at line 41 of file cxTestVideoSource.cpp.

cx::TestVideoSource::~TestVideoSource ( )
virtual

Definition at line 65 of file cxTestVideoSource.cpp.

Member Function Documentation

TimeInfo cx::TestVideoSource::getAdvancedTimeInfo ( )
virtual

Implements cx::VideoSource.

Definition at line 140 of file cxTestVideoSource.cpp.

virtual QString cx::TestVideoSource::getInfoString ( ) const
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.

virtual QString cx::TestVideoSource::getName ( )
inlinevirtual

Implements cx::VideoSource.

Definition at line 71 of file cxTestVideoSource.h.

virtual QString cx::TestVideoSource::getStatusString ( ) const
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.

double cx::TestVideoSource::getTimestamp ( )
virtual

Implements cx::VideoSource.

Definition at line 135 of file cxTestVideoSource.cpp.

virtual QString cx::TestVideoSource::getUid ( )
inlinevirtual

Implements cx::VideoSource.

Definition at line 70 of file cxTestVideoSource.h.

vtkImageDataPtr cx::TestVideoSource::getVtkImageData ( )
virtual

Implements cx::VideoSource.

Definition at line 77 of file cxTestVideoSource.cpp.

virtual bool cx::TestVideoSource::isConnected ( ) const
inlinevirtual

return true when a connection to the data source is established.

Implements cx::VideoSource.

Definition at line 83 of file cxTestVideoSource.h.

virtual bool cx::TestVideoSource::isStreaming ( ) const
inlinevirtual

return true when the source is streaming data.

Implements cx::VideoSource.

Definition at line 84 of file cxTestVideoSource.h.

virtual void cx::TestVideoSource::setConnected ( bool  state)
inlinevirtual

Definition at line 86 of file cxTestVideoSource.h.

void cx::TestVideoSource::setResolution ( double  mmPerPixel)
virtual

Set the resolution of the incoming video in mm/pixel

Reimplemented from cx::VideoSource.

Definition at line 71 of file cxTestVideoSource.cpp.

virtual void cx::TestVideoSource::setValidData ( bool  valid)
inlinevirtual

Definition at line 87 of file cxTestVideoSource.h.

void cx::TestVideoSource::start ( )
virtual

start streaming

Implements cx::VideoSource.

Definition at line 82 of file cxTestVideoSource.cpp.

void cx::TestVideoSource::stop ( )
virtual

stop streaming

Implements cx::VideoSource.

Definition at line 96 of file cxTestVideoSource.cpp.

virtual bool cx::TestVideoSource::validData ( ) const
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.


The documentation for this class was generated from the following files: