Example #1
0
 internal RenderWindow(DocumentModel doc)
 {
     this.m_Doc = doc;
     renderer = new SharpGLRenderer();
     doc.Renderer = renderer;
     InitializeComponent();
     this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);
 }
Example #2
0
        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;
        }
Example #3
0
 public void MouseMove(object sender, Point pt, SharpGLRenderer renderer)
 {
     renderer.WorldRotator.Drag(pt);
 }
Example #4
0
 public void MiddleMouseButtonUp(object sender, Point pt, SharpGLRenderer renderer)
 {
     renderer.WorldRotator.StopDrag();
 }
Example #5
0
 public void MiddleMouseButtonDown(object sender, Point pt, SharpGLRenderer renderer)
 {
     renderer.WorldRotator.StartDrag(pt);
 }
Example #6
0
 public void LeftMouseButtonUp(object sender, Point pt, SharpGLRenderer renderer)
 {
 }