<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=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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 lang=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks, it worked!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But i can only use properties with number_of_elements=1, when i use mulitple number of elements it could not find the correct function definition….<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I tried:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:green;mso-fareast-language:EN-US'>Void GetPlaneCoefficients( double& rdX, double& rdY, double& rdZ, double& rdD)</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:green;mso-fareast-language:EN-US'>Void GetPlaneCoefficients( double* pdPl )</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:green;mso-fareast-language:EN-US'>Void GetPlaneCoefficients( double a[4] )<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:green;mso-fareast-language:EN-US'>Double* GetPlaneCoefficients()</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>With<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <DoubleVectorProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> name="PlaneCoefficients"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> command="GetPlaneCoefficients"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> number_of_elements="4"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> information_only="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> default_values="0 0 0 0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </DoubleVectorProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>But all failed, now I wrote:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:blue;mso-fareast-language:EN-US'> double</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'> <span style='color:#010001'>GetPlaneCoefficientX</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'> <span style='color:blue'>double</span> <span style='color:#010001'>GetPlaneCoefficientY</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'> <span style='color:blue'>double</span> <span style='color:#010001'>GetPlaneCoefficientZ</span>();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:"Courier New";color:blue;mso-fareast-language:EN-US'>double</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'> <span style='color:#010001'>GetPlaneCoefficientD</span>();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-US'>with<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><DoubleVectorProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> name="PlaneCoefficientX"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> command="GetPlaneCoefficientX"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> number_of_elements="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> information_only="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> default_values="0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> X value of planes normal vector. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </DoubleVectorProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <DoubleVectorProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> name="PlaneCoefficientY"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> command="GetPlaneCoefficientY"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> number_of_elements="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> information_only="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> default_values="0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> Y value of planes normal vector. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </DoubleVectorProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <DoubleVectorProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> name="PlaneCoefficientZ"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> command="GetPlaneCoefficientZ"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> number_of_elements="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> information_only="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> default_values="0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> Z value of planes normal vector. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </DoubleVectorProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <DoubleVectorProperty<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> name="PlaneCoefficientD"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> command="GetPlaneCoefficientD"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> number_of_elements="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> information_only="1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> default_values="0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> Distance value from origin to plane. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </Documentation><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> </DoubleVectorProperty><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Which is a little bit nasty, anyone knows what I am making wrong?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Thanks, best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Gerald<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sebastien Jourdain [mailto:sebastien.jourdain@kitware.com] <br><b>Gesendet:</b> Donnerstag, 23. Jänner 2014 15:21<br><b>An:</b> Lodron, Gerald<br><b>Cc:</b> Paraview Developer (Paraview-developers@paraview.org)<br><b>Betreff:</b> Re: [Paraview-developers] custom object panel with additional information<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Gerald,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>In your XML definition of your proxy you need to specify "an information" property. Like follow:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal> <IntVectorPropery command="GetLevelRange"<o:p></o:p></p></div><div><p class=MsoNormal> default_values="0 0"<o:p></o:p></p></div><div><p class=MsoNormal> information_only="1"<o:p></o:p></p></div><div><p class=MsoNormal> name="LevelRange"<o:p></o:p></p></div><div><p class=MsoNormal> number_of_elements="2"><o:p></o:p></p></div><div><p class=MsoNormal> </IntVectorPropery><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Then on the client side in order to get the value back, you will need to do something like that.<o:p></o:p></p></div><div><p class=MsoNormal>The code is based on memory not on actual real C++ code, but that should be enough to help you out.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>proxy->UpdatePropertyInformation();<o:p></o:p></p></div><div><p class=MsoNormal>prop = vtkSMPropertyHelper(proxy, "LevelRange");<o:p></o:p></p></div><div><p class=MsoNormal>cout << prop.GetValue() << endl;<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Seb<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Jan 22, 2014 at 11:55 PM, Lodron, Gerald <<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>Hello</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>Is there a way to display some additional output from filter computation in the custom object panel or information panel? I programmed a custom paraview plugin with a filter and a custom object panel for some filter settings and now want to display some meta information of computation, e.g. Computation Time, Number of used iterations, etc….</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>I think I must overwrite the “updateInformationAndDomains()” function in my panel to set a QLabel for outputting such thinks but I have no clue how to get to the “GetProcessingTime” of my filter. I think it must be something like that: </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>vtkSMSourceProxy* poSourceProxy = vtkSMSourceProxy::SafeDownCast(this->proxy());</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> if( !poSourceProxy )</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> return;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> vtkSMProperty* poProcessingTime = poSourceProxy->GetProperty("GetProcessingTime");</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>but I have no clue what to write into the xml or how to get the return value from GetProcessingTime….</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>I searched for an example doing this but cannot find anything, for any help I would be very thankful…</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>Best regards,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB>Gerald</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB style='font-family:"Arial","sans-serif"'>____</span><span style='font-family:"Arial","sans-serif"'>_____________________________________________________________</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><b><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><b><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'>JOANNEUM RESEARCH Forschungsgesellschaft mbH</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>DIGITAL – Institute for Information and Communication Technologies</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Steyrergasse 17, 8010 Graz, Austria</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#4D4D4D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>phone: <a href="tel:%2B43%20316%20876-1751" target="_blank">+43 316 876-1751</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>fax: <a href="tel:%2B43%20316%208769-1751" target="_blank">+43 316 8769-1751</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'>e-mail: <a href="mailto:gerald.lodron@joanneum.at" target="_blank">gerald.lodron@joanneum.at</a> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>web: <a href="http://www.joanneum.at/digital" target="_blank">www.joanneum.at/digital</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-family:"Arial","sans-serif"'>_________________________________________________________________</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:9.0pt;color:gray'>This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:9.0pt;color:gray'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:9.0pt;color:gray'>Please consider the environment before printing this page.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-GB> </span><o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>Paraview-developers mailing list<br><a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br><a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>