DDraceNetwork Docs
|
#include <smooth_value.h>
Public Member Functions | |
CSmoothValue (float InitialValue, float MinValue, float MaxValue) | |
void | SetValue (float Target) |
void | ChangeValue (float Amount) |
void | SetValueInstant (float Target) |
bool | UpdateValue () |
float | GetValue () const |
void | SetValueRange (float MinValue, float MaxValue) |
float | GetMinValue () const |
float | GetMaxValue () const |
Public Member Functions inherited from CEditorComponent | |
virtual bool | OnInput (const IInput::CEvent &Event) override |
void | InitSubComponents () |
void | RegisterSubComponent (CEditorComponent &Component) |
Public Member Functions inherited from CEditorObject | |
virtual | ~CEditorObject ()=default |
virtual void | OnInit (CEditor *pEditor) |
virtual void | OnUpdate () |
virtual bool | OnInput (const IInput::CEvent &Event) |
virtual void | OnRender (CUIRect View) |
virtual void | OnHot () |
virtual void | OnActive () |
virtual void | OnReset () |
virtual void | OnMapLoad () |
bool | IsHot () |
void | SetHot () |
void | UnsetHot () |
bool | IsActive () |
void | SetActive () |
void | SetInactive () |
CEditor * | Editor () |
const CEditor * | Editor () const |
IInput * | Input () |
IClient * | Client () |
CConfig * | Config () |
IConsole * | Console () |
IEngine * | Engine () |
IGraphics * | Graphics () |
ISound * | Sound () |
ITextRender * | TextRender () |
IStorage * | Storage () |
CUi * | Ui () |
CRenderTools * | RenderTools () |
Private Member Functions | |
float | ZoomProgress (float CurrentTime) const |
Private Attributes | |
bool | m_Smoothing |
float | m_Value |
CCubicBezier | m_ValueSmoothing |
float | m_ValueSmoothingTarget |
float | m_ValueSmoothingStart |
float | m_ValueSmoothingEnd |
float | m_MinValue |
float | m_MaxValue |
A value that is changed smoothly over time.
CSmoothValue::CSmoothValue | ( | float | InitialValue, |
float | MinValue, | ||
float | MaxValue | ||
) |
void CSmoothValue::ChangeValue | ( | float | Amount | ) |
Change the value by the given amount.
float CSmoothValue::GetMaxValue | ( | ) | const |
float CSmoothValue::GetMinValue | ( | ) | const |
float CSmoothValue::GetValue | ( | ) | const |
void CSmoothValue::SetValue | ( | float | Target | ) |
Set a new target which the value should change to.
void CSmoothValue::SetValueInstant | ( | float | Target | ) |
Set the value to the target instantly. If the value was changing the target will be discarded.
void CSmoothValue::SetValueRange | ( | float | MinValue, |
float | MaxValue | ||
) |
bool CSmoothValue::UpdateValue | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |