#include <CurrentObserverStrategy.h>
Public Member Functions | |
CurrentObserverStrategy (void) | |
~CurrentObserverStrategy (void) | |
Protected Member Functions | |
void | initProperties () |
bool | drop (bool parentChanged) |
void | readPassiveBuffers (const std::vector< unsigned int > &types) |
void | readAllPassiveBuffers () |
void | readAllPickingPassiveBuffers () |
void | readSize () |
void | readOrientation () |
virtual void | readDirection () |
Protected Attributes | |
unsigned int | sizeBufferType |
unsigned int | orientationBufferType |
unsigned int | directionBufferType |
CurrentObserverStrategy::CurrentObserverStrategy | ( | void | ) |
Constructs a current aware strategy.
CurrentObserverStrategy::~CurrentObserverStrategy | ( | void | ) |
Destroys this strategy.
void CurrentObserverStrategy::initProperties | ( | ) | [protected] |
Initializes the properties (i. e., i-buffers) of the associated component.
bool CurrentObserverStrategy::drop | ( | bool | parentChanged | ) | [protected] |
Defines the strategy to be used when the associated component is "dropped" inside another component (likely, a container). It is called when the component is processed from the manager's update list. It usually defines some "decorative" behavior such as triggering animations, since the composition structure is already managed by the LargeDisplayManager class. Returns true if this call resulted in adding the component to a container with animation.
parentChanged | true if the component's parent changed with the dropping. |
void CurrentObserverStrategy::readPassiveBuffers | ( | const std::vector< unsigned int > & | types | ) | [protected] |
Reads the passive buffer(s) specified by the parameter 'type' and makes the proper updates in the state of the associated component.
type | the type of buffer that should be read from the container. |
void CurrentObserverStrategy::readAllPassiveBuffers | ( | ) | [protected] |
Reads all the passive buffers for a component strategy. This method is called before drawing the component in order to update its state/properties.
void CurrentObserverStrategy::readAllPickingPassiveBuffers | ( | ) | [protected] |
Reads only the passive buffers for a component strategy that are necessary for picking processing. This method is called before drawing the component for picking in order to update its state/properties.
void CurrentObserverStrategy::readSize | ( | ) | [protected] |
Updates the scale of the associated component based on a size buffer.
void CurrentObserverStrategy::readOrientation | ( | ) | [protected] |
Updates the rotation angle of the associated component based on an orientation buffer.
void CurrentObserverStrategy::readDirection | ( | ) | [protected, virtual] |
Updates the position of the associated component based on a direction buffer.
unsigned int CurrentObserverStrategy::sizeBufferType [protected] |
Absolute size buffer type identifier.
unsigned int CurrentObserverStrategy::orientationBufferType [protected] |
Orientation buffer type identifier.
unsigned int CurrentObserverStrategy::directionBufferType [protected] |
Direction buffer type identifier.