[vtkusers] vtkPolyData, vtkFloatArray and QT
Hila Hiler
hilahiler at gmail.com
Thu Feb 23 17:55:18 EST 2012
It was just to demonstrate what's my need.
Anyway,
I'm still interested in the* pop up window*,
or *any GUI *that will present the user the value on the vtkPoly.
On Thu, Feb 23, 2012 at 5:23 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Feb 23, 2012 at 2:29 AM, Hila Hiler <hilahiler at gmail.com> wrote:
> > Hi all,
> >
> > I have a structure which contains:
> >
> > class myClass
> > {
> > vtkPolyData* poly;
> > vtkFloatArray* values;
> > }
> >
> > while on every location on the poly, a corresponding value is correlated.
> >
> > I was wondering: how can I present the values on the poly?
> > I'm using QT 4.7- maybe there is a way to add a pop up window (or
> something
> > like that) which will show the value while the cursor stands on the poly?
> >
> > Any information would be very appreciated.
> >
> > Best,
> > Hila
>
> Do you know that you can add the float array directly to the polydata
> and then not have a need for this struct at all?
>
> polydata->GetPointData()->AddArray(yourFloatArray);
> ?
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120224/87bd954f/attachment.htm>
More information about the vtkusers
mailing list