[vtkusers] vtkImageItem expected behavior?
Eric E. Monson
emonson at cs.duke.edu
Fri Apr 2 09:31:20 EDT 2010
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.
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.
Thanks,
-Eric
On Apr 1, 2010, at 11:59 AM, Eric E. Monson wrote:
> Hey all,
>
> 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.)
>
> 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?
>
> 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.)
>
> 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.
>
> Thanks a lot,
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
> <ImageItemOnChartXYtest.png>_______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list