<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstiloCorreo18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="ES-DO" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">You must not get the Extent From the Actor-&gt;DisplayExtent but from the vtkImageData-&gt;GetWholeExtent() method instead.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">void SetZSlice(int z) <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">vtkImageData * img = jpgreader-&gt;</span><span lang="EN-US">
</span><a href="file:///D:\ALL%20DOCs\Documentation\TK\VTK\vtkDocHtml-5.4.2\html\a00101.html#4cb9f809072a01646f39a168db7a5b5e"><span lang="EN-US">GetOutputDataObject</span></a><span lang="EN-US">(0)</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">double * ext = </span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">img-&gt;GetWholeExtent();</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">this-&gt;SetDisplayExtent(ext [0], ext [1], ext [2], ext [3], &nbsp;z, z);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Marcelino<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">De:</span></b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org]
<b>En nombre de </b>455535440<br>
<b>Enviado el:</b> domingo, 25 de diciembre de 2011 10:30 a.m.<br>
<b>Para:</b> vtkusers<br>
<b>Asunto:</b> [vtkusers] vtkimageactor's SetZSlice<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">merry christmas everybody.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I met a problem of vtkimageactor,I used jpegreader to read 12 pictures ,then used&nbsp;vtkimageactor&nbsp;to show it,one of these jpegs was rendered.then i wanted to show another pictures ,So&nbsp;I called SetZSlice but it didn't work. I watch the souce
 of the method like below:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">void SetZSlice(int z) <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">{this-&gt;SetDisplayExtent(<br>
&nbsp;&nbsp;&nbsp; this-&gt;DisplayExtent[0], this-&gt;DisplayExtent[1],<br>
&nbsp;&nbsp;&nbsp; this-&gt;DisplayExtent[2], this-&gt;DisplayExtent[3], z, z);}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">then I debug the program,the vtkimageactor's DisplayExtent is an array of 6 int&nbsp;,valus -1,0,0,0,0,0,&nbsp;this is strange&nbsp;.Then I watch the vtkImageData which vtkimageactoe setinput,there is an arry named extent in it values 0 383 0 383 0 11,
 I think this means the picture data is saved,but why the method didn't work?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I google this problem and find some people met the same problem,but there is no solution. Anyone can help us?<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:7.5pt;
font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">- XIII Simposio Internacional sobre Pensamiento Latinoamericano, del 26 al 27 de junio de 2012. Universidad Central “Marta Abreu” de
 Las Villas, Santa Clara, Cuba. http://www.uclv.edu.cu/13simp-pensamiento-latinoamericano<br>
-Universidad Central &quot;Marta Abreu&quot; de Las Villas. http://www.uclv.edu.cu<br>
-Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba. http://www.congresouniversidad.cu<br>
-Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/</span><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">- XIII Simposio Internacional sobre Pensamiento Latinoamericano, del 26 al 27 de junio de 2012. Universidad Central “Marta Abreu” de Las Villas, Santa Clara, Cuba. http://www.uclv.edu.cu/13simp-pensamiento-latinoamericano<br>
-Universidad Central &quot;Marta Abreu&quot; de Las Villas. http://www.uclv.edu.cu<br>
-Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba. http://www.congresouniversidad.cu<br>
-Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/<br>
<br>
<br>
</font>
</body>
</html>