Try adding<div><br></div><div>#include "vtkDataRepresentation.h"</div><div><br></div><div>to the top of your source file to help the compiler figure out that it is indeed a vtkObject subclass.</div><div><br></div>
<div>Jeff<br><br><div class="gmail_quote">On Thu, Mar 3, 2011 at 11:17 AM, Steffen Oeltze <span dir="ltr"><<a href="mailto:stoeltze@isg.cs.uni-magdeburg.de">stoeltze@isg.cs.uni-magdeburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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><font color="#888888">
Steffen</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
On 25.02.2011 16:14, Jeff Baumes wrote:
<blockquote 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 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">
<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>
<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 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 href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 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 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>
</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>