Closed GoogleCodeExporter closed 8 years ago
Doesn't having a separate layer per symbol incur a huge memory cost for large
data sets?
Original comment by barryw...@gmail.com
on 11 Feb 2009 at 7:12
From my experience you will face huge costs for large datasets +/- regardless
of the used drawing method (I
have sound files to draw, hi samplerate resulting in 2.000.000+ dots or lines).
In my app - still using Quartz2D paths - I tuned performance by only drawing
necessary parts, that means
visible not only by the defined rect, but also atop of all other elements on
the +/- same coordinate. I am not
sure how to do this in a useful manner with Layers, since then adding/removing
of layers would be necessary.
To add something more constructive: It might be worth to have a option to
create all symbols of the same
kind (squares, circles, ...) in one layer, then the user can quickly fade
in/out partial datasets.
Original comment by volker.r...@gmail.com
on 15 Feb 2009 at 8:14
Instead having separate classes of symbol, what about combining these functions
into one. That way you could
have your standard vector symbols filled with a color, gradient, or image.
Strings could be rendered on top of
the filled shape. Backgrounds would be clipped to whatever shape was selected.
If you want just the image, specify nil for the line style and text. If you
want an open shape, specify nil for the
fill. If you just want the text, specify nil for the line style and fill. Etc.
Original comment by eskr...@mac.com
on 9 Apr 2009 at 2:20
Yes, a single class would also be fine. I also think now that having a separate
layer for each symbol is a no go
performance wise. In fact, this is probably a case where the 'flyweight'
pattern would work best. The symbol
class probably would be used in much the same way as an NSCell: it would have a
size, but no position; a CPPlot
object would simply use the symbol object like a stamp, moving it to the
desired location, setting its properties,
and drawing it, then moving to a new location, etc.
Drew
Original comment by drewmcco...@mac.com
on 9 Apr 2009 at 7:38
I'll tackle this one.
Original comment by eskr...@mac.com
on 9 Apr 2009 at 11:27
Original comment by drewmcco...@mac.com
on 12 May 2009 at 7:07
Even though this issue was closed I added a few methods in order to create
custom plot symbols from a
provided GGPathRef. Hope that was ok!
/ Leo
Original comment by leo.berg...@gmail.com
on 25 May 2009 at 7:29
I like it!
Original comment by eskr...@mac.com
on 26 May 2009 at 2:48
Original issue reported on code.google.com by
drewmcco...@mac.com
on 11 Feb 2009 at 2:15