Skip to content
Snippets Groups Projects
Commit ef328bcf authored by David C. Lonie's avatar David C. Lonie
Browse files

Fix vtkAxis scaling when TileScale is set on the renwin.

Now vtkAxis will show the same number of ticks and the
same relative text size when magnifying the image. Text
will still be a little funky if the scaling is anisotropic,
but at the moment our freetype engine doesn't support
anisotropic dpi (not sure if the MPL backend can or not).

New API: vtkContextScene::GetLogicalTileScale() returns
the renderwindow tilescale or (1, 1) depending on whether
ScaleTiles is enabled.

There are some random fixes where vtkAxis objects were being
used without a scene, which led to segfaults when trying to
look up the tile scale internally.
parent 48b5509f
No related branches found
No related tags found
No related merge requests found
Showing
with 233 additions and 34 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment