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

Constructor & Destructor Documentation

cx::ImageStreamerOpenCV::ImageStreamerOpenCV ( )

Definition at line 157 of file cxImageStreamerOpenCV.cpp.

cx::ImageStreamerOpenCV::~ImageStreamerOpenCV ( )
virtual

Definition at line 170 of file cxImageStreamerOpenCV.cpp.

Member Function Documentation

QStringList cx::ImageStreamerOpenCV::getArgumentDescription ( )
virtual

Implements cx::CommandLineStreamer.

Definition at line 180 of file cxImageStreamerOpenCV.cpp.

QString cx::ImageStreamerOpenCV::getType ( )
virtual

Implements cx::CommandLineStreamer.

Definition at line 175 of file cxImageStreamerOpenCV.cpp.

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

Reimplemented from cx::CommandLineStreamer.

Definition at line 186 of file cxImageStreamerOpenCV.cpp.

bool cx::ImageStreamerOpenCV::isStreaming ( )
virtual

Implements cx::Streamer.

Definition at line 312 of file cxImageStreamerOpenCV.cpp.

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

Implements cx::Streamer.

Definition at line 282 of file cxImageStreamerOpenCV.cpp.

void cx::ImageStreamerOpenCV::stopStreaming ( )
virtual

Implements cx::Streamer.

Definition at line 302 of file cxImageStreamerOpenCV.cpp.


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