MantisBT - VTK
View Issue Details
0014752VTK(No Category)public2014-05-22 16:492016-08-12 09:55
Nicole Aucoin 
Kitware Robot 
normalminorhave not tried
closedmoved 
6.0.0 
 
TBD
usability
0014752: vtkScalarBarActor DrawAnnotations flag is all or none
In 3D Slicer I wanted to take advantage of the VTK6 feature to annotate our vtkScalarsToColors instances and show the text in the scalar bar widget. We have some color tables that span thousands of entries, with hundreds of names defined. The vtkScalarBarActor has a boolean flag DrawAnnotations but no way to subsample the annotations that will be displayed from the associated scalars to colors object and showing all of the annotations makes it unusable.
I've attached a screen capture of one of our smaller color tables with the annotations turned on.

I would like to request that the scalar bar actor class be expanded to mirror the label functionality with the annotation functionality, adding NumberOfAnnotations as a property and using it to allow limiting the number of annotations that are rendered.

The lead line from the scalar bar box showing the color to the text showing the annotation is current attached to one edge fo the box, an option to attach to the middle would be nice to have.

A further request would be to allow using the scalars to colors annotations as the Labels instead of a separate annotations, and to allow turning off the Labels so that the scalar bar isn't doubly annotated.

Related VTK mantis issues:
13089
14272 (Kevin's work prompted this integration attempt into Slicer)
Related Slicer mantis issue:
http://www.na-mic.org/Bug/view.php?id=2919 [^]
No tags attached.
related to 0014272closed Kitware Robot vtkScalarBarActor improvement 
? 64-color-nonsemantic-annotated.tiff (252,664) 2014-05-22 16:49
https://www.vtk.org/Bug/file/9657/64-color-nonsemantic-annotated.tiff
Issue History
2014-05-22 16:49Nicole AucoinNew Issue
2014-05-22 16:49Nicole AucoinFile Added: 64-color-nonsemantic-annotated.tiff
2014-05-22 16:54Nicole AucoinNote Added: 0032658
2014-10-02 17:02Cory QuammenNote Added: 0033546
2014-10-02 18:48Cory QuammenNote Added: 0033558
2014-10-05 19:19Cory QuammenRelationship addedrelated to 0014272
2016-07-06 16:48Berk GeveciStatusbacklog => expired
2016-07-06 16:48Berk GeveciNote Added: 0036260
2016-08-12 09:55Kitware RobotNote Added: 0037330
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0032658)
Nicole Aucoin   
2014-05-22 16:54   
Add a DrawLabels flag to match DrawAnnotations flag?
(0033546)
Cory Quammen   
2014-10-02 17:02   
Recently a DrawTickLabels flag has been added to this class to make it possible to turn off the numeric labels.
(0033558)
Cory Quammen   
2014-10-02 18:48   
To follow up on the idea of setting the number of annotations, I think this may be difficult to implement in a sensible way. How do you want to subsample the annotations? Even index increment through the annotation array? Fit as many annotations as possible so that they are in a line and the text doesn't overlap? The tick labels are a bit easier to handle for this use case because you can space them evenly and set them to have the same number of characters in the label whereas annotations are less constrained.

Would subsampling outside the class be possible for your use case?
(0036260)
Berk Geveci   
2016-07-06 16:48   
Setting to status of bugs that have not been updated in the last year to expired. Please re-open if still important.
(0037330)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.