![]() |
MHEG5
22.11.0
|
Implementation of the MHEG5 Scene Class Scene Class Defines a set of Ingredient objects to be activated together. Base class: Group Subclasses: None Status: Concrete class. More...
#include <string.h>
#include "mh5base.h"
#include "mh5profile.h"
#include "mh5scene.h"
#include "mh5object.h"
#include "mh5gate.h"
#include "mh5variable.h"
#include "mh5memory.h"
#include "tmcursor.h"
#include "mh5application.h"
#include "mh5display.h"
#include "mh5final.h"
#include "mh5cursorshape.h"
#include "mh5queue.h"
#include "mh5fileorm.h"
#include "mh5keypress.h"
#include "mh5debug.h"
#include "dvb_video.h"
#include "dvb_misc.h"
#include "mg_osd.h"
#include "fpa1_parserInvoke.h"
Functions | |
MHEG5Scene * | MHEG5getCurrentScene (void) |
This function returns the current scene. More... | |
void | MHEG5sceneInit (MHEG5Scene *scene) |
Initialise a scene object with default values. More... | |
void | MHEG5sceneFree (MHEG5Scene *scene) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed. More... | |
void | MHEG5scenePrepare (MHEG5Scene *scene) |
Apply the preparation behaviour of the scene class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class. More... | |
void | MHEG5sceneDestruct (MHEG5Scene *scene) |
Destruct a scene object. More... | |
void | MHEG5sceneActivate (MHEG5Scene *scene) |
Apply the activation behaviour of the scene class. As this class has no own activation behaviour this function just invokes the activation behaviour from the base class. More... | |
void | MHEG5sceneDeactivate (MHEG5Scene *scene) |
Apply the deactivation behaviour of the scene class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class. More... | |
MHEG5ErrorCode | MHEG5transitionTo (MHEG5Root *target, MHEG5GList *params) |
This function performs the TransitionTo action which leads to a new scene. Implementation of the TransitionTo ( Target [ConnectionTag] [TransitionEffect] ) action of the scene class. |NOTE:| Neither TransitionEffect nor ConnectionTag are currently implemented. Actions: TransitionTo (ConnectionTag, TransitionEffect) Check that target scene is different from active scene; if it is not, ignore action, if it is, remove the active Scene from the screen and replace it with the target Scene as follows. Execute synchronously the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5sendEventAction (MHEG5Root *target, MHEG5GList *params) |
The actions inserts an event defined by the given parameters into the systems event queue. Implementation of the SendEvent (EmulatedEventSource, EmulatedEventType, EmulatedEventData) action of the scene class. SendEvent (EmulatedEventSource, EmulatedEventType, EmulatedEventData) Force the occurrence of an event. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5setCursorShape (MHEG5Root *target, MHEG5GList *params) |
This action sets a new cursor shape. Implementation of the SetCursorShape (NewCursorShape) action of the scene class. SetCursorShape (NewCursorShape) Set the shape of the free moving cursor. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. If the NewCursorShape parameter is not encoded, the cursor is removed from the Scene. Provisions of use: The Target object shall be the active Scene object. NewCursorShape shall refer to an active CursorShape object. More... | |
MHEG5ErrorCode | MHEG5setCursorPosition (MHEG5Root *target, MHEG5GList *params) |
This action sets the cursor position to the values given as parameters. Implementation of the SetCursorPosition (XCursor, YCursor) action of the scene class. SetCursorPosition (XCursor, YCursor) Set the position of the free moving cursor. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5getCursorPosition (MHEG5Root *target, MHEG5GList *params) |
The effect of this action is that the current cursor position is retrieved and stored in the given variables. Implementation of the GetCursorPosition (XOutVar, YOutVar) action of the scene class. GetCursorPosition (XOut, YOut) Set the Variables referenced by XOut and YOut to the location of the free moving cursor within the coordinate space of the Scene. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. Provisions of use: The Target object shall be the active Scene object. XOut and YOut shall refer to active IntegerVariable objects. More... | |
MHEG5ErrorCode | MHEG5setInputRegister (MHEG5Root *target, MHEG5GList *params) |
Change the InputEventRegister attribute of the target Scene object. Changing the register will affect how subsequent key presses are handled by the Scene. Note that key events generated before the ElementaryAction are unchanged. Provisions of use: The target object shall be an available Scene object. More... | |
MHEG5ErrorCode | MHEG5setInputMask (MHEG5Root *target, MHEG5GList *params) |
Change the InputMask attribute of the target Scene object. Changing the registermask will affect how subsequent key presses are handled by the Scene. Note that key events generated before the ElementaryAction are unchanged. Provisions of use: The target object shall be an available Scene object. More... | |
Implementation of the MHEG5 Scene Class Scene Class Defines a set of Ingredient objects to be activated together. Base class: Group Subclasses: None Status: Concrete class.
MHEG5Scene* MHEG5getCurrentScene | ( | void | ) |
This function returns the current scene.
<Function description>="">
MHEG5ErrorCode MHEG5getCursorPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
The effect of this action is that the current cursor position is retrieved and stored in the given variables. Implementation of the GetCursorPosition (XOutVar, YOutVar) action of the scene class. GetCursorPosition (XOut, YOut) Set the Variables referenced by XOut and YOut to the location of the free moving cursor within the coordinate space of the Scene. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. Provisions of use: The Target object shall be the active Scene object. XOut and YOut shall refer to active IntegerVariable objects.
target | target object for this action |
params | Function parameters |
void MHEG5sceneActivate | ( | MHEG5Scene * | scene | ) |
Apply the activation behaviour of the scene class. As this class has no own activation behaviour this function just invokes the activation behaviour from the base class.
scene | Scene instance |
void MHEG5sceneDeactivate | ( | MHEG5Scene * | scene | ) |
Apply the deactivation behaviour of the scene class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class.
scene | Scene instance |
void MHEG5sceneDestruct | ( | MHEG5Scene * | scene | ) |
Destruct a scene object.
scene | Scene instance |
void MHEG5sceneFree | ( | MHEG5Scene * | scene | ) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.
scene | Pointer to object to free. |
void MHEG5sceneInit | ( | MHEG5Scene * | scene | ) |
Initialise a scene object with default values.
scene | Pointer to object to initialise |
void MHEG5scenePrepare | ( | MHEG5Scene * | scene | ) |
Apply the preparation behaviour of the scene class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class.
scene | Scene instance |
MHEG5ErrorCode MHEG5sendEventAction | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
The actions inserts an event defined by the given parameters into the systems event queue. Implementation of the SendEvent (EmulatedEventSource, EmulatedEventType, EmulatedEventData) action of the scene class. SendEvent (EmulatedEventSource, EmulatedEventType, EmulatedEventData) Force the occurrence of an event. Execute the following sequence of actions:
target | target object for this action |
params | Function parameters |
MHEG5ErrorCode MHEG5setCursorPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
This action sets the cursor position to the values given as parameters. Implementation of the SetCursorPosition (XCursor, YCursor) action of the scene class. SetCursorPosition (XCursor, YCursor) Set the position of the free moving cursor. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. Execute the following sequence of actions:
target | target object for this action |
params | Function parameters |
MHEG5ErrorCode MHEG5setCursorShape | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
This action sets a new cursor shape. Implementation of the SetCursorShape (NewCursorShape) action of the scene class. SetCursorShape (NewCursorShape) Set the shape of the free moving cursor. This action shall have an effect only if the free-moving cursor option is implemented by the MHEG-5 engine. If the NewCursorShape parameter is not encoded, the cursor is removed from the Scene. Provisions of use: The Target object shall be the active Scene object. NewCursorShape shall refer to an active CursorShape object.
target | target object for this action |
params | Function parameters |
MHEG5ErrorCode MHEG5setInputMask | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Change the InputMask attribute of the target Scene object. Changing the registermask will affect how subsequent key presses are handled by the Scene. Note that key events generated before the ElementaryAction are unchanged. Provisions of use: The target object shall be an available Scene object.
target | target object for this action |
params | Function parameters |
MHEG5ErrorCode MHEG5setInputRegister | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Change the InputEventRegister attribute of the target Scene object. Changing the register will affect how subsequent key presses are handled by the Scene. Note that key events generated before the ElementaryAction are unchanged. Provisions of use: The target object shall be an available Scene object.
target | target object for this action |
params | Function parameters |
MHEG5ErrorCode MHEG5transitionTo | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
This function performs the TransitionTo action which leads to a new scene. Implementation of the TransitionTo ( Target [ConnectionTag] [TransitionEffect] ) action of the scene class. |NOTE:| Neither TransitionEffect
nor ConnectionTag
are currently implemented. Actions: TransitionTo (ConnectionTag, TransitionEffect) Check that target scene is different from active scene; if it is not, ignore action, if it is, remove the active Scene from the screen and replace it with the target Scene as follows. Execute synchronously the following sequence of actions:
target | target object for this action |
params | Function parameter |