[Paraview-developers] Updating view properties

David Thompson dcthomp at sandia.gov
Thu Feb 10 15:33:19 EST 2011


>> I'm not sure exactly which "change event" you mean I should listen  
>> to. The
>> EndEvent signalling the end of a render? The Modified event  
>> signaling a
>> change in the vtkPVContextView subclass on the client? Or  
>> (certainly not)
>> the StateChangedEvent used by Undo/Redo?
>
> The event after which you wish to update the representations. I am  
> not sure what event the vtkAxis fires, if any when the limit  
> changes,...

It doesn't, but...

> ... but that's what should trigger the change in properties on the  
> representation, right?

Yes. I was checking whether vtkAxis changed by observing the EndEvent  
emitted by vtkContextView on the client. When it changed, I would
1. use a vtkSMPropertyHelper to update the property of the  
vtkPVContextView subclass,
2. call UpdateProperty() on the proxy, and then
3. invoke render() on the pqView subclass.
But on the server side, this results in a WrongTagEvent (it receives  
tag 16 instead of 1) followed by the server exiting.

If I understand your suggestion, then instead of steps #1-2 above, I  
should be using SendStream() to invoke a method on all the processes'  
vtkPVContextView subclasses?

	Thanks,
	David 



More information about the Paraview-developers mailing list