#include <FrictionSurfaceStrategy.h>
Public Member Functions | |
FrictionSurfaceStrategy (void) | |
~FrictionSurfaceStrategy (void) | |
unsigned int | getBorderWidth () |
void | setBorderWidth (unsigned int w) |
unsigned int | getBorderHeight () |
void | setBorderHeight (unsigned int h) |
float | getInnerFriction () |
void | setInnerFriction (float coeff) |
float | getBorderFriction () |
void | setBorderFriction (float coeff) |
Protected Member Functions | |
void | initProperties () |
void | resize (unsigned int width, unsigned int height) |
void | fillFrictionBuffer (IBuffer< float > *buffer) |
Protected Attributes | |
unsigned int | borderWidth |
unsigned int | borderHeight |
float | innerFriction |
float | borderFriction |
unsigned int | frictionBufferType |
FrictionSurfaceStrategy::FrictionSurfaceStrategy | ( | void | ) |
Constructs a friction surface strategy.
FrictionSurfaceStrategy::~FrictionSurfaceStrategy | ( | void | ) |
Destroys this strategy.
unsigned int FrictionSurfaceStrategy::getBorderWidth | ( | ) | [inline] |
Returns the width of the border of the surface (region where the objects should halt).
void FrictionSurfaceStrategy::setBorderWidth | ( | unsigned int | w | ) | [inline] |
Sets the width of the border of the surface (region where the objects should halt).
w | the value to be set as the border width. |
unsigned int FrictionSurfaceStrategy::getBorderHeight | ( | ) | [inline] |
Returns the height of the border of the surface (region where the objects should halt).
void FrictionSurfaceStrategy::setBorderHeight | ( | unsigned int | h | ) | [inline] |
Sets the height of the border of the surface (region where the objects should halt).
h | the value to be set as the border height. |
float FrictionSurfaceStrategy::getInnerFriction | ( | ) | [inline] |
Returns the friction coefficient for the inner part of the surface.
void FrictionSurfaceStrategy::setInnerFriction | ( | float | coeff | ) | [inline] |
Sets the friction coefficient for the inner part of the surface.
coeff | the value to be set as friction coefficient for the inner part of the surface. |
float FrictionSurfaceStrategy::getBorderFriction | ( | ) | [inline] |
Returns the friction coefficient for the border of the surface.
void FrictionSurfaceStrategy::setBorderFriction | ( | float | coeff | ) | [inline] |
Sets the friction coefficient for the border of the surface.
coeff | the value to be set as friction coefficient for the border of the surface. |
void FrictionSurfaceStrategy::initProperties | ( | ) | [protected] |
Initializes the properties (i. e., i-buffers) of the associated component.
void FrictionSurfaceStrategy::resize | ( | unsigned int | width, | |
unsigned int | height | |||
) | [protected] |
Defines the strategy to be used when the associated component is resized.
width | the new width of the component. | |
height | the new height of the component. |
void FrictionSurfaceStrategy::fillFrictionBuffer | ( | IBuffer< float > * | buffer | ) | [protected] |
Fills the friction buffer with the default values.
buffer | the button buffer to be filled. |
unsigned int FrictionSurfaceStrategy::borderWidth [protected] |
Width of the border of the buffer (with stop values).
unsigned int FrictionSurfaceStrategy::borderHeight [protected] |
Height of the border of the buffer (with stop values).
float FrictionSurfaceStrategy::innerFriction [protected] |
Friction coefficient applied to the inner region of the surface.
float FrictionSurfaceStrategy::borderFriction [protected] |
Friction coefficient applied to the border region of the surface (stop value).
unsigned int FrictionSurfaceStrategy::frictionBufferType [protected] |
Friction buffer type identifier.