public GenerateRuntimeBitmapHandler(
     ICurrentWorldSeedProvider currentWorldSeedProvider,
     IRenderingLocationProvider renderingLocationProvider,
     IAlgorithmFlowImageGeneration algorithmFlowImageGeneration)
 {
     this.m_CurrentWorldSeedProvider = currentWorldSeedProvider;
     this.m_RenderingLocationProvider = renderingLocationProvider;
     this.m_AlgorithmFlowImageGeneration = algorithmFlowImageGeneration;
 }
 public GeneratePerformanceResultsHandler(
     ICurrentWorldSeedProvider currentWorldSeedProvider,
     IRenderingLocationProvider renderingLocationProvider,
     IStorageAccess storageAccess,
     IAlgorithmFlowImageGeneration algorithmFlowImageGeneration)
 {
     this.m_CurrentWorldSeedProvider = currentWorldSeedProvider;
     this.m_RenderingLocationProvider = renderingLocationProvider;
     this.m_StorageAccess = storageAccess;
     this.m_AlgorithmFlowImageGeneration = algorithmFlowImageGeneration;
 }
Esempio n. 3
0
        public ExportForm(
            IRenderingLocationProvider renderingLocationProvider,
            IStorageAccess storageAccess,
            FlowElement flowElement)
        {
            this.InitializeComponent();

            this.m_StorageAccess = storageAccess;
            this.m_RenderingLocationProvider = renderingLocationProvider;
            this.m_Layer = this.m_StorageAccess.ToRuntime(((AlgorithmFlowElement)flowElement).Layer);
            this.m_Bitmap = new Bitmap(1024 + 32, 1024 + 256);
            this.c_RenderBox.Image = this.m_Bitmap;
            this.c_Timer.Start();
        }
 public FlowProcessingRequestHandler(
     ICurrentWorldSeedProvider currentWorldSeedProvider,
     IRenderingLocationProvider renderingLocationProvider,
     IAlgorithmFlowImageGeneration algorithmFlowImageGeneration,
     IStorageAccess storageAccess)
 {
     Console.WriteLine("Request handler created.");
     this.m_ProcessingThread = new Thread(this.Run);
     this.m_ProcessingThread.IsBackground = true;
     this.m_CurrentWorldSeedProvider = currentWorldSeedProvider;
     this.m_RenderingLocationProvider = renderingLocationProvider;
     this.m_AlgorithmFlowImageGeneration = algorithmFlowImageGeneration;
     this.m_StorageAccess = storageAccess;
 }