file format plugin: how to keep data persistent #18322
-
I have a plugin to import data from our specific HDF format into VisIt so we can visualize the various data sets stored there. This works fine when i visualize datasets from a single file. But when i load an entire block of files in order to make an animation, only the first plot is done correctly, while the following plots display some random data. I located the problem: when i d plot the datasets from single files, I see two possibilities to fix this:
The first possibility could work - in my pie plot plugin i also used a vtk object to "smuggle" data into a new instance. The question here is, is there such a data structure which i could add my data to in the first instantiation if the class, and retrieve it from this same data structure in the new instance? As for variant 2: is there a way to find out whether we are currently displaying an animation? if yes, i could call the method So my question is, is any of those two variants possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I found a solution: |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. My I must admit i did not feel very comfortable wit placing I had noticed that the I will give your suggestions regarding |
Beta Was this translation helpful? Give feedback.
-
I added the line
to Thanks! |
Beta Was this translation helpful? Give feedback.
I added the line
to
avtQDFFileFormat.h
and now it works perfectly withoutGetVar()
explicitely callingPopulateDatabaseMetaData()
.Thanks!