Fraxinus  22.04-rc5
An IGT application
cx::ProbeAdapterRTSource Class Reference

VideoSource that applies the parameters from a Probe to the VideoSource. More...

#include <cxProbeAdapterRTSource.h>

Inheritance diagram for cx::ProbeAdapterRTSource:
cx::VideoSource

Public Member Functions

 ProbeAdapterRTSource (QString uid, ProbePtr probe, VideoSourcePtr source)
 
virtual ~ProbeAdapterRTSource ()
 
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...
 
VideoSourcePtr getBaseSource ()
 
- Public Member Functions inherited from cx::VideoSource
virtual ~VideoSource ()
 
virtual void setResolution (double mmPerPixel)
 

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

VideoSource that applies the parameters from a Probe to the VideoSource.

Some metadata such as pixel spacing might not be correct when read directly from the video source. The ProbeAdapterRTSource overrides some methods of a VideoSource and inserts info from a Probe instead.

Date
Feb 11, 2011
Author
: Christian Askeland, SINTEF

Definition at line 40 of file cxProbeAdapterRTSource.h.

Constructor & Destructor Documentation

cx::ProbeAdapterRTSource::ProbeAdapterRTSource ( QString  uid,
ProbePtr  probe,
VideoSourcePtr  source 
)

Definition at line 26 of file cxProbeAdapterRTSource.cpp.

cx::ProbeAdapterRTSource::~ProbeAdapterRTSource ( )
virtual

Definition at line 41 of file cxProbeAdapterRTSource.cpp.

Member Function Documentation

TimeInfo cx::ProbeAdapterRTSource::getAdvancedTimeInfo ( )
virtual

Implements cx::VideoSource.

Definition at line 74 of file cxProbeAdapterRTSource.cpp.

VideoSourcePtr cx::ProbeAdapterRTSource::getBaseSource ( )

Definition at line 116 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getInfoString ( ) const
virtual

an information text intended to be visible along with the data stream at all times

Implements cx::VideoSource.

Definition at line 81 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getName ( )
virtual

Implements cx::VideoSource.

Definition at line 54 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getStatusString ( ) const
virtual

status text describing the stream state, display instead of stream when the stream is invalid.

Implements cx::VideoSource.

Definition at line 86 of file cxProbeAdapterRTSource.cpp.

double cx::ProbeAdapterRTSource::getTimestamp ( )
virtual

Implements cx::VideoSource.

Definition at line 64 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getUid ( )
virtual

Implements cx::VideoSource.

Definition at line 49 of file cxProbeAdapterRTSource.cpp.

vtkImageDataPtr cx::ProbeAdapterRTSource::getVtkImageData ( )
virtual

Implements cx::VideoSource.

Definition at line 59 of file cxProbeAdapterRTSource.cpp.

bool cx::ProbeAdapterRTSource::isConnected ( ) const
virtual

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

Implements cx::VideoSource.

Definition at line 106 of file cxProbeAdapterRTSource.cpp.

bool cx::ProbeAdapterRTSource::isStreaming ( ) const
virtual

return true when the source is streaming data.

Implements cx::VideoSource.

Definition at line 111 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::start ( )
virtual

start streaming

Implements cx::VideoSource.

Definition at line 91 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::stop ( )
virtual

stop streaming

Implements cx::VideoSource.

Definition at line 96 of file cxProbeAdapterRTSource.cpp.

bool cx::ProbeAdapterRTSource::validData ( ) const
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 101 of file cxProbeAdapterRTSource.cpp.


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