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; }
public bool AddEngine(string pEngineName, ChaosEngine pEngine) { ChaosEngineNode tmpEngine; tmpEngine = new ChaosEngineNode(pEngineName); tmpEngine._Engine = pEngine; this.AddNodeTolist(tmpEngine); return(true); }
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(); }