[Paraview] Save State/adding custom property
michal wozniak
michalwozniak at live.ca
Sun May 29 13:37:19 EDT 2016
Hi everyone,
I am trying to add a custom property to the state xml.
For eg:
I loaded object.stl and did a slice on it. Then, I saved the state and went to look at the XML.
<ProxyCollection name="sources"> <Item id="4031" name="Slice1"/> <Item id="3783" name="object.stl"/> </ProxyCollection>
I want to add an extra property called "user"
<ProxyCollection name="sources"> <Item id="4031" name="Slice1" user="dev"/> <Item id="3783" name="object.stl" user="basic"/> </ProxyCollection>
the extra property will be added during the saving of the state. I will be changing user property using a widget. I just want to know how to send the value of my variable user to be printed in the xml.
I have been looking at a couple of classes vtkSMStateVersionController, vtkSMStateLoader, vtkSMProperty. I got confused after looking at so many classes related to this. Do i need to register my variable or send it using a specific function?Is there some documentation/tutorial for this?
thanks
Michal Wozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160529/4278a3f5/attachment.html>
More information about the ParaView
mailing list