Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcSimpleMxPEGViewer Class Reference
[mxcpc_gui (GUI Module - Graphical User Interface)]

Simple, one-channel MxPEG viewer widget for early demo configurations. More...

#include <mxcpcSimpleMxPEGViewer.h>

Inheritance diagram for mxcpcSimpleMxPEGViewer:

mxcpcVideoDisplay List of all members.

Public Slots

void playCameraLiveFastStream (const mxcpcIPAddress &camera_ip, int camera_port, const mxcpcProxyConfiguration &camera_proxy_configuration, float fps)
 Connects to the camera specified and begins displaying the live stream.
void stop (void)
 Disconnects any potential stream source asnd switches to disconnected state.

Signals

void framerateMeasured (float fps)
 Emitted if framerate measure mode is enabled and a new framerate measure becomes available (roughly every n milliseconds with n as it was specified to setFramerateMeasureModeEnabled()).

Public Member Functions

 mxcpcSimpleMxPEGViewer (QWidget *parent, mxcpcMxPEGCodecFactory *codec_factory, const QString &window_title_prefix=QString("SimpleMxPEGViewer"), int connection_timeout=2000)
 Well, constructor.
 ~mxcpcSimpleMxPEGViewer ()
void addMenuItem (const QString &item_text, const QObject *receiver, const char *slot)
 Adds an item to the viewer's context menu that is raised by right-clicking into the display.
void addMenuSeparator (void)
 Adds a horizontal separator to the viewer's popup menu.
void setFramerateMeasureModeEnabled (bool enabled, int measure_interval_ms=10000)
 Toggles framerate measure mode.

Protected Member Functions

void paintGL (void)
 Reimplemented.
void resizeGL (int width, int height)
 Reimplemented.
void mousePressEvent (QMouseEvent *e)
 Reimplemented.

Private Slots

void processIncoming (void)
void processWatchdog (void)
void processMeasuredFramerate (float fps)

Private Attributes

mxcpcMxPEGCodecFactoryCodecFactory
mxcpcFramewiseMxPEGDecoderDecoder
mxcpcAsynchronousCameraLiveMxPEGFastStreamFastStream
mxcpcBufferedMxPEGVideoRendererRenderer
QTimer * ConnectionWatchdogTimer
int LastDrawnFrame
int ConnectionTimeout
QMenu * Menu
mxcpcAuthenticationDialogAuthenticationDialog
mxcpcMessageDialogMessageDialog
QString WindowTitlePrefix
int FramerateMeasureInterval

Detailed Description

Simple, one-channel MxPEG viewer widget for early demo configurations.

Definition at line 48 of file mxcpcSimpleMxPEGViewer.h.


Constructor & Destructor Documentation

mxcpcSimpleMxPEGViewer::mxcpcSimpleMxPEGViewer QWidget *  parent,
mxcpcMxPEGCodecFactory codec_factory,
const QString &  window_title_prefix = QString("SimpleMxPEGViewer"),
int  connection_timeout = 2000
 

Well, constructor.

Parameters:
codec_factory will be used by the viewer when instantiating MxPEG decoding facilities. The viewer assumes ownership over the codec factory.
connection_timeout The timeout value specified will be added to the frame cycle time T = 1/framerate when engaging the stream connection watchdog timer.

Definition at line 47 of file mxcpcSimpleMxPEGViewer.cpp.


Member Function Documentation

void mxcpcSimpleMxPEGViewer::playCameraLiveFastStream const mxcpcIPAddress camera_ip,
int  camera_port,
const mxcpcProxyConfiguration camera_proxy_configuration,
float  fps
[slot]
 

Connects to the camera specified and begins displaying the live stream.

If the viewer was already streaming, the old stream source is disconected properly.

Definition at line 98 of file mxcpcSimpleMxPEGViewer.cpp.

References mxcpcIPAddress::getIP1(), mxcpcIPAddress::getIP2(), mxcpcIPAddress::getIP3(), and mxcpcIPAddress::getIP4().

Referenced by main().

void mxcpcSimpleMxPEGViewer::setFramerateMeasureModeEnabled bool  enabled,
int  measure_interval_ms = 10000
 

Toggles framerate measure mode.

Per default, the framerate measure mode is disabled.

Definition at line 215 of file mxcpcSimpleMxPEGViewer.cpp.

void mxcpcSimpleMxPEGViewer::stop void   )  [slot]
 

Disconnects any potential stream source asnd switches to disconnected state.

If the viewer is currently not connected to any stream source, the method has no effect.

Definition at line 182 of file mxcpcSimpleMxPEGViewer.cpp.

References ConnectionWatchdogTimer, Decoder, FastStream, Renderer, and WindowTitlePrefix.

Referenced by processWatchdog().


The documentation for this class was generated from the following files:
Generated on Mon Jan 30 15:52:46 2006 for mxcpc by  doxygen 1.4.4