DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.FX.AssignedEffect Class Reference

Handles the assignemt of a effect to a AssignedEffectList. More...

Public Member Functions

void Trigger (TableElementData TableElementData)
 Triggers the assigned Effect. More...
 
void Init (Table.Table Table)
 Initializes the AssignedEffect. More...
 
void Finish ()
 Finishes this instance of the AssignedEffect object. More...
 
 AssignedEffect ()
 Initializes a new instance of the AssignedEffect class. More...
 
 AssignedEffect (string EffectName)
 Initializes a new instance of the AssignedEffect class for the specified EffectName . More...
 

Protected Member Functions

void TableElementEffect_EffectNameChanged (object sender, EventArgs e)
 Handles the EffectNameChanged event of the TableElementEffect control. More...
 

Properties

string EffectName [get, set]
 Name of the AssignedEffect.
Triggers EffectNameChanged if value is changed. More...
 
IEffect Effect [get, set]
 Effect for the AssignedEffect (ReadOnly).
The property is resolved from the EffectName. If EffectName is empty or unknown this property will return null. More...
 

Events

EventHandler< EventArgs > EffectNameChanged
 Event is fired if the value of the property EffectName is changed. More...
 

Detailed Description

Handles the assignemt of a effect to a AssignedEffectList.

Constructor & Destructor Documentation

DirectOutput.FX.AssignedEffect.AssignedEffect ( )

Initializes a new instance of the AssignedEffect class.

DirectOutput.FX.AssignedEffect.AssignedEffect ( string  EffectName)

Initializes a new instance of the AssignedEffect class for the specified EffectName .

Parameters
EffectNameName of the effect.

Member Function Documentation

void DirectOutput.FX.AssignedEffect.Finish ( )

Finishes this instance of the AssignedEffect object.

void DirectOutput.FX.AssignedEffect.Init ( Table.Table  Table)

Initializes the AssignedEffect.

Parameters
TableThe table which contains the AssignedEffect.
void DirectOutput.FX.AssignedEffect.TableElementEffect_EffectNameChanged ( object  sender,
EventArgs  e 
)
protected

Handles the EffectNameChanged event of the TableElementEffect control.

Parameters
senderThe source of the event.
eThe EventArgs instance containing the event data.
void DirectOutput.FX.AssignedEffect.Trigger ( TableElementData  TableElementData)

Triggers the assigned Effect.

Remarks
If the assigned effect throws a exception the effect will be deactivated.
Parameters
TableElementDataThe table element data.

Property Documentation

IEffect DirectOutput.FX.AssignedEffect.Effect
getset

Effect for the AssignedEffect (ReadOnly).
The property is resolved from the EffectName. If EffectName is empty or unknown this property will return null.

string DirectOutput.FX.AssignedEffect.EffectName
getset

Name of the AssignedEffect.
Triggers EffectNameChanged if value is changed.

The name of the assigned effect.

Event Documentation

EventHandler<EventArgs> DirectOutput.FX.AssignedEffect.EffectNameChanged

Event is fired if the value of the property EffectName is changed.


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