<div dir="ltr">Hi all. <div><br></div><div>I have three slice visualization of a vokume. </div><div>I'm usin vtkImageViewer2 as a viewer. I understand that if I modified the windowleves by pressing the button 1 of the mouse I could reset them press the letter 'r'.</div><div><br></div><div>I'm trying to do the same thing as with pressing the letter r but when I press the button in mas user interface.</div><div>I'm have put something similar to the code found in the interactorstyle</div><div><br></div><div><pre style="color:rgb(0,0,0)"> case 'r' :
case 'R' :
this->FindPokedRenderer(rwi->GetEventPosition()[0],
rwi->GetEventPosition()[1]);
if(this->CurrentRenderer!=0)
{
this->CurrentRenderer->ResetCamera();
}
else
{
vtkWarningMacro(<<"no current renderer on the interactor style.");
}
rwi->Render();
break;</pre><div><br></div><div>like</div><div><br></div><div> <font face="monospace, monospace"> if (reset){ </font></div><div><font face="monospace, monospace"> viewerSagital->GetRenderer()->ResetCamera();</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>viewerSagital->Render();</font></div><div><font face="monospace, monospace"> }</font></div><div><br></div><div>but this does not do anything. Someone could help me?</div><div><br></div><div>Thanks</div><div><br></div>-- <br><div class="gmail_signature">Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a> <div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div>
</div></div>