
John Maddock wrote:
Paul A Bristow wrote:
Should it be a single function that takes loads of parameters (like color, range, size, ...). Should it be a class where the user would set these parameters as attributes?
Well I think an interesting part of the project is to explore which of these, or some combination, is most convenient.
Boosters will undoubtedly have some (many?) opinions on this ;-))
I think design is crucial here: we would want something extensible I guess. So how about a "mini DOM" for vector graphics:
class vector_drawing; // does this need template params??
Such as: http://doc.trolltech.com/4.2/qgraphicsscene.html
with vector_drawing supporting simple drawn lines, text output etc.
Such as: http://doc.trolltech.com/4.2/qgraphicslineitem.html http://doc.trolltech.com/4.2/qgraphicssimpletextitem.html ? - Volodya