MFSM || XWindows module
Alexandre R.J. François
Module version: 0.1
FSF code version: 0.8
ARJF © 2005-2007
contents
Description
Reference guide
Index
The XWindows module provides interface to XWindows window and corresponding
output (and soon input) components.
More to come...
XWindows module elements are defined in the xwindows
namespace. This section lists all the elements defined in the module, in
alphabetical order.
CDisplay (fsf::Cell) "XWINDOWS_DISPLAY"
| Active filter | [IMAGE_IMAGE "Image"] |
| Passive filter | [XWINDOWS_INTERFACE "XWindows interface"] |
| Output | (no output) |
Image display cell.
Member functions
Constructors, destructor and other functions that are part of any derived cell class
- CDisplay() : default constructor
- virtual void GetTypeID(std::string &str) : factory mapping key; must be overloaded in any derived cell
Active stream processing
- virtual void Process(fsf::CPassiveHandle *pPassiveHandle, fsf::CActiveHandle *pActiveHandle, fsf::CActivePulse *pActivePulse): specialized processing function
CInterface (fsf::CNode) "XWINDOWS_INTERFACE"
XWindows interface node.
Data members
- fsf::CMutex m_csDisplay : mutex for X server pointer access
- Display *m_pDisplay : connection to X server
- Window m_window : window handle
- int m_depth : graphics depth
- GC m_gc : graphics context handle
- Visual *m_pVisual : pointer to visual
- std::string m_strWindowTitle : string to display in window title bar
- long m_nWidth : window width (at creation...)
- long m_nHeight : window height (at creation...)
Member functions
Constructors, destructor and other functions that are part of any derived node class
- CInterface() : default constructor
- CInterface(CNode *pParent, fsf::Time tTime=0) : initialization constructor
- CInterface(const std::string &strName, CNode *pParent=NULL, fsf::Time tTime=0) : initialization constructor
- CInterface(const string &strWindowTitle, long nWidth, long nHeight, fsf::CNode *pParent=NULL, fsf::Time tTime=0) : initialization constructor
- CInterface(const string &strName, const string &strWindowTitle, long nWidth, long nHeight, fsf::CNode *pParent=NULL, fsf::Time tTime=0) : initialization constructor
- CInterface(const CInterface&) : copy constructor
- CInterface& operator=(const CInterface&) : assignment operator
- virtual CNode* Clone() : virtual cloning member function (necessary for run-time polymorphism)
- virtual void GetTypeID(std::string &str) : factory mapping key
Member functions
- void StartInterface() :
- static void* InterfaceThreadProc(void* pParam) : static function for interface thread (event processing)
- bool Init() : create window and start interface
- void Close() : close window and stop interface
- bool EventLoop() : process events received
- void SetSize(int nWidth, int nHeight) : set (initial) width and height
- void SetTitle(std::string strTitle) : set title string
- bool DrawImage(image::CImage *pImage) : display input image in window
Registers the factories for the nodes and cells defined in the module, with
the unique system instance.
C
R