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

Maxim Glibin maxim.glibin at gmail.com
Fri Dec 12 10:45:08 EST 2014


I'm sorry, I have found where I was wrong.
At first I thought that it is not possible to create custom widget without
new representation. But I found an error.
Thank you very much for help.

2014-12-12 18:09 GMT+03:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:

> 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
> >
>



-- 
Yours Sincerely,
*GLIBIN Maxim O.* - Developer
Phone : +7 (987) 533 00 55
Email: maxim.glibin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20141212/db990d41/attachment.html>


More information about the Paraview-developers mailing list