/// <summary> /// Display the domain /// </summary> public void DisplayDomainRender( ) { if (domainRender == null) { this.domainRender = new DomainRender(d3d, this.m_project.ComputationalDomain); this.domainRender.Initialize( ); } else { this.domainRender.IsDisplayed = true; } }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void PerformDispose( ) { d3d.DxRender3d -= new Direct3d.DxDirect3dDelegate(d3d_DxRender3d); camera.ViewChanged -= new Camera.ViewChangedEventHandler(PerformViewChanged); m_project.DataChanged -= new GEMSProject.DataChangedEventHandler(OnGEMSProjectDataChanged); if (axisRender != null) { axisRender.Dispose( ); axisRender = null; } if (gridRender != null) { gridRender.Dispose( ); gridRender = null; } if (parallelRender != null) { parallelRender.Dispose( ); parallelRender = null; } if (domainRender != null) { domainRender.Dispose( ); domainRender = null; } if (meshRender != null) { meshRender.Dispose( ); meshRender = null; } if (gridPointRender != null) { gridPointRender.Dispose( ); gridPointRender = null; } foreach (GEMSSingleRender singleRender in singleRenders) { singleRender.Dispose( ); } singleRenders.Clear( ); singleRenders = null; }
private void Reset( ) { domainRender = null; }