[vtk-developers] Possible vtkScalarBarActor improvement

Wang, Kevin kevin.wang at rmp.uhn.on.ca
Mon Sep 16 14:34:05 EDT 2013


Hi Jc,

I took a quick look at vtkScalarBarActor/vtkScalarsToColors and saw quite a bit changes between 5.10 and 6.0. It will be a bit of work for me to backport them to 5.10 and I am afraid I do not have a lot of time to work on this. Is there any other option we can take which requires less time? Or maybe we can wait a bit until slicer uses 6.0.

Thanks,

Kevin

From: Jean-Christophe Fillion-Robin [mailto:jchris.fillionr at kitware.com]
Sent: Monday, September 16, 2013 12:41 PM
To: Wang, Kevin
Cc: David Thompson; vtk-developers at vtk.org
Subject: Re: [vtk-developers] Possible vtkScalarBarActor improvement

Hi Kevin,

I would suggest you a submit a pull request to the SlicerVTK fork backporting the functionality you would like. Then, when we will transition to VTK6, it will go very smoothly.

In parallel, you could also submit a patch to the VTK list that would be integrated to the VTK 5.10 maintenance branch.

Thanks
Jc

On Mon, Sep 16, 2013 at 11:24 AM, Wang, Kevin <kevin.wang at rmp.uhn.on.ca<mailto:kevin.wang at rmp.uhn.on.ca>> wrote:
Thanks David. I think I am ok with switching the vtkStringArrays on the fly.

Kevin

-----Original Message-----
From: David Thompson [mailto:david.thompson at kitware.com<mailto:david.thompson at kitware.com>]
Sent: Monday, September 16, 2013 11:17 AM
To: Wang, Kevin
Cc: 'Jean-Christophe Fillion-Robin'; vtk-developers at vtk.org<mailto:vtk-developers at vtk.org>
Subject: Re: [vtk-developers] Possible vtkScalarBarActor improvement
Hi Kevin,

> The SetAnnotation method in vtkScalarsToColors is what I need in deed. ...

Great.

> The interface is fine. I wonder if it is possible to add a method to control whether values are used for labels in the vtkScalarBarActor or the annotations are used. ...

I would be willing to consider adding something to the vtkScalarsToColors class to switch between sets of strings if we can come up with a clean API that preserves backwards-compatability -- but don't think the class should be  responsible for generating a string label for each value; it is very hard to get otherwise-rational people to agree on how to format numbers and vtkVarints as text. :-)

        David

This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.



--
+1 919 869 8849

This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. 
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. 
If you have received this e-mail in error, please contact the sender and delete all copies. 
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130916/c6b6c7db/attachment.html>


More information about the vtk-developers mailing list