<div class="gmail_quote">Hi Eric,</div><div class="gmail_quote"><br></div><div class="gmail_quote">I had meant to clean that class up a little. I was using it to test new functionality, but then became so focused on getting all the necessary features into the charts I had not looked at it. I will take a look at the class today - it was intended to be a generic item where you could add images to a scene, but was also heavily used when prototyping new API.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Thanks for reminding me about this, and thanks for all the feedback.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Marcus</div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Fri, Apr 2, 2010 at 9:31 AM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Okay, I see now that I've looked at the source code that this is doing exactly what it was written to do. It's more of an example class for how to include images in a ContextScene.<br>
<br>
It might be nice to comment out the DrawPoly() call on line 96 of vtkImageItem.cxx so people can see it as an example, but it won't draw that squiggle in the Scene if people want to actually use this class to draw an image.<br>
<br>
Thanks,<br>
-Eric<br>
<div><div></div><div class="h5"><br>
<br>
On Apr 1, 2010, at 11:59 AM, Eric E. Monson wrote:<br>
<br>
> Hey all,<br>
><br>
> I need to superimpose a couple images over an XY plot using the new Charts, so I was trying out the vtkImageItem. I guess I expected the "item" to contain the image and control the size, but it seems be a rectangle that acts as an anchor for the lower-left corner of the image. Is this what the vtkImageItem is intended to be? (When the documentation says "Set the dimensions of the item" in SetDimensions(), it sounds more like this would set the image dimensions, not the dimensions of an anchor point.)<br>
><br>
> The color of the image item rectangle changes when I hover over it (pink), but it changes to a different color (bright green) when I hover over any points on the ChartXY... Is it supposed to be reacting to this other (seemingly unrelated) hover event?<br>
><br>
> Oh, and there's a three-line squiggle that gets drawn under the item's rectangle. I'm assuming that's just a bug. (see attached image – I'm trying this on today's CVS VTK with OS X 10.6.2 x86_64 Cocoa build.)<br>
><br>
> Could someone clarify for me whether this seems to be behaving as intended? It's not a criticism, I think I'm just not imagining correctly what this was meant to do.<br>
><br>
> Thanks a lot,<br>
> -Eric<br>
><br></div></div></blockquote></div>