Paraview pipeline when writing plugins
im new to Paraview, and im trying to write a plugin for the application.
I already managed to get going a bit by using on site examples, however i have severe difficulty understanding how to pass data between filters.
I have written a source plugin which generates some data, and a marching cubes filter to do some analyzing.
However, the data written to the source plugins' output data object never seems to arrive at the m.c. filters input.
The code below was more or less copy pasted and reworked from a couple of examples i could actually get to work,
and which had some sparse explanation to them.
Heres the code i think is relevant:
Its not only the data thats getting lost, if i directly compare memory adresses of the DATA_OBJECTs, they are different.
I didnt post the .xml files since i assumed they would throw an error if something is wrong.
In short, the .xml file sets no pins for the first filter, and a single input pin for the second.
I also would appreciate an example which is as simple as possible explaning step by step how to talk to the pipeline.
It seems rather hard to find anything useful on the web (because its probably pretty trivial),or at least something that is so
minimal that it will work out of the box, and you can learn from it by expanding a working code, not reducing a
broken one to get it to work. Then again maybe it really is that complicated, then i'll just write my own vis package :)
Ah sorry for the premature post, i found the problem!
In RequestDataObject(...) add the line:
From the paraview mailing list, i also got the tip to implement RequestInformation(...) method to set these things, but for testing, a newbie (like me) prefers minimal code :)
Can be marked as solved i guess.
EDIT: this didnt solve anything at all, i was just testing wrong. The problem still stands as is, any help is appreciated...
|All times are GMT -4. The time now is 10:26.|