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

L1394_MM::XShmImg Class Reference
[L1394_Display]

This class implements a X-Window with shared memory. More...

#include <l1394_XShmImg.h>

Inheritance diagram for L1394_MM::XShmImg:

L1394_MM::Window L1394::EventHandle List of all members.

Public Member Functions

 XShmImg (const int width, const int height, const char *title, l1394_converter=0)
 constructor
 XShmImg (const char *title, l1394_converter=0)
 constructor
virtual ~XShmImg ()
 destructor
unsigned char * getBuffer () const
 This function returns a pointer to the shared memory of the window.
void update ()
 This function updates the X-window.
void setTitle (const char *title)
 This function sets the title of the X-window.
int getColorDepth () const
 This function returns the color depth of a window as integer value.
virtual void start ()
 This function starts the converter and diplay the frames.
virtual void nodeDestroy (const L1394::Node *)
 If this function is called, the destructor of this class is called.
virtual void nodeDisabled (const L1394::Node *)
 This function handles the NODE_DISABLED event from the connected device.

Detailed Description

This class implements a X-Window with shared memory.

Definition at line 21 of file l1394_XShmImg.h.


Constructor & Destructor Documentation

L1394_MM::XShmImg::XShmImg const int  width,
const int  height,
const char *  title,
l1394_converter  converter = 0
 

constructor

Parameters:
width : width value for the window
height : height value for the window
title : char* title of the window
converter : function pointer to the decoder (will be removed in later versions)

Definition at line 10 of file l1394_XShmImg.cpp.

References setTitle().

L1394_MM::XShmImg::XShmImg const char *  title,
l1394_converter  converter = 0
 

constructor

Parameters:
title : char* title of the window
converter : function pointer to the decoder (will be removed in later versions)

Definition at line 19 of file l1394_XShmImg.cpp.

L1394_MM::XShmImg::~XShmImg  )  [virtual]
 

destructor

Definition at line 114 of file l1394_XShmImg.cpp.

References L1394_MM::Window::stop().


Member Function Documentation

L1394_MM::XShmImg::getBuffer  )  const [virtual]
 

This function returns a pointer to the shared memory of the window.

Implements L1394_MM::Window.

Definition at line 125 of file l1394_XShmImg.cpp.

L1394_MM::XShmImg::getColorDepth  )  const [inline, virtual]
 

This function returns the color depth of a window as integer value.

This value depends on your X-Server settings.

Returns:
int : the color depth (in Bit) as integer value (normally 16 o 24)

Implements L1394_MM::Window.

Definition at line 68 of file l1394_XShmImg.h.

L1394_MM::XShmImg::nodeDestroy const L1394::Node node  )  [virtual]
 

If this function is called, the destructor of this class is called.

So you don't need to delete a connected window.

Parameters:
node,: pointer to the connected parent-node

Definition at line 150 of file l1394_XShmImg.cpp.

References L1394_MM::Window::disconnect(), L1394::internal::Message::errorStream(), L1394_MM::Window::getDevice(), L1394_MM::Window::message, and L1394_MM::Window::stop().

L1394_MM::XShmImg::nodeDisabled const L1394::Node  )  [virtual]
 

This function handles the NODE_DISABLED event from the connected device.

Definition at line 145 of file l1394_XShmImg.cpp.

References L1394_MM::Window::stop().

L1394_MM::XShmImg::setTitle const char *  title  )  [virtual]
 

This function sets the title of the X-window.

Parameters:
title : const char* to the name of the window.

Implements L1394_MM::Window.

Definition at line 138 of file l1394_XShmImg.cpp.

Referenced by XShmImg().

void L1394_MM::XShmImg::start  )  [virtual]
 

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 from L1394_MM::Window.

Definition at line 28 of file l1394_XShmImg.cpp.

References L1394_MM::Window::getDevice(), and L1394_MM::Window::start().

Referenced by main().

L1394_MM::XShmImg::update  )  [virtual]
 

This function updates the X-window.

Implements L1394_MM::Window.

Definition at line 132 of file l1394_XShmImg.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:46 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/