[vtkusers] Hide vtkImagePlaneWidgetOutlineActor
Roberto Garrido
rgarrido at emedica.es
Thu May 2 05:46:41 EDT 2013
Hi again J
Never mind. Although it's not the most elegant solution, I have overriden
SetEnabled method this way:
void MyVtkImagePlaneWidget::SetEnabled( int enabling )
{
vtkImagePlaneWidget::SetEnabled( enabling );
if ( enabling )
if ( this->CurrentRenderer->HasViewProp( this->PlaneOutlineActor ) )
this->CurrentRenderer->RemoveViewProp( this->PlaneOutlineActor );
this->Interactor->Render();
}
Thanks,
Robert.
De: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] En nombre de
Roberto Garrido
Enviado el: jueves, 02 de mayo de 2013 10:37
Para: vtkusers at vtk.org
Asunto: [vtkusers] Hide vtkImagePlaneWidgetOutlineActor
Hi there,
He have an instance of vtkImagePlaneWidget and we need to hide the outline
actor, but it's interface doesn't seem to allow that.
SetEnabled( 0 ) will actually hide the outline, but also the rest of the
widget, so it's not an option.
Any ideas?
Thanks in advance,
All my best,
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130502/2b94bdbf/attachment.htm>
More information about the vtkusers
mailing list