Re: [Paraview] ParaView v5.2.0: Problems with inspecting Use Below (Above) Range Color

2017-02-22 Thread Nenad Vujicic
Utkarsh,

Thank you very much! I made mistake by casting vtkScalarsToColors to
vtkLookupTable always, without inspecting of other branches! When I put
conditional checking if it is maybe
vtkPVDiscretizableColorTransferFunction, it started working! Thank you very
much for your help!

Nenad.

On Wed, Feb 22, 2017 at 2:12 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Where are you getting the vtkLookupTable from? ParaView doesn't use
> vtkLookupTable directly, is uses vtkPVDiscretizableColorTransferFunction
> 
>  .
>
> Utkarsh
>
> On Tue, Feb 21, 2017 at 11:42 AM, Nenad Vujicic  wrote:
>
>> Hello everyone,
>>
>> I'm trying to inspect values of "UseBelowRangeColor" and
>> "UseAboveRangeColor" flags from my ParaView exporter plugin by:
>>
>> 1. Retrieving vtkCompositePolyDataMapper2 from currently active view and
>> rendering window, then,
>> 2. Getting it's vtkLookupTable and then calling GetUseAboveRangeColor()
>> and GetUseBelowRangeColor(),
>>
>> However, first call (for checking using above range color) always passes
>> and returns some big number and second one (for checking using below range
>> color) always crashes, regardless whether flags are turned ON / OFF in
>> ParaView UI.
>>
>> Any suggestions about this or ideas how I could pick up these values in
>> different way?
>>
>> Thanks in advance!
>> Nenad.
>>
>> ___
>> 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 ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView v5.2.0: Problems with inspecting Use Below (Above) Range Color

2017-02-21 Thread Utkarsh Ayachit
Where are you getting the vtkLookupTable from? ParaView doesn't use
vtkLookupTable directly, is uses vtkPVDiscretizableColorTransferFunction

 .

Utkarsh

On Tue, Feb 21, 2017 at 11:42 AM, Nenad Vujicic  wrote:

> Hello everyone,
>
> I'm trying to inspect values of "UseBelowRangeColor" and
> "UseAboveRangeColor" flags from my ParaView exporter plugin by:
>
> 1. Retrieving vtkCompositePolyDataMapper2 from currently active view and
> rendering window, then,
> 2. Getting it's vtkLookupTable and then calling GetUseAboveRangeColor()
> and GetUseBelowRangeColor(),
>
> However, first call (for checking using above range color) always passes
> and returns some big number and second one (for checking using below range
> color) always crashes, regardless whether flags are turned ON / OFF in
> ParaView UI.
>
> Any suggestions about this or ideas how I could pick up these values in
> different way?
>
> Thanks in advance!
> Nenad.
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] ParaView v5.2.0: Problems with inspecting Use Below (Above) Range Color

2017-02-21 Thread Nenad Vujicic
Hello everyone,

I'm trying to inspect values of "UseBelowRangeColor" and
"UseAboveRangeColor" flags from my ParaView exporter plugin by:

1. Retrieving vtkCompositePolyDataMapper2 from currently active view and
rendering window, then,
2. Getting it's vtkLookupTable and then calling GetUseAboveRangeColor() and
GetUseBelowRangeColor(),

However, first call (for checking using above range color) always passes
and returns some big number and second one (for checking using below range
color) always crashes, regardless whether flags are turned ON / OFF in
ParaView UI.

Any suggestions about this or ideas how I could pick up these values in
different way?

Thanks in advance!
Nenad.
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview