internal RenderWindow(DocumentModel doc) { this.m_Doc = doc; renderer = new SharpGLRenderer(); doc.Renderer = renderer; InitializeComponent(); this.MouseWheel += new MouseEventHandler(Form1_MouseWheel); }
public void MouseWheel(object sender, int Delta, SharpGLRenderer renderer) { if (Delta > 0 && renderer.ZoomFactor > Initializer.MinZoom) renderer.ZoomFactor -= Initializer.GranularityZoom; if (Delta < 0 && renderer.ZoomFactor < Initializer.MaxZoom) renderer.ZoomFactor += Initializer.GranularityZoom; renderer.ZoomFactor = renderer.ZoomFactor; }
public void MouseMove(object sender, Point pt, SharpGLRenderer renderer) { renderer.WorldRotator.Drag(pt); }
public void MiddleMouseButtonUp(object sender, Point pt, SharpGLRenderer renderer) { renderer.WorldRotator.StopDrag(); }
public void MiddleMouseButtonDown(object sender, Point pt, SharpGLRenderer renderer) { renderer.WorldRotator.StartDrag(pt); }
public void LeftMouseButtonUp(object sender, Point pt, SharpGLRenderer renderer) { }