I have used that function.. even though the problem exists.. Anyways, I am trying to get rid of that.. once succeeded, will intimate you.<br><br>Thanks<br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 2:55 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think you could use vtkCharts::ClearPlots() to clear the render window.<br><br>Jothy<div><div class="h5">
<br><br><br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 6:11 AM, rakesh patil <span dir="ltr"><<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Jothy and Marcus,</div>
<div> </div>
<div>It is working fine now. It was crashing because after setting render window, I was setting existing renderer to the view object. Once I commented it it is working fine. Is it that this is the natural behavior? One more thing I observed is that, after viewing the chart when I clear the renderwindow, the interactor style stops funcitoning. No zoom effect is shown when mouse is scrolled. No panning and rotating is also possible.</div>
<div> </div>
<div>Any idea why is this happening?</div>
<div> </div>
<div>Thanks<br><br></div><div><div></div><div>
<div class="gmail_quote">On Thu, Mar 1, 2012 at 10:46 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">You may want to take a look at the Charts/Testing/Cxx directory for<br>some more ideas. You can use vtkContextView as a convenience, but it<br>
is possible to just use vtkContextActor and set things up more<br>manually (the 3D example gives some of the detail).<br><span><font color="#888888"><br>Marcus<br></font></span>
<div>
<div><br>On Thu, Mar 1, 2012 at 6:00 AM, Jothybasu Selvaraj <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>> wrote:<br>> Yes, it works for me.<br>><br>> Along with that, did you setup the interactor as well?<br>
><br>> Have a look at this presentation by Marcus on vtkCharts (on pages 21,22).<br>><br>> <a href="http://www.na-mic.org/Wiki/images/1/18/NA-MIC-VTK-Charts-2011.pdf" target="_blank">www.na-mic.org/Wiki/images/1/18/NA-MIC-VTK-Charts-2011.pdf</a><br>
><br>> Jothy<br>><br>> On Thu, Mar 1, 2012 at 10:47 AM, rakesh patil <<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>><br>> wrote:<br>>><br>>> Hi Jothy,<br>
>><br>
>> I tried doing that yesterday. But the application was crashing and closing<br>>> on its own. Are you sure that is the way it has to be done? I mean have you<br>>> worked on it?<br>>><br>>> Thanks<br>
>><br>>> On Thu, Mar 1, 2012 at 2:54 PM, Jothybasu Selvaraj <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>><br>>> wrote:<br>>>><br>>>> Create vtkContextView, then add chart to the contextView with AddItem.<br>
>>> Set the rnderWindow to the contextView.<br>>>><br>>>> Jothy<br>>>><br>>>> On Thu, Mar 1, 2012 at 4:43 AM, rakesh patil <<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>><br>
>>> wrote:<br>>>>><br>>>>> Hello,<br>>>>><br>>>>> I am trying to plot XY plots using vtkChartXY example shown here<br>>>>><br>>>>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot</a><br>
>>>><br>>>>> When I run XY plotting code it shows proper output but the plot comes in<br>>>>> another window. Is it possible to redirect the output to the existing<br>>>>> renderer, renderwindow and interactor? If it is possible, please guide to do<br>
>>>> it.<br>>>>><br>>>>> Thanks<br>>>>><br>>>>> Regards<br>>>>> Rakesh Patil<br>>>>><br>>>>> _______________________________________________<br>
>>>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>>>>><br>>>>> Visit other Kitware open-source projects at<br>>>>> <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:<br>>>>> <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>>>>><br>
>>><br>>>><br>>>><br>>>> --<br>>>> Jothy<br>>>><br>>><br>><br>><br>><br>> --<br>> Jothy<br>><br>><br>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <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:<br>> <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>><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br>