#include <VisualNotification.h>
Inherits VizKit::VisualObject.
List of all members.
Detailed Description
A VisualActor is notified about events and messages with a VisualNotification. The VisualActor can query the VisualNotification for details. The VisualActor can also set a value to pass it back to the caller.
Constructor & Destructor Documentation
| VisualNotification::VisualNotification |
( |
|
) |
|
Another constructor.
- Parameters:
-
| anIdentifier | Identifier of the notification. |
| VisualNotification::~VisualNotification |
( |
|
) |
|
Member Function Documentation
| void VisualNotification::convertNotificationKeyToString |
( |
const VisualNotificationKey |
aKey, |
|
|
char * |
outString | |
|
) |
| | [static] |
Static helper function that converts a VisualNotificationKey to the string. Possibly useful for debugging or tracing purposes.
- Parameters:
-
| aKey | The key of a notification. |
| outString | The character string value of the VisualNotificationKey enum value. |
Copy method for assignment operator and copy constructor.
- Parameters:
-
| void * VisualNotification::getData |
( |
uint32 & |
dataSizeInBytes |
) |
const |
Returns the untyped data of the notification.
- Parameters:
-
| [out] | dataSizeInBytes | The number of bytes the data occupies in memory. |
- Returns:
- The pointer to the memory location of the data.
Returns the key of the notification.
- Returns:
- The key of the notification. Notification keys are implemented as enums.
Returns a pointer to the object of the notification.
- Returns:
- A pointer to the object of the notification.
| void * VisualNotification::getPointer |
( |
void |
|
) |
|
Returns a pointer to some memory address.
- Returns:
- A pointer to some memory address.
| void VisualNotification::post |
( |
void |
|
) |
|
Static function for convenient posting of simple enum value of VisualNotificationKey.
- Parameters:
-
| aKey | The notification key to post. |
A VisualActor can be removed from the list of observers for a specific notification.
- Parameters:
-
| aVisualActor | A visual actor. |
| aNotificationKey | An enum that denotes a notification. |
| void VisualNotification::setData |
( |
const void *const |
someData, |
|
|
uint32 |
dataSizeInBytes | |
|
) |
| | |
Sets the value of a notification.
- Parameters:
-
| someData | The pointer to the memory location of the data. |
| dataSizeInBytes | The size of the data in bytes. |
Sets the key of a notification. Notification keys are implemented as enums.
- Parameters:
-
| void VisualNotification::setObject |
( |
const VisualObject & |
anObject |
) |
|
Sets the object of a notification.
- Parameters:
-
| anObject | The pointer to an object. |
| void VisualNotification::setPointer |
( |
void * |
pointer |
) |
|
Sets a pointer to some memory address.
- Parameters:
-
| pointer | A pointer to some memory address. |
Member Data Documentation
Optional data of notification.
The length of the optional data in bytes.
Enum value of notification as uint16.
Optional object of the notification.
Internally stored pointer to some memory address.
The documentation for this class was generated from the following files: