public void Contain(Camera[] cameras)
 {
     _cameras = cameras;
     //Need Change
     if (_cameras.Length >= 2)
     {
         _stereoPair = new StereoPair(_cameras[0], _cameras[1]);
     }
 }
Example #2
0
        public _3DView(OpenGLControl glControl, StereoPair sp)
        {
            gl = glControl.OpenGL;
            glControl.OpenGLDraw += DrawPoints;

            sp.OnTriangulated += TrianPointsHandler;

            glControl.MouseDown  += MouseDown;
            glControl.MouseMove  += Pan;
            glControl.MouseUp    += MouseUp;
            glControl.MouseWheel += MouseWheel;
            glControl.KeyDown    += RotateOn;
            glControl.KeyUp      += RotateOff;

            timer.Interval = 30;
            timer.Tick    += TimerHandler;
        }