<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&#39;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">-&gt;</span>VOISelector<span style="color:#000000">=</span>vtkSmartPointer<span style="color:#000000">&lt;</span>vtkBoxWidget2<span style="color:#000000">&gt;::</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">-&gt;</span>VOISelector<span style="color:#000000">-&gt;</span>SetInteractor<span style="color:#000000">(</span><span style="color:#808000">this</span><span style="color:#000000">-&gt;</span>ui<span style="color:#000000">-&gt;</span>ModelWidget<span style="color:#000000">-&gt;</span>GetRenderWindow<span style="color:#000000">()-&gt;</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">-&gt;</span>VOISelector<span style="color:#000000">-&gt;</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">-&gt;</span>VOISelector<span style="color:#000000">-&gt;</span>RotationEnabledOff<span style="color:#000000">();</span>
<span style="color:#c0c0c0">    </span><span style="color:#808000">this</span><span style="color:#000000">-&gt;</span>VOISelector<span style="color:#000000">-&gt;</span>TranslationEnabledOff<span style="color:#000000">();</span>
<span style="color:#c0c0c0">    </span><span style="color:#808000">this</span><span style="color:#000000">-&gt;</span>VOISelector<span style="color:#000000">-&gt;</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>