<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>Thanks, your suggested changes to the XML worked and does exactly what I needed!&nbsp; Big help.&nbsp; Thanks.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>You may be quite right, that it would be a hack to get to the display properties.&nbsp; I&#8217;m trying to do something in a C++ plugin similar to the following statements in a python script<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>DataRepresentation850h = GetDisplayProperties (Contour850p)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>DataRepresentation850h = Show()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>DataRepresentation850h.DiffuseColor = [0.,0.,0.]<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>DataRepresentation850h.LineWidth = 2.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>In addition to setting a solid color, as above, I&#8217;m also wanting to set &#8220;Color by&#8221; and set that to another of the scalars in the input data.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>Any thoughts / recommendations?<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:"Calibri","sans-serif";color:#4F81BD'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#4F81BD'>Phil<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> burlen [mailto:burlen.loring@gmail.com] <br><b>Sent:</b> Wednesday, August 15, 2012 10:51 AM<br><b>To:</b> Phil Amburn<br><b>Cc:</b> paraview-developers@paraview.org<br><b>Subject:</b> Re: [Paraview-developers] c++ plugin; viewing parameters and output names<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&nbsp;you could name your outputs in the xml code, add something similar to the following as suits your use case<br><br>&lt;OutputPort name=&quot;Solar Wind&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index=&quot;0&quot; /&gt;<br>&lt;OutputPort name=&quot;Magnetosphere&quot;&nbsp;&nbsp; index=&quot;1&quot; /&gt;<br>&lt;OutputPort name=&quot;North Connected&quot; index=&quot;2&quot; /&gt;<br>&lt;OutputPort name=&quot;South Connected&quot; index=&quot;3&quot; /&gt;<br>&lt;OutputPort name=&quot;Null/Short Int.&quot; index=&quot;4&quot; /&gt;<br><br>I'm sure you could access the display properties in a custom panel, however it might be very hackish to do so.<br><br>On 08/13/2012 06:17 PM, Phil Amburn wrote: <o:p></o:p></p><pre>I hope this hasn't been submitted twice, but I sent email on Saturday and<o:p></o:p></pre><pre>haven't seen it in my mail, so I'm trying again.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I'm working on a c++ plugin that is a filter that reads a vtkStructuredGrid<o:p></o:p></pre><pre>and generates 3 polygonal outputs.&nbsp; The environment I'm using is ParaView<o:p></o:p></pre><pre>3.10.1, MS Windows 7, and MS Visual Studio 2008.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>One of the outputs is a 3D contour surface of one of four scalars in the<o:p></o:p></pre><pre>vtkStructuredGrid input, and I'd like to be able to modify the &quot;Color by&quot;<o:p></o:p></pre><pre>setting in the Display panel from &quot;Solid Color&quot; to color by one of the other<o:p></o:p></pre><pre>scalars in the input.&nbsp; Easy to do through the GUI, but I'd like to do this<o:p></o:p></pre><pre>from within the plugin.&nbsp;&nbsp;&nbsp; <o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Is it possible to modify the &quot;Color by&quot; setting from within the plugin?<o:p></o:p></pre><pre>Can I get a list of the groups being maintained by the server manager?&nbsp; I<o:p></o:p></pre><pre>expect (hope) I'm interested in the groups and properties associated with<o:p></o:p></pre><pre>the display panel, and hope to be able to set them from within the plugin.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I have another question.&nbsp; When this filter generates its three outputs, they<o:p></o:p></pre><pre>are named output-0, output-1, and output-2 in the Pipeline Browser.&nbsp; Can I<o:p></o:p></pre><pre>change those names to something more informative from within the plugin,<o:p></o:p></pre><pre>such as &quot;constant pressure surface&quot;?<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I've attached the xml and cmake files I'm using along with C++ code.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Thanks, any help would be greatly appreciated.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Phil<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Paraview-developers mailing list<o:p></o:p></pre><pre><a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><o:p></o:p></pre><pre><a href="http://public.kitware.com/mailman/listinfo/paraview-developers">http://public.kitware.com/mailman/listinfo/paraview-developers</a><o:p></o:p></pre><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>