private void ResumeRunning() { // Draw a trihedron to show planes ShowTrihedron(); CenterDrawingArea(); for (var i = 0; i < _attachedView.VisibleViewCount; i++) { _view.Redraw(); _view.MustBeResized(); } // Reload the Ocaf tree list LoadOcafTreeList(); }
private bool CreateView3D() { if (viewer3d != null) { view3d = viewer3d.CreateView; Debug.Assert(view3d != null); if (view3d != null) { //view3d.SetDegenerateModeOn(); //view3d.SetTransparency(true); //view3d.SetSurfaceDetail(OCV3d_TypeOfSurfaceDetail.V3d_TEX_ALL); // Attach to the OpenCascade view a Custom control Control control = ocView; // attachedView.GetView(i); if (control != null) { //IntPtr attachedViewHandle = (attachedView as Form).Handle; var aWNTWindow = new WNTWindow(device3d, control.Handle, QuantityNameOfColor.Quantity_NOC_MATRAGRAY); // manual default Debug.Assert(aWNTWindow != null); if (aWNTWindow != null) { view3d.Window = aWNTWindow; view3d.TriedronDisplay(AspectTypeOfTriedronPosition.Aspect_TOTP_LEFT_LOWER, QuantityNameOfColor.Quantity_NOC_WHITE, 0.02, V3dTypeOfVisualization.V3d_WIREFRAME); // manual default if (!aWNTWindow.IsMapped) { aWNTWindow.Map(); } } view3d.Redraw(); view3d.MustBeResized(); } } return(true); } return(false); }