[Paraview] Calling a self made writer from a self made filter
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Oct 23 09:59:25 EDT 2008
Hey Rafael,
First, you'll have to add a property to your filter to call the method
that requests the writing as follows:
<SourceProxy name="MyFilter" class="vtkMyFilter">
...
<Property name="Save"
command="Save" />
...
</SourceProxy>
Then you have to create a custom object panel (look at the wiki for
plugin examples) which adds a button and then a callback to do
something as follows:
void pqMyPanel::callback()
{
this->proxy()->InvokeCommand("Save");
}
Utkarsh
Rafael March wrote:
> Hey Folks,
>
> I'm programming a filter, and I would like to be able to call automatically a writer(which I have also programmed), as the user hits a specific PushButton in the ObjectPanel.I mean: I want to have a SAVE button, and as the user hits it, it should save the model in my own format. How can I do this ?
>
> Thanks,
> Rafael March.
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list