コード例 #1
0
ファイル: Layer.cs プロジェクト: luosz/ai-algorithmplatform
 public Layer_M2MLevel(ILevel M2MLevel)
 {
     this.level = M2MLevel;
     layer_Grid = new Layer_Grid(level);
     UpdateLayerGridTransform();
     maxRect = GetMaxRect();
 }
コード例 #2
0
ファイル: Layer.cs プロジェクト: luosz/ai-algorithmplatform
        public override void Draw(Graphics graphics)
        {
            if (Visible)
            {
                Color tempColor = GridColor;

                for (int i = m2mStructure.GetLevelNum() - 1; i > 0; i--)
                {
                    layer_Grid = new Layer_Grid(m2mStructure.GetLevel(i));

                    layer_Grid.ScreenScaleX       = this.ScreenScaleX;
                    layer_Grid.ScreenScaleY       = this.ScreenScaleY;
                    layer_Grid.ScreenTranslationX = this.ScreenTranslationX;
                    layer_Grid.ScreenTranslationY = this.ScreenTranslationY;

                    layer_Grid.Visible            = true;
                    tempColor                     = GenerateColor.GetSimilarColor(tempColor);
                    layer_Grid.GridLine.LineColor = Color.FromArgb(alpha, tempColor);
                    layer_Grid.GridLine.LineWidth = (float)((m2mStructure.GetLevelNum() - i));
                    layer_Grid.Draw(graphics);
                }
            }
        }
コード例 #3
0
ファイル: Layer.cs プロジェクト: luosz/ai-algorithmplatform
 private RectangleF GetMaxRect()
 {
     layer_Grid = new Layer_Grid(m2mStructure.GetLevel(0));
     return(layer_Grid.MaxRect);
 }