Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Message Class Reference

#include <message.h>

Inheritance diagram for Message:

Inheritance graph
[legend]
Collaboration diagram for Message:

Collaboration graph
[legend]

Detailed Description

Messages are like events except that the recipient is known. Messages cand be sent to all recipients via BROADCAST.


Public Member Functions

 Message (Message *)
 Message (const char *, BaseSceneNode *)
 Message (Camera *, const char *, BaseSceneNode *)
void assign_context (Camera *)
void assign_scope (MessageScope)
Cameraget_context (void)
MessageScope get_scope (void)
const char * get_msg (void)
BaseSceneNodeget_recipient (void)
virtual bool is_type (const char *)

Static Public Attributes

BaseSceneNode *const  BROADCAST = NULL
ConstMessageScope ALL_CAMERAS = "All Cameras"
ConstMessageScope THIS_WINDOW = "This Window"
ConstMessageScope THIS_CAMERA = "This Camera"

Protected Attributes

Cameracontext
MessageScope scope
const char * msg
BaseSceneNoderecipient


Constructor & Destructor Documentation

Message::Message Message  ) 
 

Message::Message const char *  ,
BaseSceneNode
 

Message::Message Camera ,
const char *  ,
BaseSceneNode
 


Member Function Documentation

void Message::assign_context Camera  ) 
 

void Message::assign_scope MessageScope   ) 
 

Camera * Message::get_context void   ) 
 

MessageScope Message::get_scope void   ) 
 

const char * Message::get_msg void   ) 
 

BaseSceneNode * Message::get_recipient void   ) 
 

bool Message::is_type const char *   )  [virtual]
 

Reimplemented in EmptyMessage.


Field Documentation

Camera* Message::context [protected]
 

MessageScope Message::scope [protected]
 

const char* Message::msg [protected]
 

BaseSceneNode* Message::recipient [protected]
 

BaseSceneNode *const Message::BROADCAST = NULL [static]
 

Broadcast address to set recipient to

const ConstMessageScope Message::ALL_CAMERAS = "All Cameras" [static]
 

Set scope to ALL_CAMERAS to affect nodes visible in all cameras.

const ConstMessageScope Message::THIS_WINDOW = "This Window" [static]
 

Set scope to THIS_WINDOW to affect nodes visible in this GraphWindow only

const ConstMessageScope Message::THIS_CAMERA = "This Camera" [static]
 

Set scope to THIS_CAMERA to affect nodes visible in the context camera only


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:35 2004 for cZUI by doxygen 1.3.5