#include <l1394_window.h>
Inheritance diagram for L1394_MM::Window:
Public Member Functions | |
Window (l1394_converter dec) | |
virtual | ~Window () |
destructor | |
virtual unsigned char * | getBuffer () const =0 |
This function return the window buffer to write data in it. | |
virtual void | setTitle (const char *title)=0 |
With this function you can set the title of window. | |
virtual void | update ()=0 |
This function update the display. | |
virtual int | getColorDepth () const =0 |
This function return the color depth of the window. | |
virtual void | start () |
This function starts the converter and diplay the frames. | |
virtual void | stop () |
This function stops the running window. | |
virtual void | connect (L1394::Device *) |
This function connects an L1394::Device to this window. | |
virtual void | disconnect () |
Disconnects a previous connected device, so the window can be reused by another device. | |
bool | isRunning () const |
Returns true, if the window is started, else false. | |
Protected Member Functions | |
L1394::Device * | getDevice () const |
Protected Attributes | |
L1394::internal::Message * | message |
If you want to use your own window classes with this library, you inherit the new window class from this class and implement the abstract functions. For Example see class XShmImg.
Definition at line 36 of file l1394_window.h.
|
\ fn Window() \ brief constructor Definition at line 32 of file l1394_window.cpp. References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), and message. |
|
destructor
Definition at line 37 of file l1394_window.cpp. References L1394::Thread::join(), L1394::Device::removeEventHandle(), and stop(). |
|
This function connects an L1394::Device to this window. This class inherits from class EventHandle and adds themself to the device eventhandling. If the device is deleted this object delete themself and you must not delete the window object.
Definition at line 95 of file l1394_window.cpp. References L1394::ThreadMutex::lock(), L1394::NODE_DESTROY, and L1394::ThreadMutex::unlock(). Referenced by main(). |
|
Disconnects a previous connected device, so the window can be reused by another device.
Definition at line 103 of file l1394_window.cpp. References L1394::ThreadMutex::lock(), and L1394::ThreadMutex::unlock(). Referenced by L1394_MM::XShmImg::nodeDestroy(). |
|
This function return the window buffer to write data in it. If the window has no own buffer, the assigned buffer will be returned, if it is set, if not NULL is returned.
Implemented in L1394_MM::XShmImg. |
|
This function return the color depth of the window. This value depends on your X-Server settings.
Implemented in L1394_MM::XShmImg. |
|
Definition at line 121 of file l1394_window.h. Referenced by L1394_MM::XShmImg::nodeDestroy(), and L1394_MM::XShmImg::start(). |
|
Returns true, if the window is started, else false.
Definition at line 117 of file l1394_window.h. |
|
With this function you can set the title of window.
Implemented in L1394_MM::XShmImg. |
|
This function starts the converter and diplay the frames. You don't need to reimplement this function if you use the run_static function to run the window. Reimplemented in L1394_MM::XShmImg. Definition at line 50 of file l1394_window.cpp. References L1394::Thread::start(). Referenced by L1394_MM::XShmImg::start(). |
|
This function stops the running window.
Definition at line 110 of file l1394_window.cpp. References L1394::ThreadMutex::lock(), and L1394::ThreadMutex::unlock(). Referenced by main(), L1394_MM::XShmImg::nodeDestroy(), L1394_MM::XShmImg::nodeDisabled(), ~Window(), and L1394_MM::XShmImg::~XShmImg(). |
|
This function update the display. This function must be called to show changes on the buffer. Implemented in L1394_MM::XShmImg. |
|
Definition at line 122 of file l1394_window.h. Referenced by L1394_MM::XShmImg::nodeDestroy(), and Window(). |