[vtkusers] graphing a /vtkFloatArray

Darshan Pai darshanpai at gmail.com
Wed Jul 18 18:15:47 EDT 2012


What is the error you get when you pass vtkFloatArray to vtkDataObject?

On Wed, Jul 18, 2012 at 5:53 PM, Luke Hetrick <lhetrick at nnu.edu> wrote:

> Hello everyone,
>
>     I am looking for a way to graph, hopefully in a histogram but at this
> point I would take any kind of  graphical output, a /vtkFloatArray that
> contains a bunch of angles between a collection of points. I have looked
> into the a few example sand tried using several of them as a starting point
> but seems like with each one I run into a problem I can not figure out.
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/HistogramBarChart: this
> example I can not get my vtk/FloatArray to get passed into the
> /vtkDataObject like the example shows so I can not pass my array into the
> /vtkBarChartActor class.
>
> /vtkExtractHistogram2D looks easy and promising but lacks any kind of
> example of how to correctly connect it with a actor, mapper, and renderer
> so I am not sure how to use that...
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/HistogramXYPlot: I can
> not figure out how to read in my arrays into the histogram.
>
> Can anyone help me figure this out?
>
> Luke H
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120718/f6da3b30/attachment.htm>


More information about the vtkusers mailing list