[vtkusers] Given a node, emphasize the incident edges

Steffen Oeltze stoeltze at isg.cs.uni-magdeburg.de
Thu Mar 3 11:53:48 EST 2011


Thank you very much for the quick and, as always, very helpful reply.

Steffen


On 03.03.2011 17:23, Jeff Baumes wrote:
> Try adding
>
> #include "vtkDataRepresentation.h"
>
> to the top of your source file to help the compiler figure out that it 
> is indeed a vtkObject subclass.
>
> Jeff
>
> On Thu, Mar 3, 2011 at 11:17 AM, Steffen Oeltze 
> <stoeltze at isg.cs.uni-magdeburg.de 
> <mailto:stoeltze at isg.cs.uni-magdeburg.de>> wrote:
>
>     Hi Jeff,
>
>     thanks a lot for the hint. I found what I needed. Unfortunately, I
>     am not able to transfer the example to my
>     own project. The CustomLinkView-project compiles fine. However,
>     when I add the following line to my project, I receive an error:
>
>            - from CustomLinkView:
>
>     Connections->Connect(
>         this->TableView->GetRepresentation(),
>         vtkCommand::SelectionChangedEvent,
>         this,
>         SLOT(selectionChanged(vtkObject*, unsigned long, void*, void*)));
>
>            - my example:
>
>     c_connections = vtkSmartPointer<vtkEventQtSlotConnect>::New();
>
>     c_connections->Connect(
>         this->GetRepresentation(),  // this points to my own class
>     which I derived from "vtkQtTableView"
>         vtkCommand::SelectionChangedEvent,
>         this,
>         SLOT(selectionChanged(vtkObject*, unsigned long, void*, void*)));
>
>             - error:
>
>     error C2664: 'vtkEventQtSlotConnect::Connect' : cannot convert
>     parameter 1 from 'vtkDataRepresentation *' to 'vtkObject *'
>     1>        Types pointed to are unrelated; conversion requires
>     reinterpret_cast, C-style cast or function-style cast
>
>     Do you have any idea why this is happening?
>
>     Cheers,
>     Steffen
>
>
>
>
>
>
>
>     On 25.02.2011 16:14, Jeff Baumes wrote:
>>     A good place to start is in the VTK repository under
>>     Examples/Infovis/Cxx/CustomLinkView. You need to register an
>>     observer on the view representation's SelectionChangedEvent.
>>
>>     Jeff
>>
>>     On Fri, Feb 25, 2011 at 1:38 AM, Steffen Oeltze
>>     <stoeltze at isg.cs.uni-magdeburg.de
>>     <mailto:stoeltze at isg.cs.uni-magdeburg.de>> wrote:
>>
>>         Hi Jeff,
>>
>>         thanks a lot for the reply. Could you please give me a hint
>>         on where to implement this strategy. I guess that there is an
>>         interactor from which I should derive my own
>>         "DoSomethingWithTheSelection"-methods? I just don't know
>>         exactly how to start.
>>
>>         Best Regards,
>>         Steffen
>>
>>
>>         Am 23.02.2011 21:53, schrieb Jeff Baumes:
>>>         This is the same approach I would take. I don't know of any
>>>         existing implementations that perform that same function.
>>>
>>>         Jeff
>>>
>>>         On Tue, Feb 22, 2011 at 10:05 AM, Steffen Oeltze
>>>         <stoeltze at isg.cs.uni-magdeburg.de
>>>         <mailto:stoeltze at isg.cs.uni-magdeburg.de>> wrote:
>>>
>>>             Hi,
>>>
>>>             in my graph visualization, I would like to visually
>>>             emphasize all edges which are connected to a
>>>             user-selected node. Is
>>>             there an implementation which I can use for that
>>>             purpose? Otherwise, I would try the following strategy:
>>>             (1) get the
>>>             selected node, (2) find incident edges using
>>>             vtkAdjacentVertexIterator, and (3) emphasize these edges.
>>>
>>>             Best Regards,
>>>             Steffen
>>>             _______________________________________________
>>>             Powered by www.kitware.com <http://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
>>>
>>>             Follow this link to subscribe/unsubscribe:
>>>             http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>>
>>>
>>>         -- 
>>>         Jeff Baumes, Ph.D.
>>>         Technical Lead, Kitware Inc.
>>>         (518) 881-4932
>>
>>
>>
>>
>>     -- 
>>     Jeff Baumes, Ph.D.
>>     Technical Lead, Kitware Inc.
>>     (518) 881-4932
>
>
>
>
> -- 
> Jeff Baumes, Ph.D.
> Technical Lead, Kitware Inc.
> (518) 881-4932

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110303/32caf4ba/attachment.htm>


More information about the vtkusers mailing list