Ejemplo n.º 1
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     SetupView();
     if (contentType == ContentTypes.SurfacePlot)
     {
         softRender.ReCalculateTransformationsCoeficients(80, 40, 40, 0, 0, ClientRectangle.Width, ClientRectangle.Height, 0.5, 0, 0);
     }
 }
Ejemplo n.º 2
0
 public void SetView(int povx, int povy, int povz, int panx, int pany, double povd)
 {
     this.pov_x = povx;
     this.pov_y = povy;
     this.pov_z = povz;
     this.pan_x = panx;
     this.pan_y = pany;
     this.pov_d = povd;
     sr.ReCalculateTransformationsCoeficients(pov_x, pov_y, pov_z, pan_x, pan_y, ClientRectangle.Width, ClientRectangle.Height, pov_d, 0, 0);
     Invalidate();
 }
Ejemplo n.º 3
0
 public static void Draw3DSurface_MouseWheel(Object sender, MouseEventArgs e)
 {
     zoom += (e.Delta > 0 ? 1 : -1) * 0.04;
     renderer3d.ReCalculateTransformationsCoeficients(observableXYZ.x, observableXYZ.y, observableXYZ.z, screenXY.X, screenXY.Y, width, height, zoom, 0, 0);
     ((PictureBox)sender).Invalidate();
 }