WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
ShapeAnimated.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
6 
7 namespace DirectOutput.FX.MatrixFX.BitmapShapes
8 {
9  public class ShapeAnimated : Shape
10  {
11  private MatrixAnimationStepDirectionEnum _AnimationStepDirection = MatrixAnimationStepDirectionEnum.Frame;
12 
19  public MatrixAnimationStepDirectionEnum AnimationStepDirection
20  {
21  get { return _AnimationStepDirection; }
22  set { _AnimationStepDirection = value; }
23  }
24 
25  private int _AnimationStepSize = 1;
26 
33  public int AnimationStepSize
34  {
35  get { return _AnimationStepSize; }
36  set { _AnimationStepSize = value; }
37  }
38 
39 
40  private int _AnimationFrameCount = 1;
41 
48  public int AnimationFrameCount
49  {
50  get { return _AnimationFrameCount; }
51  set { _AnimationFrameCount = value.Limit(1, int.MaxValue); }
52  }
53 
54  private AnimationBehaviourEnum _AnimationBehaviour = AnimationBehaviourEnum.Loop;
55 
62  public AnimationBehaviourEnum AnimationBehaviour
63  {
64  get { return _AnimationBehaviour; }
65  set { _AnimationBehaviour = value; }
66  }
67 
68 
69  private int _AnimationFrameDurationMs = 30;
70 
77  public int AnimationFrameDurationMs
78  {
79  get { return _AnimationFrameDurationMs; }
80  set { _AnimationFrameDurationMs = value.Limit(1, int.MaxValue); }
81  }
82 
83 
84 
85 
86 
87  }
88 }
AnimationBehaviourEnum
This enum describes the different supported behaviours for animations.
The namespace DirectOutput.General contains classes for general use.