[Paraview-developers] Updating view properties

David Thompson dcthomp at sandia.gov
Wed Mar 9 22:41:58 EST 2011


OK, this time there really is an attachment.

	David

On Mar 9, 2011, at 19:40 , David Thompson wrote:

> Hi Utkarsh (et al.),
>
> I had to work on some other stuff for a while, but I've managed to
> create a small example of the problem. Attached is a tarball
> containing a ParaView plugin that implements a new view type: "Dummy".
> It works when you compile as is, but changing the #defines in Dummy.h
> will create a version where the server exits on any panning/zooming of
> the plot.
>
> 	Thanks,
> 	David
>
> On Feb 11, 2011, at 6:00 , Utkarsh Ayachit wrote:
>
>> If you have some code that I can play with, it will be easier :).
>>
>> Utkarsh
>>
>> On Thu, Feb 10, 2011 at 8:48 PM, David Thompson <dcthomp at sandia.gov>
>> wrote:
>>>>> No. Interaction (panning/zooming) on the client does not result in
>>>>> Render()
>>>>> being called on either the client or the servers.
>>>>
>>>> Argh..that's what I feared. Okay next step. So you have a
>>>> vtkPVContextView subclass right?
>>>
>>> Yup.
>>>
>>>> In that subclass, add an observer to the vtkContextView's EndEvent
>>>> (or
>>>> whoever is firing that event). In the callback, call:
>>>> vtkMultiProcessStream stream;
>>>> stream << this->Identifier << static_cast<int>(blockindex);
>>>> this->SynchronizedWindows->TriggerRMI(stream, SOME_TAG);
>>>> This should result in the server-side processes reporting that an
>>>> un-handled RMI was invoked.
>>>
>>> Not quite. When I add this (switching out blockindex for a couple
>>> doubles of
>>> interest and SOME_TAG for my favorite random integer constant), it
>>> gets an
>>> error which would result in a "Could not receive RMI trigger  
>>> message"
>>> message within vtkMultiProcessController::ProcessRMIs except that
>>> reportErrors is hardwired to 0 by the caller.
>>>
>>> Interestingly, if I force the client not to call TriggerRMI for the
>>> first
>>> few times (until the first rendering is done), then I do get the
>>> message
>>> about the unhandled RMI each time the client renders the chart. So
>>> it seems
>>> like the first calls on the client are occurring in a bad spot.
>>>
>>>> If this works correctly, then you can add code to handle this RMI
>>>> on the
>>>> server-side and in that you can change the ivar on your
>>>> vtkPVContextView
>>>> subclass.
>>>
>>> I think I see how to do this... I just want to get the point where
>>> the
>>> server doesn't jump out of the car while we're turning a corner.
>>>
>>>       Thanks,
>>>       David
>>>
>>>
>>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DummyViews.tgz
Type: application/octet-stream
Size: 10002 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20110309/a66d1930/attachment-0001.obj>


More information about the Paraview-developers mailing list