<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>I tried to call my function double calculateOptimalThreshold(vtkImageData *voi) which have a return attribute as an OpThreshold that I want to extract the value as well.<br><br>I use the following tab for my .xml ServerManager.<br><span>========================================================================</span><br><br><DoubleVectorProperty name ="calculate" command="calculateOptimalThreshold" number_of_elements = "1"><br> <DataTypeDomain name ="input_type"><br> <span class="Apple-tab-span" style="white-space:pre"> </span><DataType value = "vtkImageData"><br> </DataTypeDomain><br> </DoubleVectorProperty><span>========================================================================</span><br><span> </span><br>But I failed to apply my filter with the following error <br><span>=====================================================================</span><br><span><br>############ ABORT #############<br>ERROR: In /home/thtran/PV/ParaView/src/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx, line 368<br>vtkPVSessionCore (0x101ac20): Object type: vtkOtsuSphereSource, could not find requested method: "calculateOptimalThreshold"<br>or the method was called with incorrect arguments.<br><br>while processing<br>Message 0 = Invoke<br> Argument 0 = vtk_object_pointer {vtkOtsuSphereSource (0x29ef5f0)}<br> Argument 1 = string_value {calculateOptimalThreshold} ======================================================================<br>Can you please help me? It really really important for me indeed.<br>Thank you from my heart for your help.<br><br><span> </span><br><span> </span><br></span>----- Original Message -----<br>From: Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr><br>To: paraview-developers@paraview.org, paraview@paraview.org<br>Sent: Thu, 07 Jun 2012 16:45:22 +0200 (CEST)<br>Subject: [Paraview] ParaView Plugin .xml how to<br><br>Hi everybody,<br> I have another question, I hope that you can help me.<br> So, my class vtkOtsuSphereSource has an attribute name "OpThreshold" of type double.<br> I want to Set it value using ParaView.<br> I followed an tutorial from which I can get my job done by adding some tab in my .xml file. the tutorial I told is in the IEEE Vis 09 conference.<br><br> So, to set OpThreshold, I added the followed tab : <br> <DoubleVectorProperty name="OpThreshold" command="SetOpThreshold" number_of_elements ="1" default_values="0"><br> </DoubleVectorProperty> <br> And normaly, I can entre a value in a box in ParaView GUI. but I have a Core Dump, here is what I have as error : <br><span> </span><br><br>paraview: /home/thtran/PV/ParaView/src/ParaViewCore/ServerImplementation/vtkSIProxy.cxx:453: virtual bool vtkSIProxy::ReadXMLProperty(vtkPVXMLElement*): Assertion `!name.empty() && this->GetSIProperty(name.c_str()) == __null' failed.<br>Aborted (core dumped)<br> <span> I think that I don't get the .xml written as expected but I don't have any idea where is the problem.<br> Please help me. It is really important for me to get through this. <br><span> </span><br></span> My .xml is as followed : <br> <br> ==================================================================== <br> <ServerManagerConfiguration><br> <ProxyGroup name="filters"><br> <SourceProxy name="OtsuSphereSource" class="vtkOtsuSphereSource" label="Otsu Sphere Source"><br><br> <Documentation<br> long_help="Ce filtre calcule a partir dune image donnee le meilleur seuil"<br> short_help="Calcule meilleur seuil"><br> </Documentation><br><br> <InputProperty<br> name="Input"<br> command="SetInputConnection"><br> <ProxyGroupDomain name="groups"><br> <Group name="sources"/><br> <Group name="filters"/><br> </ProxyGroupDomain><br> <DataTypeDomain name="input_type"><br> <DataType value="vtkImageData"/><br> </DataTypeDomain><br> </InputProperty><br> <DoubleVectorProperty name="OpThreshold" command="SetOpThreshold" number_of_elements ="1" default_values="0"><br> </DoubleVectorProperty> <br> <DoubleVectorProperty name = "OpThreshold" command="GetOpThreshold" number_of_elements = "1" default_values="0" information_only="1"><br> </DoubleVectorProperty> <br><br> </SourceProxy><br> </ProxyGroup> <br></ServerManagerConfiguration><br><span>===========================================================================</span></body></html>