View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014752VTK(No Category)public2014-05-22 16:492016-08-12 09:55
ReporterNicole Aucoin 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version 
Summary0014752: vtkScalarBarActor DrawAnnotations flag is all or none
DescriptionIn 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 [^]
TagsNo tags attached.
ProjectTBD
Typeusability
Attached Files? file icon 64-color-nonsemantic-annotated.tiff [^] (252,664 bytes) 2014-05-22 16:49

 Relationships
related to 0014272closedKitware Robot vtkScalarBarActor improvement 

  Notes
(0032658)
Nicole Aucoin (reporter)
2014-05-22 16:54

Add a DrawLabels flag to match DrawAnnotations flag?
(0033546)
Cory Quammen (developer)
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 (developer)
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 (administrator)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-05-22 16:49 Nicole Aucoin New Issue
2014-05-22 16:49 Nicole Aucoin File Added: 64-color-nonsemantic-annotated.tiff
2014-05-22 16:54 Nicole Aucoin Note Added: 0032658
2014-10-02 17:02 Cory Quammen Note Added: 0033546
2014-10-02 18:48 Cory Quammen Note Added: 0033558
2014-10-05 19:19 Cory Quammen Relationship added related to 0014272
2016-07-06 16:48 Berk Geveci Status backlog => expired
2016-07-06 16:48 Berk Geveci Note Added: 0036260
2016-08-12 09:55 Kitware Robot Note Added: 0037330
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team