/// <summary> /// Initializes a new instance of the <see cref="SharpGLForm"/> class. /// </summary> public SharpGLForm() { try { m_ePerspectiveMode = WaterfallPerspectives.Perspective1; InitializeComponent(); m_ImageLogo = new PictureBox(); m_ImageLogo.BackColor = System.Drawing.Color.Transparent; m_ImageLogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; m_ImageLogo.Image = global::RFEWaterfallGL.Properties.Resources.rfexplorer_logo; m_ImageLogo.Location = new System.Drawing.Point(10, 10); m_ImageLogo.Name = "RFExplorer_logo"; m_ImageLogo.Size = new System.Drawing.Size(m_ImageLogo.Image.Width, m_ImageLogo.Image.Height); m_ImageLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; m_ImageLogo.TabIndex = 0; m_ImageLogo.TabStop = false; m_ImageLogo.Visible = false; m_ImageLogo.Enabled = true; m_ImageLogo.BorderStyle = BorderStyle.None; openGLControl.Controls.Add(m_ImageLogo); m_bTransparent = true; m_bOpenGL_Ok = true; m_waterFallDataContainer = new WaterfallDataContainer(this); } catch (Exception objEx) { m_sInitializationError = objEx.ToString(); Controls.Remove(openGLControl); openGLControl = null; } #if TESTMODE /// Create random array Random rand = new Random(1);// known seed int x, z; for (x = 0; x < nSteps; x++) { for (z = 0; z < nSteps; z++) { fData[x, z] = (float)rand.NextDouble() * (float)nSteps;// this value is the y } } #endif #if KEYCAPTURE eyex = -1.69; eyey = 0.74; eyez = -0.96; centerx = -0.54; centery = 0.6; centerz = 0.4; #endif }
public void Pers_2D() { CurrentPerspective = WaterfallPerspectives.Pers_2D; SetPerspective(); }
public void ISO() { CurrentPerspective = WaterfallPerspectives.ISO; SetPerspective(); }
public void SetPerspective2D() { m_ePerspectiveMode = WaterfallPerspectives.Perspective2D; SetPerspective(); }
/// <summary> /// Initializes a new instance of the <see cref="SharpGLForm"/> class. /// </summary> public SharpGLForm() { try { CurrentPerspective = WaterfallPerspectives.Perspective1; InitializeComponent(); m_ImageLogo = new PictureBox(); m_ImageLogo.BackColor = System.Drawing.Color.Transparent; m_ImageLogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; m_ImageLogo.Image = global::RFEWaterfallGL.Properties.Resources.rfexplorer_logo; m_ImageLogo.Location = new System.Drawing.Point(10, 10); m_ImageLogo.Name = "RFExplorer_logo"; m_ImageLogo.Size = new System.Drawing.Size(m_ImageLogo.Image.Width, m_ImageLogo.Image.Height); m_ImageLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; m_ImageLogo.TabIndex = 0; m_ImageLogo.TabStop = false; m_ImageLogo.Visible = false; m_ImageLogo.Enabled = true; m_ImageLogo.BorderStyle = BorderStyle.None; openGLControl.Controls.Add(m_ImageLogo); m_bTransparent = true; m_bOpenGL_Ok = true; } catch (Exception objEx) { m_sInitializationError = objEx.ToString(); Controls.Remove(openGLControl); openGLControl = null; } #if TESTMODE /// Create random array Random rand = new Random(1);// known seed int x, z; for(x=0;x<nSteps;x++) for (z = 0; z < nSteps; z++) { fData[x, z] = (float)rand.NextDouble() * (float)nSteps;// this value is the y } #endif #if KEYCAPTURE eyex = -1.69; eyey = 0.74; eyez = -0.96; centerx = -0.54; centery = 0.6; centerz = 0.4; #endif }