// This method is used to adjust a radius of the sphere the coordinate system of the camera // is based on. This means that the larger the radius, the further zoomed out you are. private void trackBar_zoom_ValueChanged(object sender, System.EventArgs e) { viewingAngle[6] = (trackBar_zoom.Value); SphereCoordinates.setRadius(viewingAngle[6]); SphereCoordinates.updateCoordinates(viewingAngle[0], viewingAngle[1], viewingAngle[2]); glControl1.Invalidate(); }
// Constructor and Initializer // Creates the form/window public QTELRMainWindow() { InitializeComponent(); SphereCoordinates.setCoordinates(0, 0, 1000); SphereCoordinates.setRadius(1000); //trackBar_rotateX.Value = 0; //trackBar_rotateY.Value = 0; //trackBar_rotateZ.Value = 0; trackBar_panX.Value = 0; trackBar_panY.Value = 0; trackBar_panZ.Value = 0; //trackBar_zoom.Value = 1000; createModelGroup(); setUpKinect(); }