Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enh textblock #1385
Adds support for vertical alignment of text in a TextBlock.
Adds a background to TextBlock objects. I made/hack a version for VTK < 7 but the behavior is somewhat different than using vtkTextActor.GetTextProperty().SetBackgroundColor(). I don't know what we should do in this case. I guess it will depend on which versions of VTK we want to support.
I added a unit test to make sure the text alignment are working properly (no surprise they are not in vtk 5.8). The test consists in comparing a snapshot to a static version I've included in this PR (works with VTK 6). Any suggestions to improve it is welcome.
@@ Coverage Diff @@ ## master #1385 +/- ## ========================================== + Coverage 87.41% 87.42% +<.01% ========================================== Files 238 238 Lines 30282 30401 +119 Branches 3253 3274 +21 ========================================== + Hits 26472 26577 +105 - Misses 3057 3065 +8 - Partials 753 759 +6