<!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">
    Thank you very much for the quick and, as always, very helpful
    reply.<br>
    <br>
    Steffen<br>
    <br>
    <br>
    On 03.03.2011 17:23, Jeff Baumes wrote:
    <blockquote
      cite="mid:AANLkTim9cwWStyvc357kQRBNhBmR7vt7ze0-jgKPKiZ5@mail.gmail.com"
      type="cite">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">&lt;<a moz-do-not-send="true"
              href="mailto:stoeltze@isg.cs.uni-magdeburg.de">stoeltze@isg.cs.uni-magdeburg.de</a>&gt;</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 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>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; - from CustomLinkView: <br>
              <br>
              Connections-&gt;Connect(<br>
              &nbsp;&nbsp;&nbsp; this-&gt;TableView-&gt;GetRepresentation(),<br>
              &nbsp;&nbsp;&nbsp; vtkCommand::SelectionChangedEvent,<br>
              &nbsp;&nbsp;&nbsp; this,<br>
              &nbsp;&nbsp;&nbsp; SLOT(selectionChanged(vtkObject*, unsigned long,
              void*, void*)));<br>
              <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; - my example:<br>
              <br>
              c_connections =
              vtkSmartPointer&lt;vtkEventQtSlotConnect&gt;::New();<br>
              <br>
              c_connections-&gt;Connect(<br>
              &nbsp;&nbsp;&nbsp; this-&gt;GetRepresentation(),&nbsp; // this points to my
              own class which I derived from "vtkQtTableView"<br>
              &nbsp;&nbsp;&nbsp; vtkCommand::SelectionChangedEvent,<br>
              &nbsp;&nbsp;&nbsp; this,<br>
              &nbsp;&nbsp;&nbsp; SLOT(selectionChanged(vtkObject*, unsigned long,
              void*, void*)));<br>
              <br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; - error:<br>
              <br>
              error C2664: 'vtkEventQtSlotConnect::Connect' : cannot
              convert parameter 1 from 'vtkDataRepresentation *' to
              'vtkObject *'<br>
              1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 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">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:stoeltze@isg.cs.uni-magdeburg.de"
                            target="_blank">stoeltze@isg.cs.uni-magdeburg.de</a>&gt;</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">&lt;<a
                                          moz-do-not-send="true"
                                          href="mailto:stoeltze@isg.cs.uni-magdeburg.de"
                                          target="_blank">stoeltze@isg.cs.uni-magdeburg.de</a>&gt;</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>
                </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>