Hi,<div><br></div><div>I'm using vtkBoxWidget2 to select a part of something in the scene, but I don't want to let the selection box rotate I just want the Handles (little spheres) able.<br>That way I will Just Resize the selection box through the handles.</div>
<div><br></div><div>I try the method vtkBoxWidget2::RotationEnableOff() but it seems not to work.</div><div><br></div><div>..... some part of the code where I create some VTK objects ......</div><div><br></div><div><div>
BoxWidget2 = vtkBoxWidget2::New();</div>
<div> BoxWidget2->SetInteractor(Interactor);</div><div> BoxWidget2->SetRepresentation(BoxRepresentation);</div><div> BoxWidget2->KeyPressActivationOff();</div></div><div><br></div><div>..... some part of the code where I want to enable the Widget but turn of its rotation .....</div>
<div><br></div><div><div> BoxRepresentation->OutlineCursorWiresOff();</div><div> BoxRepresentation->OutlineFaceWiresOff();</div><div><br></div><div> BoxWidget2->RotationEnableOff(); // this line don't disable the rotation... I still can click on one of the planes of the box and rotate it.</div>
<div><br></div><div> BoxWidget2->On();</div><div> Renderer->Render();</div></div><div><br></div><div>Hope someone can help me.</div><div><br></div><div>Best regards.</div><div><br>-- <br>Matheus Brasileiro Passos<br>
Engenharia de Controle e Automação<br>
</div>