<div dir="ltr">Hi all,<br><br>I want to disable the rotation and translation of the vtkBoxWidget2, so I set rotation and translation EnabledOff().<br><br>But it didn't work.<br><br>Here is the code VOiSelector is the boxWidget.<br>
<br><span style="color:#c0c0c0"> </span><span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">=</span>vtkSmartPointer<span style="color:#000000"><</span>vtkBoxWidget2<span style="color:#000000">>::</span>New<span style="color:#000000">();</span>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">-></span>SetInteractor<span style="color:#000000">(</span><span style="color:#808000">this</span><span style="color:#000000">-></span>ui<span style="color:#000000">-></span>ModelWidget<span style="color:#000000">-></span>GetRenderWindow<span style="color:#000000">()-></span>GetInteractor<span style="color:#000000">());</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">-></span>CreateDefaultRepresentation<span style="color:rgb(0,0,0)">();<br>
</span><span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">-></span>RotationEnabledOff<span style="color:#000000">();</span>
<span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">-></span>TranslationEnabledOff<span style="color:#000000">();</span>
<span style="color:#c0c0c0"> </span><span style="color:#808000">this</span><span style="color:#000000">-></span>VOISelector<span style="color:#000000">-></span>On<span style="color:#000000">();</span><br></pre><br>
Any hints?<br><br>Thanks<br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>