Esempio n. 1
0
 /// <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;
     }
 }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
 private void Reset( )
 {
     domainRender = null;
 }