2 using System.Collections.Generic;
27 get {
return _ActiveColor; }
28 set { _ActiveColor = value; }
42 get {
return _InactiveColor; }
43 set { _InactiveColor = value; }
49 private string _ShapeName;
57 public string ShapeName
59 get {
return _ShapeName; }
60 set { _ShapeName = value; }
72 public override void Init(Table.Table Table)
76 Shape Def = Table.ShapeDefinitions.Shapes.FirstOrDefault(SH => SH.Name.Equals(ShapeName, StringComparison.InvariantCultureIgnoreCase));
117 FX.
Name = this.Name +
" Target";
122 FX.
Width = this.Width;
126 TargetEffect.
Init(Table);
139 if (TargetEffect != null)
146 public override void Trigger(Table.TableElementData TableElementData)
148 if (TargetEffect != null)
150 TargetEffect.
Trigger(TableElementData);
This class stores information on colors used for toys and effects (e.g. RGBLed).
Base class for effects targeting a matrix of toys (e.g. addressable ledstrip)
MatrixAnimationStepDirectionEnum AnimationStepDirection
Gets or sets the animation direction.
AnimationBehaviourEnum AnimationBehaviour
Gets or sets the animation behaviour.
MatrixAnimationStepDirectionEnum AnimationStepDirection
Gets or sets the animation direction.
This displays a defined part of a bitmap as a animation in the given colors on a area of a RGBAtoy Ma...
int BitmapFrameNumber
Gets or sets the number of the frame to be used. This is usefull if you work with animated gifs...
int AnimationFrameDurationMs
Gets or sets the animation frame duration in ms.
override void Init(Table.Table Table)
new string Name
Name of the effect.
int AnimationFrameCount
Gets or sets the number of frames for the whole animation.
Displays a shape on a RGBA matrix (typically a ledstrip array). The color of the displayed shape is c...
void Init(Table.Table Table)
Init must do all necessary initialization work after the IEffect object has been instanciated.
DirectOutput.General.BitmapHandling.FastBitmapDataExtractModeEnum DataExtractMode
DirectOutput.General.FilePattern BitmapFilePattern
DirectOutput.FX.FadeModeEnum FadeMode
void Trigger(TableElementData TableElementData)
Execute triggers the effect for the given TableElement.
int BitmapWidth
Gets or sets the width of the the part of the bitmap which is to be used.
FastBitmapDataExtractModeEnum DataExtractMode
Gets or sets the mode how data is extracted from the source bitmap.
int BitmapTop
Gets or sets the top of the the part of the bitmap which is to be used.
int AnimationStepSize
Gets or sets the size of the step in pixels or frames (depending on the AnimationStepDirection) to th...
void Finish()
Finish must do all necessary cleanupwork before a IEffect object is discarded.
int AnimationFrameCount
Gets or sets the number of frames for the whole animation.
The RGBAMatrixBitmapEffect displays a defined part of a bitmap in the given colors on a area of a RGB...
int BitmapLeft
Gets or sets the left boundary of the the part of the bitmap which is to be used. ...
int BitmapHeight
Gets or sets the height of the the part of the bitmap which is to be used.
The namespace FX contains effect related classes. Effects can be assigned directly to a Table and wi...
int AnimationStepSize
Gets or sets the size of the step in pixels or frames (depending on the AnimationStepDirection) to th...
The namespace DirectOutput.General contains classes for general use.
Effects in this namespace are controlling toys which implement the IMatrix interface ...
int AnimationFrameDurationMs
Gets or sets the animation frame duration in ms.
override void Trigger(Table.TableElementData TableElementData)
AnimationBehaviourEnum AnimationBehaviour
Gets or sets the animation behaviour.