2 using System.Collections.Generic;
15 private string _ShapeName;
23 public string ShapeName
25 get {
return _ShapeName; }
26 set { _ShapeName = value; }
38 public override void Init(Table.Table Table)
42 Shape Def = Table.ShapeDefinitions.Shapes.FirstOrDefault(SH => SH.Name.Equals(ShapeName, StringComparison.InvariantCultureIgnoreCase));
80 FX.
Width = this.Width;
83 FX.
Name = this.Name +
" Target";
87 TargetEffect.
Init(Table);
100 if (TargetEffect != null)
107 public override void Trigger(Table.TableElementData TableElementData)
109 if (TargetEffect != null)
111 TargetEffect.
Trigger(TableElementData);
Base class for effects targeting a matrix of toys (e.g. addressable ledstrip)
override void Init(Table.Table Table)
MatrixAnimationStepDirectionEnum AnimationStepDirection
Gets or sets the animation direction.
AnimationBehaviourEnum AnimationBehaviour
Gets or sets the animation behaviour.
MatrixAnimationStepDirectionEnum AnimationStepDirection
Gets or sets the animation direction.
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.
Displays a shape on a RGBA matrix (typically a ledstrip matrix). The color of the displayed shape is ...
new string Name
Name of the effect.
int AnimationFrameCount
Gets or sets the number of frames for the whole animation.
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.
The RGBAMatrixBitmapEffect displays a defined part of a bitmap on a area of a RGBAtoy Matrix...
The RGBAMatrixBitmapAnimationEffect displays a anmation which is based on a image file on the definea...
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.
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.