<div dir="ltr"><div><div>I mean that if you use simple plugin that was sent by you earlier, the button is not shown.<br></div>And <span id="result_box" class="" lang="en"><span class="">moreover</span>, constructor of <span class="">CustomColorEditorPropertyWidget widget</span> <span class="">is not even called.<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">Did I miss out something?<br></span></span></div><span id="result_box" class="" lang="en"><span class=""></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-12 17:30 GMT+03:00 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> 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?<br>
<br>
</span>My apologies, but I don't follow what you mean by this statement.<br>
<br>
Any case, you're extending "UnstructuredGridRepresentation", so when<br>
showing a vtkUnstructuredGrid dataset, your "MyRepresentation" would<br>
be created and you'll see a "Annotation" option available under the<br>
"Representation" combo-box. Now, the <ExposedProperty> section you<br>
have is not necessary (and is indeed written incorrectly) since your<br>
representation is sharing are several properties with<br>
"SurfaceRepresentation", including those for coloring. The<br>
"UnstructuredGridRepresentation" is already exposing appropriate<br>
properties from "SurfaceRepresentation" with property PropertyGroup<br>
declaration so the "ColorEditor" widget will indeed be created just<br>
fine.<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Yours Sincerely,<br><b>GLIBIN Maxim O.</b> - Developer<br>Phone : +7 (987) 533 00 55<br>
Email: <a href="mailto:maxim.glibin@gmail.com" target="_blank">maxim.glibin@gmail.com</a><div><br></div></div></div></div></div>
</div>