public PillarRenderContext(PillarLayer layer, double canvasHeight, double pillarWidth)
 {
     _index        = 0;
     _layer        = layer;
     _canvasHeight = canvasHeight;
     _location.X   = 0;
     _size.Width   = pillarWidth;
 }
Example #2
0
 public PillarImage()
 {
     _layers = new PillarLayer[3];
     for (int i = 0; i < 3; i++)
     {
         _layers[i] = new PillarLayer();
         AddVisualChild(_layers[i]);
     }
 }
Example #3
0
            public LimitLineRenderContext(PillarLayer layer, RenderContext context, double canvasHeight, double pillarWidth)
            {
                var param = Parameter.GetInstance();

                _bluntScale = param.BluntLimitPercent + 1f;
                _breakScale = param.BreakLimitPercent + 1f;

                _layer        = layer;
                _context      = context;
                _canvasHeight = canvasHeight;
                _pillarWidth  = pillarWidth;

                _lastBlunt    = new Point(0, LastBlunt);
                _lastBreak    = new Point(0, LastBreak);
                _currentBlunt = new Point(pillarWidth, 0);
                _currentBreak = new Point(pillarWidth, 0);
            }