PixelLightAPI
.
|
Connection between two controllers/controls. More...
#include <Connection.h>
Public Member Functions | |
PLINPUT_API | Connection (Control *pInput, Control *pOutput, float fScale=1.0f) |
Constructor. | |
virtual PLINPUT_API | ~Connection () |
Destructor. | |
PLINPUT_API Control * | GetInputControl () const |
Get input control. | |
PLINPUT_API Control * | GetOutputControl () const |
Get output control. | |
PLINPUT_API bool | IsValid () const |
Check if connection is value. | |
virtual PLINPUT_API void | PassValue () |
Pass value from input to output. | |
virtual PLINPUT_API void | PassValueBackwards () |
Pass value backwards from output to input. | |
Protected Attributes | |
Control * | m_pInput |
Control * | m_pOutput |
bool | m_bValid |
float | m_fScale |
Connection between two controllers/controls.
PLINPUT_API PLInput::Connection::Connection | ( | Control * | pInput, |
Control * | pOutput, | ||
float | fScale = 1.0f |
||
) |
Constructor.
[in] | pInput | Input control, can be a null pointer |
[in] | pOutput | Output control, can be a null pointer |
[in] | fScale | Scale factor |
virtual PLINPUT_API PLInput::Connection::~Connection | ( | ) | [virtual] |
Destructor.
PLINPUT_API Control* PLInput::Connection::GetInputControl | ( | ) | const |
Get input control.
PLINPUT_API Control* PLInput::Connection::GetOutputControl | ( | ) | const |
Get output control.
PLINPUT_API bool PLInput::Connection::IsValid | ( | ) | const |
Check if connection is value.
virtual PLINPUT_API void PLInput::Connection::PassValue | ( | ) | [virtual] |
Pass value from input to output.
virtual PLINPUT_API void PLInput::Connection::PassValueBackwards | ( | ) | [virtual] |
Pass value backwards from output to input.
Control* PLInput::Connection::m_pInput [protected] |
Input control, can be a null pointer
Control* PLInput::Connection::m_pOutput [protected] |
Output control, can be a null pointer
bool PLInput::Connection::m_bValid [protected] |
'true' if connection is valid, else 'false'
float PLInput::Connection::m_fScale [protected] |
Scale factor
|