CustusX  15.8
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 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 46 of file cxProbeAdapterRTSource.cpp.

cx::ProbeAdapterRTSource::~ProbeAdapterRTSource ( )
virtual

Definition at line 61 of file cxProbeAdapterRTSource.cpp.

Member Function Documentation

VideoSourcePtr cx::ProbeAdapterRTSource::getBaseSource ( )

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

QString cx::ProbeAdapterRTSource::getName ( )
virtual

Implements cx::VideoSource.

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

double cx::ProbeAdapterRTSource::getTimestamp ( )
virtual

Implements cx::VideoSource.

Definition at line 79 of file cxProbeAdapterRTSource.cpp.

QString cx::ProbeAdapterRTSource::getUid ( )
virtual

Implements cx::VideoSource.

Definition at line 64 of file cxProbeAdapterRTSource.cpp.

vtkImageDataPtr cx::ProbeAdapterRTSource::getVtkImageData ( )
virtual

Implements cx::VideoSource.

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

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

return true when the source is streaming data.

Implements cx::VideoSource.

Definition at line 119 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::start ( )
virtual

start streaming

Implements cx::VideoSource.

Definition at line 99 of file cxProbeAdapterRTSource.cpp.

void cx::ProbeAdapterRTSource::stop ( )
virtual

stop streaming

Implements cx::VideoSource.

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


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