[vtkusers] How to update coordinates of one vtkPlane if coordinates of another vtkPlane change?
Cory Quammen
cory.quammen at kitware.com
Wed Mar 8 10:25:00 EST 2017
Bill, you must have used some magic search techn... oh, there's the
search bar on the wiki :-)
On Wed, Mar 8, 2017 at 10:16 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> And here is an example that uses ModifiedEvent...
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/BillboardTextActor3D
>
>
> On Wed, Mar 8, 2017 at 9:51 AM, Cory Quammen <cory.quammen at kitware.com> wrote:
>> See http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ClientData
>> for an example of how to set up an event observer. This is the pattern
>> you can follow to have plane B observe modified events from plane A.
>> You'll want B to observe vtkCommand::ModifiedEvent instead of
>> vtkCommand::KeyPressEvent.
>>
>> HTH,
>> Cory
>>
>> On Wed, Mar 8, 2017 at 9:27 AM, Sophonet <vtk12af6bc42 at kant.sophonet.de> wrote:
>>> Hi list,
>>>
>>> in my VTK app, I need two vtkPlanes (A and B) for different purposes.
>>> However, their information depends on each other. If coordinates of plane A
>>> change, I would like to automatically B recalculate its parameters, based on
>>> indirectly derived information from A.
>>>
>>> Currently, I am manually triggering the update of B when I change the
>>> information of A, but for that "hack", I have to provide an interface
>>> through a few software layers, which I would like to avoid.
>>>
>>> I have not found a way to listen to "modify" - events of A, since it seems
>>> that there is no "modified()" - command.
>>>
>>> Any suggestions?
>>>
>>> Thanks,
>>>
>>> Sophonet
>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list