[vtkusers] coordinate system of vtkChartXYZ geometry?

Peter Karasev karasevpa at gmail.com
Fri Apr 18 08:37:57 EDT 2014


Hi,

  can anyone explain how to interpret the coordinate system passed to
vtkChartXYZ::SetGeometry ?

  e.g., in this example:
https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestChartXYZ.cxx

  where does the magic argument vtkRectf(75.0, 20.0, 250, 260) come from ?


  view->GetRenderWindow()->SetSize(400, 300);
  view->GetScene()->AddItem(chart.GetPointer());
  vtkNew<vtkChartXYZ> chart2;
  chart2->SetAutoRotate(true);
  chart2->SetFitToScene(false);
  chart->SetDecorateAxes(false);
  view->GetScene()->AddItem(chart2.GetPointer());
  chart->SetGeometry(vtkRectf(75.0, 20.0, 250, 260));


  It'd be good to know what to pass in to always force the origin of the
chart to the center of the window, for example.

regards,
  Peter Karasev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140418/3c37c85a/attachment.html>


More information about the vtkusers mailing list