CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::ImageStreamerOpenCV Class Reference

#include <cxImageStreamerOpenCV.h>

Inheritance diagram for cx::ImageStreamerOpenCV:
cx::CommandLineStreamer cx::Streamer

Public Member Functions

 ImageStreamerOpenCV ()
 
virtual ~ImageStreamerOpenCV ()
 
virtual void initialize (StringMap arguments)
 
virtual void startStreaming (SenderPtr sender)
 
virtual void stopStreaming ()
 
virtual bool isStreaming ()
 
virtual QString getType ()
 
virtual QStringList getArgumentDescription ()
 
- Public Member Functions inherited from cx::CommandLineStreamer
 CommandLineStreamer ()
 
virtual ~CommandLineStreamer ()
 
- Public Member Functions inherited from cx::Streamer
 Streamer ()
 
virtual ~Streamer ()
 
void setSendInterval (int milliseconds)
 how often an image should be sent (in milliseconds) More...
 
int getSendInterval () const
 how often an image should be sent (in milliseconds) More...
 

Additional Inherited Members

- Signals inherited from cx::Streamer
void stateChanged ()
 
- Protected Slots inherited from cx::CommandLineStreamer
virtual void streamSlot ()
 
- Protected Slots inherited from cx::Streamer
virtual void streamSlot ()=0
 
- Protected Member Functions inherited from cx::Streamer
void setInitialized (bool initialized)
 
bool isInitialized ()
 
void createSendTimer (bool singleshot=false)
 
bool isReadyToSend ()
 
- Protected Attributes inherited from cx::CommandLineStreamer
StringMap mArguments
 
- Protected Attributes inherited from cx::Streamer
SenderPtr mSender
 
QTimer * mSendTimer
 

Detailed Description

An object sending images out on an ip port. In order to operate within a nongui thread, it must be created within the run() method of a qthread.

Author
Christian Askeland, SINTEF
Date
Jun 21, 2011

This version uses openCV to grab images from a video file or camera

Definition at line 72 of file cxImageStreamerOpenCV.h.

Constructor & Destructor Documentation

cx::ImageStreamerOpenCV::ImageStreamerOpenCV ( )

Definition at line 133 of file cxImageStreamerOpenCV.cpp.

cx::ImageStreamerOpenCV::~ImageStreamerOpenCV ( )
virtual

Definition at line 146 of file cxImageStreamerOpenCV.cpp.

Member Function Documentation

QStringList cx::ImageStreamerOpenCV::getArgumentDescription ( )
virtual

Implements cx::CommandLineStreamer.

Definition at line 156 of file cxImageStreamerOpenCV.cpp.

QString cx::ImageStreamerOpenCV::getType ( )
virtual

Implements cx::CommandLineStreamer.

Definition at line 151 of file cxImageStreamerOpenCV.cpp.

void cx::ImageStreamerOpenCV::initialize ( StringMap  arguments)
virtual

Reimplemented from cx::CommandLineStreamer.

Definition at line 162 of file cxImageStreamerOpenCV.cpp.

bool cx::ImageStreamerOpenCV::isStreaming ( )
virtual

Implements cx::Streamer.

Definition at line 288 of file cxImageStreamerOpenCV.cpp.

void cx::ImageStreamerOpenCV::startStreaming ( SenderPtr  sender)
virtual

Implements cx::Streamer.

Definition at line 258 of file cxImageStreamerOpenCV.cpp.

void cx::ImageStreamerOpenCV::stopStreaming ( )
virtual

Implements cx::Streamer.

Definition at line 278 of file cxImageStreamerOpenCV.cpp.


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