On Wed, 26 Apr 2000, Alexander Larsson wrote:
> That would be one way of solving it. Although getting the shape from the
> renderer would mean at least a hashtable lookup, so getting several shapes
> from the renderer would be inefficient. Another solution would be to be
> able to "attach" a view-specific part of the item-data to the view, which
> could then be passed to the "render" method (and others, plus the
> possibility to retrieve it from the view). In this data (a pointer to a
> item-dependent structure) the item could store the DiaShapes and other
> view-specific data it needs.
yep.
>
> There would of course need to be some way for a view to invalidate all
> items DiaShapes, when the Renderer changes zoom, or the renderer type is
> changed. This would be the normal "update_data" thing that all dia objects
> have.
In fact, the renderer could handle freeing of this data by making a
changed signal or something. The view could then throw away the item's
view dependent data on changed or destroy signals.
>
> / Alex
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/