Page MenuHomePhabricator

improve 2D items, crosshair, corneranotations, colored frame and gradient background
Closed, ResolvedPublic

Description

Most of the 2D overlays in mitk are using their own vtkrenderer as a seperate layer. there are currently 4 rendering layers active which is not necessary because the concerned overlays are always on top anyway.

I implemented the following changes:

  • Deprecate mitk::GradientBackground and set the Gradient colors directly in the scene renderer. There is no need for a background renderer.
  • Improved vtkMitkRectangleProp:
    • better placement of lines, so that the border width can be set in exact number of pixels
    • no need for vtkRenderer as a member
  • replaced mitk::RenderWindowFrame with direct usage of vtkMitkRectangleProp in the scene renderer (removed foreground layer)
  • directly applied vtkCornerAnnotations to the scene renderer
    • removed foreground layer and improved performance because the cornerannotations were constantly created and added.
  • restored the missing orientation arrows feature.

Event Timeline

User kolbch has pushed new remote branch:

bug-19032-ImproveSeveral2DOverlayItems

This might be a relevant change for the upcoming release, since the changes aren't breaking anything.

If we include this in this release we do not remove features compared to the last release to just add them back later.

[6f93a3]: Merge branch 'bug-19032-ImproveSeveral2DOverlayItems'

Merged commits:

2015-04-29 01:58:29 Christoph Kolb [970898]
reimplement orientation arrows


2015-04-29 01:58:17 Christoph Kolb [bfbef2]
rename SetCornerAnnotation to setDecorationProperties which also sets the color for the borders


2015-04-29 01:57:41 Christoph Kolb [1d8fa5]
replace cornerannotations, gradientbackground and colored border


2015-04-29 01:56:55 Christoph Kolb [6b9962]
improve mitkRectangleProp, remove renderwindow member, better line placement


2015-04-29 01:55:36 Christoph Kolb [c5eda1]
deprecate mitkGradientBackground