I’ve been using OpenFrameworks for about a month now. Really amazing how simple it makes things specially 3D graphics.
Right now I’m working on sort of a graph class which draws curves with a lot of data points with ofPolyline as its main tool.
This graph will have an array storing the points in it with its size expected to be anywhere between 150,000 to 500,000.
Each data point is an instance of a point class which contains an ofEvent. I add each point as a listener to the OF mouse events so that when it is clicked, dragged, etc. I can record its new coordinates and then use ofNotifyEvent to let the graph know. The graph then updates the ofPolyline coordinates as well.
I wanted to run this by you guys and see what you thought of the implementation. Is the OF event system designed to handle so many objects or am I going about this the wrong way? Instead of having so many points listening to the mouse events and each doing some calculations I could have the graph listen to mouse events and then decide which point is to be changed.
Thanks a bunch!