[vtkusers] How to get output of vtkChartXY on existing render window?

Jothybasu Selvaraj jothybasu at gmail.com
Thu Mar 1 04:24:01 EST 2012


Create vtkContextView, then add chart to the contextView with AddItem. Set
the rnderWindow to the contextView.

Jothy

On Thu, Mar 1, 2012 at 4:43 AM, rakesh patil <prakeshofficial at gmail.com>wrote:

> Hello,
>
> I am trying to plot XY plots using vtkChartXY example shown here
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot
>
> When I run XY plotting code it shows proper output but the plot comes in
> another window. Is it possible to redirect the output to the existing
> renderer, renderwindow and interactor? If it is possible, please guide to
> do it.
>
> Thanks
>
> Regards
> Rakesh Patil
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120301/6459e9ff/attachment.htm>


More information about the vtkusers mailing list