<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jeff,<br>
<br>
thanks a lot for the hint. I found what I needed. Unfortunately, I
am not able to transfer the example to my<br>
own project. The CustomLinkView-project compiles fine. However, when
I add the following line to my project, I receive an error:<br>
<br>
- from CustomLinkView: <br>
<br>
Connections->Connect(<br>
this->TableView->GetRepresentation(),<br>
vtkCommand::SelectionChangedEvent,<br>
this,<br>
SLOT(selectionChanged(vtkObject*, unsigned long, void*,
void*)));<br>
<br>
- my example:<br>
<br>
c_connections = vtkSmartPointer<vtkEventQtSlotConnect>::New();<br>
<br>
c_connections->Connect(<br>
this->GetRepresentation(), // this points to my own class
which I derived from "vtkQtTableView"<br>
vtkCommand::SelectionChangedEvent,<br>
this,<br>
SLOT(selectionChanged(vtkObject*, unsigned long, void*,
void*)));<br>
<br>
- error:<br>
<br>
error C2664: 'vtkEventQtSlotConnect::Connect' : cannot convert
parameter 1 from 'vtkDataRepresentation *' to 'vtkObject *'<br>
1> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast<br>
<br>
Do you have any idea why this is happening?<br>
<br>
Cheers,<br>
Steffen<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 25.02.2011 16:14, Jeff Baumes wrote:
<blockquote
cite="mid:AANLkTi=5HYkTUygcranm70BYwUkwygY5++ssAyLtcU1y@mail.gmail.com"
type="cite">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.
<div><br>
</div>
<div>Jeff<br>
<br>
<div class="gmail_quote">
On Fri, Feb 25, 2011 at 1:38 AM, Steffen Oeltze <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:stoeltze@isg.cs.uni-magdeburg.de">stoeltze@isg.cs.uni-magdeburg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"> Hi Jeff, <br>
<br>
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.<br>
<br>
Best Regards,<br>
Steffen<br>
<br>
<br>
Am 23.02.2011 21:53, schrieb Jeff Baumes:
<div>
<div class="h5">
<blockquote type="cite">This is the same approach I
would take. I don't know of any existing
implementations that perform that same function.
<div><br>
</div>
<div>Jeff<br>
<br>
<div class="gmail_quote">On Tue, Feb 22, 2011 at
10:05 AM, Steffen Oeltze <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:stoeltze@isg.cs.uni-magdeburg.de"
target="_blank">stoeltze@isg.cs.uni-magdeburg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:
0pt 0pt 0pt 0.8ex; border-left: 1px solid
rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
in my graph visualization, I would like to
visually emphasize all edges which are
connected to a user-selected node. Is<br>
there an implementation which I can use for
that purpose? Otherwise, I would try the
following strategy: (1) get the<br>
selected node, (2) find incident edges using
vtkAdjacentVertexIterator, and (3) emphasize
these edges.<br>
<br>
Best Regards,<br>
Steffen<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com"
target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the
VTK FAQ at: <a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ"
target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jeff Baumes, Ph.D.<br>
Technical Lead, Kitware Inc.<br>
(518) 881-4932<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jeff Baumes, Ph.D.<br>
Technical Lead, Kitware Inc.<br>
(518) 881-4932<br>
</div>
</blockquote>
<br>
</body>
</html>