[vtkusers] vtkChartXY + tcl

Jorge Perez josp.jorge at gmail.com
Mon Dec 16 04:23:18 EST 2013


Hi Mario, could you add this to your scripts in order to see what vtk
packages are loaded?

puts [lsearch -inline -all [package names] vtk*]

in my vtk 5.10 I obtain this:

vtkCommonTCL vtkHybridTCL vtkChartsTCL vtkGeovisTCL vtkParallelTCL
vtkVolumeRenderingTCL vtkRenderingTCL vtkIOTCL vtkGraphicsTCL vtkImagingTCL
vtkFilteringTCL vtkViewsTCL vtkInfovisTCL vtkWidgetsTCL

HTH




2013/12/13 Mario Rodriguez <biomates at telefonica.net>

>
> El 13/12/13 20:06, Jorge Perez escribió:
>
>  Could you post the file prueba.tcl?
>>
>>
> Thanks for your response.
>
> There is nothing special in the script. Due to the lack of examples, I'm
> trying to introduce myself in vtkChartXY+tcl step by step. According to my
> (limited) understanding of the subject, if I remove the # symbol below, the
> script behavior shouldn't change, but what I get is the mentioned error
> message.
>
> Once the vtkChartXY object is created, I want to build a 2d scene with it,
> inspired by existing 'c++' and 'py' scripts, and remove the ellipse, which
> isn't of interest for me.
>
> Here is the code:
>
>
>
>
>
>
> package require vtk
> package require vtkinteraction
>
> vtkImageEllipsoidSource ellipse
> vtkImageMapper mapImage
>   mapImage SetInputConnection [ellipse GetOutputPort]
> vtkActor2D img
>   img SetMapper mapImage
>
> # vtkChartXY chart
>
> vtkRenderer ren1
>   ren1 AddActor2D img
>
> vtkRenderWindow renWin
>   renWin AddRenderer ren1
>
> vtkRenderWindowInteractor iren
>     iren SetRenderWindow renWin
>     iren Initialize
>     iren AddObserver UserEvent {wm deiconify .vtkInteract}
>     renWin Render
> wm withdraw .
>
>
>
>
>
> --
> Mario
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131216/4bb8f823/attachment.htm>


More information about the vtkusers mailing list