I am a novice programmer, learning C++. I am doing a computational biology project where I represent cells as particles. I have already made a class Cell where I track x and y positions, velocities and accelerations.
I have one question with 2 points: 1) Right now, I only track the center of mass of my cells, so it's just points. But, I will need to make elongated particles with the same edge for all of them (the cells will all be the same). I cannot think of a way to initialize a fixed edge that will be at the middle of my center of mass and track it for every time step (also to make the edge "follow" my center of mass) with "simple" C++ code (meaning my current knowledge). My particles should look like this.
My visualization right now is kind of stupid...I export the coordinates of the points in files for every time-step, then I made a script to generate PNGs for every time step using gnuplot and generate a video out of the PNGs, using ffmpeg. This leads to my actual question.
2) To address the first point, I realize that I need a better visualization method. I have looked into OpenGL and other possible methods to do this, but I feel kind of lost. Also, having a direct visualization method, without having to output to files would be faster I guess. Although speed has not been an issue for me at least up to now.
I am under Windows, using Visual Studio 2010.