Problems with vtk3.1

Tian-Qing Ye tianqing.ye at bruker.co.uk
Tue Mar 28 05:15:22 EST 2000


Hi Lisa

Thank you very much for the reply!

I am using the released version of vtk3.1, not nightly.

I can't compile the source if I take StructuredPoints
as input for vktImageViewer(it was ok for the vtk2.4).

Should I take the nightly released version?

Cheers

Tianqing

Lisa Sobierajski Avila wrote:
> 
> Hello T. Ye,
> 
> I took the example polyTexture.tcl in graphics and added the following to it:
> 
> vtkImageViewer viewer
> viewer SetInput structuredPoints
> viewer SetColorWindow 1.0
> viewer SetColorLevel 0.0
> viewer SetZSlice 0
> viewer Render
> 
> I was able to see the structured points in the image viewer without a
> problem. I am using a version of VTK more recent than the nightly. Are you
> using VTK 3.1 or a nightly?
> 
> Lisa
> 
> At 01:26 PM 3/27/00, Tian-Qing Ye wrote:
> >Hi
> >
> >I have an application which was working with vtk2.4.
> >Today I have installed the vtk3.1 and recompile my
> >application. Then it doesn't work correctly anymore!
> >
> >With vtk2.4 I have vtkStrucuturedPoints as the
> >input for the vtkImageViewer. With vtk3.1 it doesn't
> >like the vtkStructuredPoints as input. Ok, I have changed
> >it (simplly substituted the vtkStructuredPoints by vtkImageData)
> >to use vtkImageData as the input for vtkImageViewer.
> >Then I, instead of getting an image, just got a black
> >viewer!
> >
> >My scheme is something like the following:
> >
> >First created a vtkScalars scalars;
> >Then:
> >vtkImageData vol->SetDimensions(img.imgsize, img.imgsize, img.imgsize);
> >              vol->SetOrigin(0., 0., 0.);
> >              vol->SetSpacing(1.0, 1.0, 1.0);
> >              vol->GetPointData()->SetScalars(scalars);
> >vtkImageViewer viewer->SetInput(vol);
> >                viewer->SetZSlice(index);
> >                vtkActor2D *imgActor = viewer->GetActor2D();
> >                rend->AddActor2D(imgActor);
> >                renW->Render();
> >
> >Anyone can kindly point out why it doesn't work anymore?
> >As I said, it worked fine with vtk2.4(with StructuredPoints instead of
> >ImageData)!
> >
> >Thanks!
> >
> >T. Ye
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list