[vtkusers] Disable rotation of vtkBoxWidget2

Jothybasu Selvaraj jothybasu at gmail.com
Fri Mar 9 09:19:56 EST 2012


Hi all,

I want to disable the rotation and translation of the vtkBoxWidget2, so I
set rotation and translation EnabledOff().

But it didn't work.

Here is the code VOiSelector is the boxWidget.

 this->VOISelector=vtkSmartPointer<vtkBoxWidget2>::New();

    this->VOISelector->SetInteractor(this->ui->ModelWidget->GetRenderWindow()->GetInteractor());

    this->VOISelector->CreateDefaultRepresentation();
 this->VOISelector->RotationEnabledOff();
this->VOISelector->TranslationEnabledOff();
this->VOISelector->On();


Any hints?

Thanks

-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120309/a335416d/attachment.htm>


More information about the vtkusers mailing list