[vtkusers] vtk.js volumeController transferFunctions

Richard Frank rickfrank at me.com
Mon Sep 24 11:41:30 EDT 2018


Perhaps at instantiation time for the volumeController as an optional parameter? If there’s none passed in use defaults otherwise use what’s passed in? I can take a try at it...

 Rick

Sent from my iPad

> On Sep 24, 2018, at 11:34 AM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
> 
> Yes but I think it will still be too late. That's why having an option to refresh that list in the UI will be needed. Unless we compute it at instantiation time.
> 
>> On Mon, Sep 24, 2018 at 9:30 AM Richard Frank <rickfrank at me.com> wrote:
>> Ah I see, and I will have to add my presets before the volume corner loads them, it would seem, is that correct?
>> 
>> Thanks
>> 
>> Rick
>> 
>> Sent from my iPad
>> 
>>> On Sep 24, 2018, at 11:23 AM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>> 
>>> https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/ColorTransferFunction/ColorMaps.js#L25-L46
>>> 
>>>> On Mon, Sep 24, 2018 at 9:21 AM Richard Frank <rickfrank at me.com> wrote:
>>>> I do t see the methods to add presets ( sorry if I missed it, C++ guy still getting up to speed on JS)....
>>>> 
>>>> Can you point me to them? 
>>>> 
>>>> Thanks,
>>>> 
>>>> Rick
>>>> 
>>>> Sent from my iPad
>>>> 
>>>>> On Sep 24, 2018, at 10:27 AM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>> 
>>>>> I'm guessing you are talking about the LookupTable preset which are used here to fill that list only once.
>>>>> https://github.com/Kitware/vtk-js/blob/master/Sources/Interaction/UI/VolumeController/index.js#L15
>>>>> 
>>>>> To adjust its content just create an alias in you application to override the imported file to be what you want.
>>>>> 
>>>>> Or add methods do allow dynamic re-computation of that list (on the UI side) since we already have methods to add or remove presets.
>>>>> 
>>>>>> On Sun, Sep 23, 2018 at 4:16 PM Richard Frank via vtkusers <vtkusers at public.kitware.com> wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> Is there a way to modify the list of transfer functions in the volumeController?
>>>>>> 
>>>>>> We'd like to at least add our own to the list...
>>>>>> 
>>>>>> Thanks
>>>>>> 
>>>>>> Rick
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>> 
>>>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>>> 
>>>>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>>>> 
>>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>>> 
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> https://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180924/06828b2e/attachment.html>


More information about the vtkusers mailing list