Ejemplo n.º 1
0
        //handles adding new tracking point (dialog?)
        private void addTrackingPoint()
        {
            if	(	app_status.GetStatus()>=_app_status.distance_calibrated)
            if (viewportXY.isCapture() && viewportXZ.isCapture() && viewportYZ.isCapture())
            {
                tForm = new trackingPointProperties(trackingPointsBasicInfo);
                tForm.Closing+=new CancelEventHandler(trackingPointPropertiesClosingHandler);
                tForm.Show();

                addingPoint=true;
                tempTrackingPoint =new trackingPoint("temporary",projectSettings.defaultRadius, System.Drawing.Color.Orange);
            }
            else Message("One or more viewports not in capture mode/has no video loaded");
            else Message ("Calibrate distance in all viewports first");
        }
Ejemplo n.º 2
0
        private void modifyPointParameters()
        {
            if (app_status.GetStatus()>=_app_status.points_defined)
            if (trackingPointsLB.SelectedItem!=null)
            {
                Message("Attempting to modify point params...");

                foreach (trackingPoint tp in trackingPoints)
                    if (tp.PName==trackingPointsLB.SelectedItem.ToString())
                    {
                        tempTrackingPoint = new trackingPoint(tp.PName,tp,tp.PColor);
                        break;
                    }

                oldPointName=tempTrackingPoint.PName;

                if (viewportXY.isCapture() && viewportXZ.isCapture() && viewportYZ.isCapture())
                {
                    tForm = new trackingPointProperties(tempTrackingPoint);
                    tForm.Closing+=new CancelEventHandler(trackingPointPropertiesUpdateClosingHandler);
                    tForm.Show();

                    addingPoint=true;

                }
                else Message("One or more viewports not in capture mode/has no video loaded");

            }
            else Message("Please select tracking point from Defined Points list");
               else Message("No points defined yet");
        }