RenderStack 11.06.1
Public Member Functions | Properties
example.Scene.Controller Class Reference

List of all members.

Public Member Functions

void Update ()
void Adjust (float delta)
 Controller ()
 Controller (bool linear, bool multiply)
void Clear ()
void SetDampMode (bool linear, bool multiply)
void SetDampAndMaxDelta (float damp, float maxDelta)

Properties

float Damp [get, set]
float MaxValue [get, set]
float MaxDelta [get, set]
bool Inhibit [set]
bool More [set]
bool Less [set]
bool Stop [set]
float CurrentValue [get]

Detailed Description

Definition at line 27 of file example.Scene/Controller.cs.


Constructor & Destructor Documentation

example.Scene.Controller.Controller ( )

Definition at line 236 of file example.Scene/Controller.cs.

        {
            Clear();
        }
example.Scene.Controller.Controller ( bool  linear,
bool  multiply 
)

Definition at line 240 of file example.Scene/Controller.cs.

        {
            Clear();
            SetDampMode(linear, multiply);
        }

Member Function Documentation

void example.Scene.Controller.Update ( )

Definition at line 80 of file example.Scene/Controller.cs.

        {
            if(
                (active  == true) &&
                (inhibit == false)
                )
            {
                Adjust(currentDelta);
            }
            Dampen();
        }
void example.Scene.Controller.Adjust ( float  delta)

Definition at line 91 of file example.Scene/Controller.cs.

Referenced by example.Scene.Application.UpdateControls().

        {
            currentValue += delta;
            if(currentValue > maxValue)
            {
                currentValue = maxValue;
            }
            else if(currentValue < minValue)
            {
                currentValue = minValue;
            }
        }
void example.Scene.Controller.Clear ( )

Definition at line 245 of file example.Scene/Controller.cs.

        {
            /*_scale          = 1.0f;*/ 
            damp           =  0.950f;
            maxDelta       =  0.004f;
            maxValue       =  1.000f;
            minValue       = -1.000f;
            currentValue   =  0.0f;
            currentDelta   =  0.0f;
            more           = false;
            less           = false;
            stop           = false;
            active         = false;
            dampenLinear   = false;
            dampenMultiply = true;
        }
void example.Scene.Controller.SetDampMode ( bool  linear,
bool  multiply 
)

Definition at line 262 of file example.Scene/Controller.cs.

        {
            dampenLinear = linear;
            dampenMultiply = multiply;
        }
void example.Scene.Controller.SetDampAndMaxDelta ( float  damp,
float  maxDelta 
)

Definition at line 267 of file example.Scene/Controller.cs.

        {
            this.damp     = damp;
            this.maxDelta = maxDelta;
        }

Property Documentation

float example.Scene.Controller.Damp [get, set]

Definition at line 47 of file example.Scene/Controller.cs.

float example.Scene.Controller.MaxValue [get, set]

Definition at line 58 of file example.Scene/Controller.cs.

float example.Scene.Controller.MaxDelta [get, set]

Definition at line 69 of file example.Scene/Controller.cs.

bool example.Scene.Controller.Inhibit [set]
bool example.Scene.Controller.More [set]
bool example.Scene.Controller.Less [set]
bool example.Scene.Controller.Stop [set]

Definition at line 202 of file example.Scene/Controller.cs.

float example.Scene.Controller.CurrentValue [get]

Definition at line 261 of file example.Scene/Controller.cs.


The documentation for this class was generated from the following file: