<div dir="ltr">Hi Cory,<div>This is very interesting. I think only the base class sphObject needs to be appended by "vtk". I have observed this when I was playing with the vtkParametricFunction class. But unless you splet it out, i would not have been figure out what was wrong with my code.</div><div><br></div><div>I wish these kind of information is stored in some wiki form somewhere, or posted in your vtk/paraview blog. This will be immensely helpful to the developer community!</div><div><br></div><div>Thanks a lot,</div><div>Chiranjib</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 14, 2016 at 7:37 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chiranjib,<br>
<br>
It's not obvious or probably described anywhere, but the client/server<br>
code wrapping mechanism wraps member functions that have VTK objects<br>
as parameters *only* if those VTK objects have names that start with<br>
"vtk". If you prepend vtk to all your sph* classes, it should work. In<br>
fact, I tested that locally, and it solves the error you are seeing.<br>
<br>
HTH,<br>
Cory<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Jul 13, 2016 at 1:57 AM, Chiranjib Sur <<a href="mailto:sur.chiranjib@gmail.com">sur.chiranjib@gmail.com</a>> wrote:<br>
> Hi,<br>
> Thanks for your messages the pointers. I still have some issues. Here is the<br>
> attached code snippets which throws me error messages. I am bit clueless<br>
> what I am missing here.<br>
><br>
> Thanks,<br>
> Chiranjib<br>
><br>
> On Tue, Jul 12, 2016 at 8:09 PM, RIVERA ROLDAN, Jorge Orlando<br>
> <<a href="mailto:Orlando.RIVERA@mtu.de">Orlando.RIVERA@mtu.de</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>><br>
>> Also , check if "setVariable" is in the public section of your class<br>
>><br>
>> Orlando<br>
>><br>
>> -----Ursprüngliche Nachricht-----<br>
>> Von: Paraview-developers [mailto:<a href="mailto:paraview-developers-bounces@paraview.org">paraview-developers-bounces@paraview.org</a>]<br>
>> Im Auftrag von Cory Quammen<br>
>> Gesendet: Tuesday, 12. July 2016 15:37<br>
>> An: Chiranjib Sur<br>
>> Cc: Paraview Developer Mailing list<br>
>> Betreff: Re: [Paraview-developers] paraview PVSessionCore error<br>
>><br>
>> Chiranjib,<br>
>><br>
>> Usually this error means there is a mismatch between the XML used to<br>
>> describe the VTK-side class. Check that your XML name for the member<br>
>> function matches the C++, and that the member function setVariable()<br>
>> takes only one value.<br>
>><br>
>> Cory<br>
>><br>
>> On Tue, Jul 12, 2016 at 1:22 AM, Chiranjib Sur <<a href="mailto:sur.chiranjib@gmail.com">sur.chiranjib@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> > I am trying to implement a new filter in ParaView and I get the<br>
>> > following<br>
>> > error while executing.<br>
>> ><br>
>> > vtkPVSessionCore (0x162d180): Object type: MyObjectSource, could not<br>
>> > find<br>
>> > requested method: "setVariable"<br>
>> > or the method was called with incorrect arguments.<br>
>> ><br>
>> > while processing<br>
>> > Message 0 = Invoke<br>
>> > Argument 0 = vtk_object_pointer {MyObjectSource(0x34b3870)}<br>
>> > Argument 1 = string_value {setVariable}<br>
>> > Argument 2 = float64_value {0.003}<br>
>> ><br>
>> ><br>
>> > I searched the mailing list and it looks like a very similar bug has<br>
>> > been<br>
>> > reported<br>
>> > <a href="http://www.paraview.org/Bug/view.php?id=15593" rel="noreferrer" target="_blank">http://www.paraview.org/Bug/view.php?id=15593</a><br>
>> ><br>
>> ><br>
>> > People have faced similar problem and here are the details<br>
>> > <a href="http://public.kitware.com/pipermail/paraview/2016-March/036387.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipermail/paraview/2016-March/036387.html</a><br>
>> ><br>
>> > Is there a solution of work-around?<br>
>> ><br>
>> > Chiranjib<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Search the list archives at:<br>
>> > <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Cory Quammen<br>
>> R&D Engineer<br>
>> Kitware, Inc.<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at:<br>
>> <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
>> --<br>
>> MTU Aero Engines AG<br>
>> Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer<br>
>> Martens, Michael Schreyoegg<br>
>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus<br>
>> Eberhardt<br>
>> Sitz der Gesellschaft/Registered Office: Muenchen<br>
>> Handelsregister/Commercial Register: Muenchen HRB 157206<br>
>><br>
>> Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder<br>
>> rechtlich geschuetzte Informationen.<br>
>> Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte<br>
>> den Absender und loeschen Sie diese<br>
>> E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder<br>
>> Weiterleiten ist nicht gestattet.<br>
>><br>
>> This e-mail and any attached documents are proprietary to MTU,<br>
>> confidential or protected by law.<br>
>> If you are not the intended recipient, please advise the sender and delete<br>
>> this message and its attachments.<br>
>> Any unauthorised storing, copying or distribution is prohibited.<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</div></div></blockquote></div><br></div></div>