On Wed, 11 May 2011 08:29:22 +0200 Cedric BAIL <cedric.b...@free.fr> said:
> On Wed, May 11, 2011 at 12:44 AM, Mika Laitio <lam...@pilppa.org> wrote: > > Has anybody implemented polyline evas object where one could specify the > > start point(x, y) and then just add many new points where the line > > should go next. To my understanding there does not exist that kind of > > feature? > > > > If not, would it make sense to implement that kind of polyline as a > > smart object which would internally have an array of lines to draw? > > (new line when ever the direction of graph changes) > > > > My use case for this polyline is XY graph that I started implementing > > as a smart object where one can define tittle, texts for x and y axis, > > axis scale units, etc... At the moment I am doing the graph curve > > itself by adding multiple line objects, but started to think that things > > like graph resize or delete would be nicer to implement if there would > > be this polyline object which would internally handle the list of lines > > that make the graph. > > Did you look at evas polygon object ? It should almost handle your use > case. Only the evas_object_resize isn't defined on it (so the > behaviour could be added/defined without breaking backward > compatibility). you'd have to be very careful as you have to make thick lines. the polygon obj will, if you define the same coordinates for points in an enclosed polygon, end up being invisible as it's a 0 sized poly :) if you want to do vector stuff - use cairo and render to an image object. that's the best way to get it done. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel