<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
David you're totally right. It was my mistake. I thought I was using vtkImageSliceMapper and not vtkImageResliceMapper. Now I change vtkImageResliceMapper with vtkImageSliceMapper  and it works! Thank you!<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; From: david.gobbi@gmail.com<br>&gt; Date: Wed, 15 Aug 2012 09:48:03 -0600<br>&gt; Subject: Re: [vtkusers] imageSliceMapper-&gt;GetSliceNumber() problem<br>&gt; To: aliens30586@hotmail.it<br>&gt; CC: vtkusers@vtk.org<br>&gt; <br>&gt; Hi Concetta,<br>&gt; <br>&gt; The superclass of vtkImageResliceMapper is vtkImageMapper3D, the<br>&gt; SliceMapper has a GetSliceNumber method but the ResliceMapper does<br>&gt; not.<br>&gt; <br>&gt; The only way to get the slice from ResliceMapper is with the<br>&gt; GetSlicePlane() method.  This returns a vtkPlane object that describes<br>&gt; the slice plane.  If you need a slice number, then you will have to<br>&gt; compute it from the position of the SlicePlane.<br>&gt; <br>&gt; It makes no difference if you are using VTK 5.10 or VTK 6.0, the<br>&gt; vtkImageResliceMapper class is identical in both.<br>&gt; <br>&gt;  - David<br>&gt; <br>&gt; On Wed, Aug 15, 2012 at 9:32 AM, Concetta Piazzese<br>&gt; &lt;aliens30586@hotmail.it&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi everyone.<br>&gt; &gt; I'm tring to use imageSliceMapper. The code works but the only problem is<br>&gt; &gt; that I can't get the slice number using imageSliceMapper-&gt;GetSliceNumber();<br>&gt; &gt; I got the following error:<br>&gt; &gt; 'GetSliceNumber' : is not a member of 'vtkImageResliceMapper'.<br>&gt; &gt; What's the problem? If I go to vtkImageSliceMapper Class Reference page<br>&gt; &gt; there is a GetSliceNumber function.<br>&gt; &gt; Can somebody explain that?<br>&gt; &gt; Thank you!<br></div>                                               </div></body>
</html>