<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>> From: david.gobbi@gmail.com<br>> Date: Wed, 15 Aug 2012 09:48:03 -0600<br>> Subject: Re: [vtkusers] imageSliceMapper->GetSliceNumber() problem<br>> To: aliens30586@hotmail.it<br>> CC: vtkusers@vtk.org<br>> <br>> Hi Concetta,<br>> <br>> The superclass of vtkImageResliceMapper is vtkImageMapper3D, the<br>> SliceMapper has a GetSliceNumber method but the ResliceMapper does<br>> not.<br>> <br>> The only way to get the slice from ResliceMapper is with the<br>> GetSlicePlane() method. This returns a vtkPlane object that describes<br>> the slice plane. If you need a slice number, then you will have to<br>> compute it from the position of the SlicePlane.<br>> <br>> It makes no difference if you are using VTK 5.10 or VTK 6.0, the<br>> vtkImageResliceMapper class is identical in both.<br>> <br>> - David<br>> <br>> On Wed, Aug 15, 2012 at 9:32 AM, Concetta Piazzese<br>> <aliens30586@hotmail.it> wrote:<br>> ><br>> > Hi everyone.<br>> > I'm tring to use imageSliceMapper. The code works but the only problem is<br>> > that I can't get the slice number using imageSliceMapper->GetSliceNumber();<br>> > I got the following error:<br>> > 'GetSliceNumber' : is not a member of 'vtkImageResliceMapper'.<br>> > What's the problem? If I go to vtkImageSliceMapper Class Reference page<br>> > there is a GetSliceNumber function.<br>> > Can somebody explain that?<br>> > Thank you!<br></div>                                            </div></body>
</html>