<p>Hi all,<br /><br />I’m using a vtkImageViewer2 to vizualize the vtkImagedata slices using vtkSliderWidget for that.<br />It´s ok. <br />My problem is that I need alternate another widgets with vtkImageViewer2. I need, for example, use a vtkSplineWidget<br />to select a curve in the current slice displayed in vtkImageViewer2.<br />How can I do it ?<br /><br />I have not can restrict the spline curve in vtkImageViewer2 plane all time.<br /><br />Thanks all,<br /><br /><br />A fragment of my code:<br /><br /> ...<br /> this->m_pShifter = vtkImageShiftScale::New();<br /> …<br /> this->m_pShifter->SetInput(m_pImageData);<br /> … <br /> this->m_iv = vtkImageViewer2::New();<br /> this->m_iv->SetInput(this->m_pShifter->GetOutput());<br /> …<br /> this->m_pSldRepr2D = vtkSliderRepresentation2D::New();<br /> …<br /> this->m_pSldWidget = vtkSliderWidget::New();<br /> this->m_pSldWidget->SetInteractor(this->m_iren);<br /> this->m_
pSldWidget->SetRepresentation(this->m_pSldRepr2D);<br /> this->m_pSldWidget->KeyPressActivationOff();<br /> this->m_pSldWidget->SetAnimationModeToAnimate();<br /> this->m_pSldWidget->SetEnabled(true);<br /> …<br /> this->m_pSldCallback = vtkSLDWCallback::New();<br /> this->m_pSldWidget->AddObserver(vtkCommand::AnyEvent, this->m_pSldCallback); <br /><br />Att,<br />Luis Alberto pereira</p>