[vtkusers] Question on Viewports/vtkChartXY/SetGeometry in example TestMultipleChartRenderers.cxx

Frese Daniel Dr. frese at heidenhain.de
Tue Nov 30 06:40:26 EST 2010


Hello Marcus,

thank you for your fast answer. Such a feature (multiple graphs - maybe also images ? - 
in one scene) would be very useful. As I understand it now, this basically means that 
there are still some open issues in the 2D API, which you are working on.

We are looking here for some visualization kit for some very basic 3D stuff, but mainly 
to look at some XY charts and some matrix data - and for this your 2D API looks
very nice ! So I try to figure out, whether it makes sense for our purposes
to use VTK and the 2D API for this. Two questions on this :

- Is there anywhere some kind of overview, which areas of this API are still work
in progress, and which are already more stable ? That would help me (as a newbie)
trying desperately to get some things running, while they simply don't work the
expected way yet...

- I know this a difficult one, but what are the priorities on the 2D API stuff ?
Is there some kind of target date as when things will kind of settle down ?
Does it make sense for me, to check out sources regularly via git ? So far I use the
5.6.1 release.

Thanks again,

Daniel


-----Ursprüngliche Nachricht-----
Von: Marcus D. Hanwell [mailto:marcus.hanwell at kitware.com] 
Gesendet: Montag, 29. November 2010 22:30
An: Frese Daniel Dr.
Cc: vtkusers at vtk.org
Betreff: Re: [vtkusers] Question on Viewports/vtkChartXY/SetGeometry in example TestMultipleChartRenderers.cxx

Hi,

2010/11/29 Frese Daniel Dr. <frese at heidenhain.de>:
> I am quite new to this stuff so please be patient in case I write just
> nonsense here.
> I try to display two items (for now e.g. two vtkChartXY) using the 2D API. I
> tried to go along the example ./Testing/Cxx/TestMultipleChartRenderers.cxx,
> but unfortunately already this example does not work for me quite as
> expected.
> If I understand correctly, in this example the rendering window is split
> into several viewports and each viewport gets a renderer and so on. If I
> execute, the window is split as advertised, but the plots are badly clipped;
> basically the charts are not scaled to the corresponding viewport size. It
> just looks horrible.
>
> Digging a bit deeper I found, that the vtkChartXY seem to get their geometry
> information from their scenes, so I set explicitly the geometry of the
> corresponding scenes. I  modified TestMultipleChartRenderers.cxx a bit to
> have a look at that:
>
There is some code I am going to merge in soon (not quite finished) to
display multiple charts in the same scene. I will see if I can get it
pushed in soon, as this is a common request. I will of course add a
test demonstrating the functionality. I have marked this thread so
that I remember to reply here once I merge the changes in.

Thanks,

Marcus

-------------- next part --------------
-------------------------------------------------------------------------------------------------------
Registergericht: Traunstein / Registry Court: HRB 275 ? Sitz / Head Office: Traunreut
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),
Michael Grimm, Matthias Fauser, Sebastian Tondorf

E-Mail Haftungsausschluss / E-Mail Disclaimer: http://www.heidenhain.de/disclaimer



More information about the vtkusers mailing list