[vtkusers] Regarding example VTKimagereslicemapper
David Doria
daviddoria at gmail.com
Mon Jul 8 09:22:03 EDT 2013
On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria <rahulindoria5 at gmail.com>wrote:
> Hi,
> I was modifying this example:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper
> in this example, i am deleting the object vtkImageSlice, and when i am
> putting the object "imageSliceMapper" i getting an error?
>
> As vtkimageslice class used to represent an image in a 3D scene, i don`t
> want to display this in 3D scene, just want to display on the screen that`s
> why i am deleting this class, so why i am getting this error?
>
> I modified this code like this :
>
What do you want to do if not display the image? The problem is that you
can't call AddViewProp on a mapper - it has to be a vtkProp subclass (like
the vtkImageSlice was). In the future, please include the exact error that
you are getting.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130708/ed073d69/attachment.htm>
More information about the vtkusers
mailing list