Beispiel #1
0
 public void SetCADImageOptions()
 {
     //cadImage.UseWinEllipse = false;
     cadImage.IsShowLineWeight = this.showLineWeight;
     cadImage.IsWithoutMargins = true;
     //cadImage.IsShowBackground = false;
     //cadImage.BorderSize = 0;
     //cadImage.IsShowLineWeight = true;
     //this.showLineWeight = false;
     //if( (cadImage.Painter == null) && (cadImage.GraphicsOutMode == DrawGraphicsMode.GDIPlus))
     //{
     //    cadImage.ChangeDrawMode(DrawGraphicsMode.GDIPlus, cadPictBox);
     //}
     cadImage.UseDoubleBuffering = this.useDoubleBuffering;
     cadImage.TTFSmoothing       = TTFSmoothing.None;
     cadImage.SelectionMode      = SelectionEntityMode.Enabled;
     this.useSelectEntity        = false;
     Orb3D.CADImage = cadImage;
     Orb3D.Visible  = false;
     Orb3D.Disable3dOrbit();
     //this.cadImage.IsDraw3DAxes = this.tlbAxes.Pushed;
     HostControl.SetCommonCursor();
     SetLayList();
     ObjEntity.cadImage = cadImage;
     ObjEntity.propGrid = (CADPropertyGrid)HostControl.PropertiesControl;
     HostControl.Focus();
     if (cadImage.Painter.OpenVPort(cadImage.Converter.ActiveVPort) == 0)
     {
         DoResize(true, true);
     }
     //ChangeControlState();
     HostControl.Invalidate();
 }