
Sun, 12 Aug 2007 14:23:55 -0300 "Felipe Sanches" <felipe.sanches@...400...> kirjoitti:
On 8/12/07, Felipe Sanches <felipe.sanches@...400...> wrote:
hi!
I have a doubt. How do I read the bounding box coordinates from within a NR::FilterPrimitive ?
(I think that) I need this to implement the feImage filter primitive
I was looking at doxygen diagrams and i see that the bounding box can be reached by SPItem->display->arenaitem->bbox
but how can I access an SPItem from within a NR::Filter method?
There doesn't exist a way yet. NR::Filter::render receives a pointer to the arenaitem when invoked, so that's probably the best starting point. Also, there's a privete pointer to the arenaitem in NR::FilterSlot, it would only need an accessor for fetching the pointer. It's a bit odd place for such function, though.