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.
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
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.