示例#1
0
        public ChaosRenderer(ChaosRenderingMachine pOutputPort, ChaosEngine pRenderingEngine)
        {
            //Assign the object references for this renderer.
            this._RenderingEngine = pRenderingEngine;
            this._OutputPort      = pOutputPort;

            this._RenderProgressAmount = 0;

            //Default to visual interactive renders
            this._VisualRender = true;
        }
示例#2
0
        public bool AddEngine(string pEngineName, ChaosEngine pEngine)
        {
            ChaosEngineNode tmpEngine;

            tmpEngine = new ChaosEngineNode(pEngineName);

            tmpEngine._Engine = pEngine;

            this.AddNodeTolist(tmpEngine);

            return(true);
        }
示例#3
0
        private void InstantiateEngines()
        {
            ChaosEngine tmpChaosEngine;

            tmpChaosEngine           = new Mandelbrot_Engine();
            tmpChaosEngine.WriteLog += new WriteLogEventHandler(this.ChainedEngineWriteLog);
            this._ChaosEngineList.AddEngine(tmpChaosEngine.Name, tmpChaosEngine);

            tmpChaosEngine           = new Julia_Engine();
            tmpChaosEngine.WriteLog += new WriteLogEventHandler(this.ChainedEngineWriteLog);
            this._ChaosEngineList.AddEngine(tmpChaosEngine.Name, tmpChaosEngine);

            tmpChaosEngine           = new Grid_Test_Engine();
            tmpChaosEngine.WriteLog += new WriteLogEventHandler(this.ChainedEngineWriteLog);
            this._ChaosEngineList.AddEngine(tmpChaosEngine.Name, tmpChaosEngine);

            tmpChaosEngine           = new ChaosEngine();
            tmpChaosEngine.WriteLog += new WriteLogEventHandler(this.ChainedEngineWriteLog);
            this._ChaosEngineList.AddEngine(tmpChaosEngine.Name, tmpChaosEngine);

            this._ChaosEngineList.MoveFirst();
        }