[Paraview-developers] Access to the color legend and its modification

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Dec 12 10:09:30 EST 2014


As demonstrated in the screenshot attached earlier (attached again),
the button is indeed shown. I simply created the "Wavelet" source and
the button was shown as expected.



On Fri, Dec 12, 2014 at 10:03 AM, Maxim Glibin <maxim.glibin at gmail.com> wrote:
> I mean that if you use simple plugin that was sent by you earlier, the
> button is not shown.
> And moreover, constructor of CustomColorEditorPropertyWidget widget is not
> even called.
> Did I miss out something?
>
> 2014-12-12 17:30 GMT+03:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:
>>
>> > This plugin doesn't display the button and even doesn't create it until
>> > this widget will not be defined in the proxy group representation of plugin,
>> > does it?
>>
>> My apologies, but I don't follow what you mean by this statement.
>>
>> Any case, you're extending "UnstructuredGridRepresentation", so when
>> showing a vtkUnstructuredGrid dataset, your "MyRepresentation" would
>> be created and you'll see a "Annotation" option available under the
>> "Representation" combo-box. Now, the <ExposedProperty> section you
>> have is not necessary (and is indeed written incorrectly) since your
>> representation is sharing are several properties with
>> "SurfaceRepresentation", including those for coloring. The
>> "UnstructuredGridRepresentation" is already exposing appropriate
>> properties from "SurfaceRepresentation" with property PropertyGroup
>> declaration so the "ColorEditor" widget will indeed be created just
>> fine.
>
>
>
>
> --
> Yours Sincerely,
> GLIBIN Maxim O. - Developer
> Phone : +7 (987) 533 00 55
> Email: maxim.glibin at gmail.com
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2014-12-12 09:03:55.png
Type: image/png
Size: 29063 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20141212/a3c786e1/attachment-0001.png>


More information about the Paraview-developers mailing list