Plotting Graphs
-
Hi... I'm beginner in C++ and MFC. I'm building an application that interface with a robotic arm... I have already done that part. I'm missing a part where I have a trajectory in (X,Y,Z) and the arm follows the trajectory. I can handle the mathematical stuff to generate the trajectory but I guess I would be nice to have the target trajectory and the real one plotted in the screen. I have somebooks about visual C++ and MFC, but it is hard for me to diggest them. What I have learnt from the reading is: 1) How to show a window, What I know I need is: 1) Put the (0,0) in the middle of the window, 2) Draw the X,Y,Z axis (taking care of the scaling) 3) Pass the trajectories generated to be ploted. However all this, I'm still confused with the MFC and the modes, and the coordinates. Is there any tutorial that lead me step by step to create an application like that... I like to follow that by creating a demo application to plot an ellipse. Then, I can pass it over my main application, to plot trajectories (the target and the real) together with the error of a trajectory. Both in a window, trajectories in the top and the error in the bottom. Then, of course I would like to save them and/or printing. Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311
-
Hi... I'm beginner in C++ and MFC. I'm building an application that interface with a robotic arm... I have already done that part. I'm missing a part where I have a trajectory in (X,Y,Z) and the arm follows the trajectory. I can handle the mathematical stuff to generate the trajectory but I guess I would be nice to have the target trajectory and the real one plotted in the screen. I have somebooks about visual C++ and MFC, but it is hard for me to diggest them. What I have learnt from the reading is: 1) How to show a window, What I know I need is: 1) Put the (0,0) in the middle of the window, 2) Draw the X,Y,Z axis (taking care of the scaling) 3) Pass the trajectories generated to be ploted. However all this, I'm still confused with the MFC and the modes, and the coordinates. Is there any tutorial that lead me step by step to create an application like that... I like to follow that by creating a demo application to plot an ellipse. Then, I can pass it over my main application, to plot trajectories (the target and the real) together with the error of a trajectory. Both in a window, trajectories in the top and the error in the bottom. Then, of course I would like to save them and/or printing. Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311
Hi Eric, I'm a beginner myself. Here's a link to a tutorial that does some basic drawing in mfc. I hope it helps. http://www.codeguru.com/cpp_mfc/Tutorial-7.shtml