DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
|
Motor toy supporting max. and min. power, max. runtime and kickstart settings.
The settings of this toy allow for a detailed definition of the behaviour of the connected motor.
More...
Public Member Functions | |
override void | UpdateOutputs () |
Updates the output of the toy. More... | |
override void | Init (Cabinet Cabinet) |
Initalizes the Motor toy. More... | |
override void | Finish () |
Finishes the Motor toy and releases used references. More... | |
Public Member Functions inherited from DirectOutput.Cab.Toys.Layer.AnalogAlphaToy | |
override void | Init (Cabinet Cabinet) |
Initializes the toy. More... | |
override void | UpdateOutputs () |
Updates the output of the toy. More... | |
override void | Finish () |
Resets the toy and releases all references More... | |
override void | Reset () |
Resets the toy. Clears the Layers object and turn off the output (if available). Method must be overwritten. More... | |
AnalogAlphaToy () | |
Initializes a new instance of the AnalogAlphaToy class. More... | |
Properties | |
int | MaxRunTimeMs [get, set] |
Gets or sets the max run time for the toy in milliseconds. Default value of this property is 30000 (5 minutes). Set value to 0 for infinite runtime. More... | |
int | KickstartPower [get, set] |
Gets or sets the kickstart power for the motor. If motor are run with low power they might not start to rotate without some initial kickstart. KickstartPower will only be applied if the motor is started with a power setting below the defined KickstartPower. Default value of this setting is 255. Set value to 0 to skip kickstart. More... | |
int | KickstartDurationMs [get, set] |
Gets or sets the kickstart duration (time during which the KickstartPower is applied) in milliseconds. Property defaults to 100 milliseconds. Set value to 0 to skip kickstart. More... | |
int | MinPower [get, set] |
Gets or sets the minimal power for the toy when it is active. More... | |
int | MaxPower [get, set] |
Gets or sets the max power for the toy. More... | |
Properties inherited from DirectOutput.Cab.Toys.Layer.AnalogAlphaToy | |
LayerDictionary< AnalogAlpha > | Layers [get, set] |
Gets the layers dictionary. More... | |
string | OutputName [get, set] |
Gets or sets the name of the IOutput object of the toy. More... | |
string | FadingCurveName [get, set] |
Gets or sets the name of the fading curve as defined in the Curves list of the cabinet object. This curve can be used to adjust the output values of the toy to fit the behaviour of the toys hardware and/or human perception. More... | |
Properties inherited from DirectOutput.Cab.Toys.ISingleOutputToy | |
string | OutputName [get, set] |
Gets or sets the name of the output of the toy. More... | |
Properties inherited from DirectOutput.Cab.Toys.IToy | |
new string | Name [get, set] |
Gets or sets the Name of the IToy. More... | |
Properties inherited from DirectOutput.General.Generic.INamedItem | |
string | Name [get, set] |
Gets or sets the name of the item. Must fire the BeforeNameChange and AfterNameChange events when the value of the property is changed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DirectOutput.Cab.Toys.Layer.AnalogAlphaToy | |
int | GetResultingValue () |
Gets the analog value which results from the analog values and alpha values in the dirctionary. More... | |
Protected Attributes inherited from DirectOutput.Cab.Toys.Layer.AnalogAlphaToy | |
IOutput | Output |
Curve | FadingCurve = null |
Cabinet | Cabinet |
Events inherited from DirectOutput.General.Generic.NamedItemBase | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Event is fired after the value of the property Name has changed. More... | |
EventHandler< NameChangeEventArgs > | BeforeNameChange |
Event is fired before the value of the property Name is changed. More... | |
Events inherited from DirectOutput.General.Generic.INamedItem | |
EventHandler< NameChangeEventArgs > | BeforeNameChange |
Occurs before the name of the item changes. More... | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Occurs when after the name of the item has changed. More... | |
Motor toy supporting max. and min. power, max. runtime and kickstart settings.
The settings of this toy allow for a detailed definition of the behaviour of the connected motor.
override void DirectOutput.Cab.Toys.Hardware.Motor.Finish | ( | ) |
Finishes the Motor toy and releases used references.
Implements DirectOutput.Cab.Toys.IToy.
override void DirectOutput.Cab.Toys.Hardware.Motor.Init | ( | Cabinet | Cabinet | ) |
Initalizes the Motor toy.
Implements DirectOutput.Cab.Toys.IToy.
|
virtual |
Updates the output of the toy.
Implements DirectOutput.Cab.Toys.ToyBaseUpdatable.
|
getset |
Gets or sets the kickstart duration (time during which the KickstartPower is applied) in milliseconds.
Property defaults to 100 milliseconds.
Set value to 0 to skip kickstart.
The kickstart duration in milliseconds.
|
getset |
Gets or sets the kickstart power for the motor.
If motor are run with low power they might not start to rotate without some initial kickstart. KickstartPower will only be applied if the motor is started with a power setting below the defined KickstartPower.
Default value of this setting is 255.
Set value to 0 to skip kickstart.
The kickstart power for the motor.
|
getset |
Gets or sets the max power for the toy.
The max power for the toy.
|
getset |
Gets or sets the max run time for the toy in milliseconds.
Default value of this property is 30000 (5 minutes).
Set value to 0 for infinite runtime.
The max run time in milliseconds.
|
getset |
Gets or sets the minimal power for the toy when it is active.
The minimal power for the toy. This property can be used to ensure that the motor will allways rotate when it is active and not getting stuck due to low power.