コード例 #1
0
ファイル: SeedGrowth.cs プロジェクト: sniewcza/SeedGrowth
 public void useGBC(bool cond)
 {
     if (cond)
     {
         useGBCFeature        = true;
         getSeedStateDelegate = this.getCellStateGBC;
     }
     else
     {
         getSeedStateDelegate = this.getCellstate;
         useGBCFeature        = false;
     }
 }
コード例 #2
0
ファイル: SeedGrowth.cs プロジェクト: sniewcza/SeedGrowth
        public SeedGrowth(int N, int M) : base(N, M)
        {
            grainMap.Add(Guid.Empty, Color.Black);
            grainMap.Add(inclusionId, Color.White);
            this.getSeedStateDelegate = this.getCellstate;
            seeds = new Seed[N, M];
            for (int i = 0; i < N; i++)
            {
                for (int j = 0; j < M; j++)
                {
                    seeds[i, j] = new Seed(i, j, CellState.dead);
                }
            }

            this.OnIterationComplette        += SeedGrowth_OnIterationComplette;
            this.computeNextIterationDelegate = this.computeNextIteration;
        }
コード例 #3
0
ファイル: SeedGrowth.cs プロジェクト: sniewcza/SeedGrowth
 public void useDP(bool cond)
 {
     getSeedStateDelegate = this.getCellStateDualPhase;
 }
コード例 #4
0
ファイル: SeedGrowth.cs プロジェクト: sniewcza/SeedGrowth
 public void useSubstructures(bool cond)
 {
     getSeedStateDelegate = this.getCellStateSubstructure;
 }