vtkScalarBarActor DrawAnnotations flag is all or none
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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