Is there a way to generate a CSV of complete pipeline (data, multiple filters e.g calculator, glyphs, extract selection) in a custom application code?
I want to generate the CSV from within the code and not from the GUI. In other terms, once I click a button (let’s say RunSim) then in my code I want to generate the CSV which I would send to my other code.
(As far as I know) Because there is no such command or option where I can just use it to generate a full CSV at the end so I was thinking of somehow traversing through my pipeline and convert the each filter’s output into CSV and then at the end merge all the CSVs.
But I am not sure which function to use to access the pipeline and then traverse. Secondly, how to convert each filter’s output to csv.
What do you mean by creating every filter using pqObjectBuilder?
The user will already apply the filter, in the code I want to generate CSV which has all the data related to those filters.
Will I be able to load it into my custom application as I load a filter or any other plugin during build time?
Will I be able to call that macro from C++ code? I have a function in C++ which is called when I click a custom button on my custom application’s GUI and I want that function to call the macro.
No, you will be able to load at as a python macros, it’s not a plugin. If you are writing a custom app, it may be better to write a custom C++ logic instead.
Will I be able to call that macro from C++ code? I have a function in C++ which is called when I click a custom button on my custom application’s GUI and I want that function to call the macro.
Well i have created the button and it works fine, I am just not sure about the right way to approach the C++ logic to create the CSVs for all filters output.
Is there a way to just generate the CSV once which has all filters output? (I could not find that way)
I believe once the button is clicked I would have to access all the filters in the pipeline browser through C++ code (this is the part where I am stuck) and then create the CSVs one by one for each filler.
Not exactly. So this will only save data for the active filter, right? But i want data for all the filters.
So maybe a function which gives access to all the filters which I can iterate over and save the data for each filter?
Or maybe a function where i can make all filters active and then save all their data in CSV
So, with this code I am able to generate CSV files for each filter but is there a way to somehow to just generate 1 file where the data for all the filters are added.
Note that each filter and the source has different data columns (attributes)
Where exactly would I do that? Before iterating over the sources/filters?
And will it be able to group data with number of columns? I mean if filter A has data columns a,b,c and filler B has a,b,e,f would they both be merged?
I tried doing that, and after applying the AppendDataSet filter I saved the file as CSV but that CSV has only 3 columns Points:0, Points:1, Points:2 I have other arrays in my pipeline, e.g. vectors created by calculator which are not there in the CVS.