/*! * Instructs HOOPS to redraw the scene * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.UserControl.paint event */ protected void PanelPaint(object sender, PaintEventArgs e) { if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.Update(); } }
/*! Instructs HOOPS/3dGS to redraw the scene */ override protected void OnPaint(PaintEventArgs e) { base.OnPaint(e); HLONG key = HCS.Open_Segment("?picture"); HCS.Control_Update_By_Key(key, "redraw everything"); HCS.Update_Display(); HCS.Close_Segment(); }
/*! * The default implementation initializes the HBaseView object and the view key. */ public void Init() { if (m_pHView == null) { return; } HCS.Open_Segment_By_Key(m_pHView.GetViewKey()); HCS.Set_Driver_Options("debug = 0x00000040"); HCS.Close_Segment(); }
/*! * Ensures that view in the Panel is redraw whenever it is resized * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the event */ private void PanelResize(object sender, EventArgs e) { if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.AdjustAxisWindow(); m_pHView.Update(); } }
/*! * Instructs HOOPS to redraw the scene * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.Control.paint event */ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.Update(); } }
/*! * Ensures that view in the Panel is redraw whenever it is resized * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the event */ protected override void OnResize(EventArgs eventargs) { base.OnResize(eventargs); if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.AdjustAxisWindow(); m_pHView.Update(); } }
public HPanel() : base() { IntPtr winid = this.Handle; //Do some HOOPS prep stuff HCS.Delete_Segment("?picture"); HCS.UnDefine_Alias("?picture"); HCS.Define_Alias("?picture", "?driver/dx9/window0"); HCS.Open_Segment("?picture"); HCS.Set_Driver_Options("use window ID = " + winid); HCS.Close_Segment(); }
/*! Instructs HOOPS/3dGS to redraw the scene */ override protected void OnResize(System.EventArgs e) { base.OnResize(e); HCS.Update_Display(); }