<div dir="ltr">Thanks Eric,<br><br>It fixed part of the problem!<br><br>Now, it doesn't throw the error, but the checkerWidget handles disappear as soon as I click in the render window.<br><br>Jothy<br><br><div class="gmail_quote">
On Tue, Aug 10, 2010 at 3:56 PM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">Hey Jothy,<div><br></div><div>I think you just don't need the last call to Interactor->Start(). Try it without and see if the interactor still behaves properly. I don't understand it completely, but the QVTKWidget seem to want to control the initial render window rendering and interactor start without you calling them explicitly.</div>
<div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><span style="font-size: medium;"><br></span></div></span>
</div>
<br><div><div><div></div><div class="h5"><div>On Aug 10, 2010, at 10:16 AM, Jothy wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5"><div dir="ltr"><span style="color: rgb(192, 192, 192); font-family: courier new,monospace;"><span style="color: rgb(51, 51, 255);">Hi all,</span><br style="color: rgb(51, 51, 255);">
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">I am getting "ERROR: In C:\vtk-5.6.0\GUISupport\Qt\QVTKWidget.cxx, line 968<br>
QVTKInteractor (0x3626430): QVTKInteractor cannot control the event loop." error when I try to render the images with a checkerwidget.<br><br>Here is the code, I use QtCreator for this<br> </span><br><br><br> </span><span style="font-family: courier new,monospace;">vtkSmartPointer</span><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;"><</span><span style="font-family: courier new,monospace;">vtkJPEGReader</span><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">></span><span style="color: rgb(192, 192, 192); font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">jPEGReader1</span><span style="color: rgb(192, 192, 192); font-family: courier new,monospace;"> </span><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">=</span>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkJPEGReader<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkStdString<span style="color: rgb(192, 192, 192);"> </span>fname1<span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 128, 0);">"C:<a>\\BlueHills.jpg</a>"</span><span style="color: rgb(0, 0, 0);">;</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span> jPEGReader1<span style="color: rgb(0, 0, 0);">-></span>SetFileName<span style="color: rgb(0, 0, 0);">(</span>fname1<span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkJPEGReader<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>jPEGReader2<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkJPEGReader<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkStdString<span style="color: rgb(192, 192, 192);"> </span>fname2<span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 128, 0);">"C:<a>\\Sunset.jpg</a>"</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">;</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>jPEGReader2<span style="color: rgb(0, 0, 0);">-></span>SetFileName<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">(</span>fname2<span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkImageCheckerboard<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>checkerboardFilter<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkImageCheckerboard<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerboardFilter<span style="color: rgb(0, 0, 0);">-></span>SetInput<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>jPEGReader1<span style="color: rgb(0, 0, 0);">-></span>GetOutput<span style="color: rgb(0, 0, 0);">());</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerboardFilter<span style="color: rgb(0, 0, 0);">-></span>SetInput<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">1</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span>jPEGReader2<span style="color: rgb(0, 0, 0);">-></span>GetOutput<span style="color: rgb(0, 0, 0);">());</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerboardFilter<span style="color: rgb(0, 0, 0);">-></span>SetNumberOfDivisions<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">3</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128);">3</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128);">1</span><span style="color: rgb(0, 0, 0);">);<br>
<br></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Create</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">RenderWindow,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Renderer</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">and</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">both</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Actors</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkRenderer<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>ren1<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkRenderer<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkRenderWindow<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>renWin<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>GetRenderWindow<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>renWin<span style="color: rgb(0, 0, 0);">-></span>AddRenderer<span style="color: rgb(0, 0, 0);">(</span>ren1<span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkImageActor<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>checkerActor<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkImageActor<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerActor<span style="color: rgb(0, 0, 0);">-></span>SetInput<span style="color: rgb(0, 0, 0);">(</span>checkerboardFilter<span style="color: rgb(0, 0, 0);">-></span>GetOutput<span style="color: rgb(0, 0, 0);">());<br>
<br></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">VTK</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">widgets</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">consist</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">of</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">two</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">parts:</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">widget</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">part</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">that</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">handles</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">event</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">processing;</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">and</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">widget</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">representation</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">that</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">defines</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">how</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">widget</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">appears</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">in</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">scene</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">(i.e.,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">matters</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">pertaining</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">to</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">geometry).</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkCheckerboardWidget<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>checkerWidget<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkSmartPointer<span style="color: rgb(0, 0, 0);"><</span>vtkCheckerboardWidget<span style="color: rgb(0, 0, 0);">>::</span>New<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerWidget<span style="color: rgb(0, 0, 0);">-></span>SetInteractor<span style="color: rgb(0, 0, 0);">(</span>ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>GetInteractor<span style="color: rgb(0, 0, 0);">());</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>vtkCheckerboardRepresentation<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*</span>checkerWidgetRep<span style="color: rgb(0, 0, 0);">=</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 128, 0);">static_cast</span><span style="color: rgb(0, 0, 0);"><</span>vtkCheckerboardRepresentation<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">(</span>checkerWidget<span style="color: rgb(0, 0, 0);">-></span>GetRepresentation<span style="color: rgb(0, 0, 0);">());</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerWidgetRep<span style="color: rgb(0, 0, 0);">-></span>SetImageActor<span style="color: rgb(0, 0, 0);">(</span>checkerActor<span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerWidgetRep<span style="color: rgb(0, 0, 0);">-></span>SetCheckerboard<span style="color: rgb(0, 0, 0);">(</span>checkerboardFilter<span style="color: rgb(0, 0, 0);">);<br>
<br></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">Add</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">actors</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">to</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">renderer,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">set</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">background</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">and</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">size</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>ren1<span style="color: rgb(0, 0, 0);">-></span>AddActor<span style="color: rgb(0, 0, 0);">(</span>checkerActor<span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>ren1<span style="color: rgb(0, 0, 0);">-></span>SetBackground<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">0.1</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">0.2</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">0.4</span><span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>renWin<span style="color: rgb(0, 0, 0);">-></span>SetSize<span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">300</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">300</span><span style="color: rgb(0, 0, 0);">);</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>renWin<span style="color: rgb(0, 0, 0);">-></span>SetInteractor<span style="color: rgb(0, 0, 0);">(</span>ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>GetInteractor<span style="color: rgb(0, 0, 0);">());<br>
<br></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">render</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">the</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">image</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">//</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>GetInteractor<span style="color: rgb(0, 0, 0);">()-></span>Initialize<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>show<span style="color: rgb(0, 0, 0);">();//or Render();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span>checkerWidget<span style="color: rgb(0, 0, 0);">-></span>On<span style="color: rgb(0, 0, 0);">();</span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><span style="color: rgb(192, 192, 192);"> </span> ui<span style="color: rgb(0, 0, 0);">-></span>qvtkWidget<span style="color: rgb(0, 0, 0);">-></span>GetInteractor<span style="color: rgb(0, 0, 0);">()-></span>Start<span style="color: rgb(0, 0, 0);">();<br>
<br><br>Thank you,<br><br>Jothy<br></span></pre>
<pre style="margin: 0px; text-indent: 0px; font-family: courier new,monospace;"><br></pre></div></div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div>