[Ctk-developers] ctkTransferFunctionWidget examples
Julien Finet
julien.finet at kitware.com
Wed Nov 19 17:16:46 UTC 2014
Hi Ricardo,
ctkTransferFunctionWidget is obsolete, please use the VTK charts instead:
https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/ctkVTKChartView.h
In your case you might want to use ctkVTKScalarsToColorsWidget
<https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/ctkVTKScalarsToColorsWidget.h>
Hth,
Julien.
On Wed, Nov 19, 2014 at 5:19 PM, Ricardo Ortiz <ricardo.ortiz at kitware.com>
wrote:
> To give a bit more context...
>
> I am using ctkScalarsToColorsWidget in order to create a color histogram
> of the displayed volume using a vtkColorTransferFunction.
>
> The problem is that the widget is not displaying anything.
> I am using the widget's view (ctkScalarsToColorsView) and
> calling setColorTransferFunctionToPlots to update its color transfer
> function (once I have updated it).
>
> Is this the correct way to have the widget display the colors?
>
> Thanks in advance,
>
> /Ricardo
>
>
>
> On Wed, Nov 19, 2014 at 10:19 AM, Ricardo Ortiz <ricardo.ortiz at kitware.com
> > wrote:
>
>> Hello folks,
>>
>> Does anyone knows of any examples that use transfer function widgets. I
>> am trying to create a simple histogram widget (and being able to select
>> points within the widget).
>>
>> Thanks in advance,
>>
>> /Ricardo
>>
>
>
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/ctk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20141119/2680fc36/attachment.htm>
More information about the Ctk-developers
mailing list