CameraEffectManager Class Reference
#include <CameraEffectManager.h>
![](../class_camera_effect_manager.png)
# Public Member Functions | |
void | constructor () |
Class' constructor. | |
override bool | handleMessage (Telegram telegram) |
void | reset () |
Reset the manager's state. | |
void | setFadeIncrement (uint8 fadeEffectIncrement) |
Brightness | getDefaultBrightness () |
virtual void | startEffect (int32 effect, va_list args) |
virtual void | stopEffect (int32 effect) |
# Private Attributes | |
Brightness | fxFadeTargetBrightness |
Target brightness for the current fade effect. | |
ListenerObject | fxFadeScope |
Callback scope for the current fade effect. | |
uint8 | fxFadeDelay |
Delay for the current fade effect. | |
uint8 | fadeEffectIncrement |
Fade increment. | |
bool | startingANewEffect |
Flag to signal that the current event listener has to be removed when the effect is complete. | |
![]() | |
VirtualList | events |
List of registered events. | |
int8 | eventFirings |
Counter that keeps track of the number of fired events to prevent race conditions in nested firings. |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
void | destructor () |
Class' destructor. | |
void | addEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListeners (uint16 eventCode) |
void | removeAllEventListeners () |
Remove all listener objects. | |
bool | hasActiveEventListeners () |
void | fireEvent (uint16 eventCode) |
void | sendMessageTo (ListenerObject receiver, uint32 message, uint32 delay, uint32 randomDelay) |
void | sendMessageToSelf (uint32 message, uint32 delay, uint32 randomDelay) |
void | discardAllMessages () |
Discard all messages, both to be sent and to be received. | |
void | discardMessages (uint32 message) |
virtual bool | onEvent (ListenerObject eventFirer, uint16 eventCode) |
# Detailed Description
Class CameraEffectManager
Inherits from ListenerObject
Manages camera's special effects, brightness transitions, etc.
Definition at line 51 of file CameraEffectManager.h.
# Member Function Documentation
# constructor()
void CameraEffectManager::constructor | ( | ) |
Class' constructor.
Definition at line 61 of file CameraEffectManager.c.
# getDefaultBrightness()
Brightness CameraEffectManager::getDefaultBrightness | ( | ) |
Retrieve the default brighness values for the current stage
- Returns
- Struct with the brightness levels
Definition at line 117 of file CameraEffectManager.c.
# handleMessage()
Receive and process a Telegram.
- Parameters
-
telegram Received telegram to process
- Returns
- True if the telegram was processed
Reimplemented from ListenerObject.
Definition at line 87 of file CameraEffectManager.c.
# reset()
void CameraEffectManager::reset | ( | ) |
Reset the manager's state.
Definition at line 101 of file CameraEffectManager.c.
# setFadeIncrement()
void CameraEffectManager::setFadeIncrement | ( | uint8 | fadeEffectIncrement | ) |
Set the fade increment to apply on the next effect.
- Parameters
-
fadeEffectIncrement Fade increment
Definition at line 110 of file CameraEffectManager.c.
# startEffect()
|
virtual |
Start a camera effect.
- Parameters
-
effect Code of the effect to start args Variable arguments list depending on the effect to start
Definition at line 142 of file CameraEffectManager.c.
# stopEffect()
|
virtual |
Stop a camera effect.
- Parameters
-
effect Code of the effect to stop
Definition at line 178 of file CameraEffectManager.c.
# Member Data Documentation
# fadeEffectIncrement
|
private |
Fade increment.
Definition at line 63 of file CameraEffectManager.h.
# fxFadeDelay
|
private |
Delay for the current fade effect.
Definition at line 60 of file CameraEffectManager.h.
# fxFadeScope
|
private |
Callback scope for the current fade effect.
Definition at line 57 of file CameraEffectManager.h.
# fxFadeTargetBrightness
|
private |
Target brightness for the current fade effect.
Definition at line 54 of file CameraEffectManager.h.
# startingANewEffect
|
private |
Flag to signal that the current event listener has to be removed when the effect is complete.
Definition at line 66 of file CameraEffectManager.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Camera/CameraEffectManager/CameraEffectManager.h
- VUEngine-Core/source/Camera/CameraEffectManager/CameraEffectManager.c