CustusX  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 61 of file cxProbeAdapterRTSource.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file cxProbeAdapterRTSource.cpp.

cx::ProbeAdapterRTSource::~ProbeAdapterRTSource ( )
virtual

Definition at line 62 of file cxProbeAdapterRTSource.cpp.

Member Function Documentation

TimeInfo cx::ProbeAdapterRTSource::getAdvancedTimeInfo ( )
virtual

Implements cx::VideoSource.

Definition at line 95 of file cxProbeAdapterRTSource.cpp.

VideoSourcePtr cx::ProbeAdapterRTSource::getBaseSource ( )

Definition at line 137 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 102 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getName ( )
virtual

Implements cx::VideoSource.

Definition at line 75 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 107 of file cxProbeAdapterRTSource.cpp.

double cx::ProbeAdapterRTSource::getTimestamp ( )
virtual

Implements cx::VideoSource.

Definition at line 85 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getUid ( )
virtual

Implements cx::VideoSource.

Definition at line 70 of file cxProbeAdapterRTSource.cpp.

vtkImageDataPtr cx::ProbeAdapterRTSource::getVtkImageData ( )
virtual

Implements cx::VideoSource.

Definition at line 80 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 127 of file cxProbeAdapterRTSource.cpp.

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

return true when the source is streaming data.

Implements cx::VideoSource.

Definition at line 132 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::start ( )
virtual

start streaming

Implements cx::VideoSource.

Definition at line 112 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::stop ( )
virtual

stop streaming

Implements cx::VideoSource.

Definition at line 117 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 122 of file cxProbeAdapterRTSource.cpp.


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