If yu have access to the vtkChartXY object in the getPointSelected function()<br>you can retrieve the ID&#39;s using the following command<br><br>vtkIdTypeArray *idarray = chartxy-&gt;GetPlot(0)-&gt;GetSelection();<br><br>
you can iterate through the Id&#39;s and retrieve the corresponding points .<br><br>Regards<br><br><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 7:11 PM, Giuseppe Marco Randazzo <span dir="ltr">&lt;<a href="mailto:gmrandazzo@gmail.com" target="_blank">gmrandazzo@gmail.com</a>&gt;</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">
    <div>Points are selected, but i&#39;m not able
      to get these selected points... i&#39;m not able to accesso to
      selection. <br>
      vtkChartXY i know that is not a Qt Widget. I put a vtkchartXY into
      a qvtkwidget.<br>
      <br>
      My connection works, but i&#39;m my slot getPointSelected() is empty<br>
      <br>
      getPointSelected()<br>
      {<br>
         // how to get point selected?<br>
      }<br>
      <br>
      regards and thanks a lot :)<div><div class="h5"><br>
      <br>
      <br>
      <br>
      On 09/04/2012 12:41 AM, Darshan Pai wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">What exactly is your error? Does it highlight or not?<br>
      vtkChartXY is not a Qt Widget , so I am not sure how were you able
      to use vtkQtSlotConnect .<br>
      <br>
      Regards<br>
      <br>
      <br>
      <div class="gmail_quote">On Mon, Sep 3, 2012 at 11:56 AM, Giuseppe
        Marco Randazzo <span dir="ltr">&lt;<a href="mailto:gmrandazzo@gmail.com" target="_blank">gmrandazzo@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
          <br>
          i&#39;ve some questions about Rubberband selection on vtkchartxy.
          I&#39;m not able to use this features.<br>
          <br>
          I&#39;m using vtk inside a qt widget, so i implemented a slot and
          after connectet this through:<br>
          <br>
            Connections = vtkEventQtSlotConnect::New();<br>
          Connections-&gt;Connect(ui.qvtkWidget-&gt;GetRenderWindow()-&gt;GetInteractor(),<br>
                                  vtkCommand::RightButtonReleaseEvent,<br>
                                  this,<br>
                                  SLOT(getPointSelected()),0, 1.0);<br>
          <br>
          <br>
          When i select some points on plot with the rubberband
          selector, the points are highlited and the slot
          getPointSelected() work.<br>
          My questions are:<br>
          <br>
          Is possible get the points highlighted? and how?<br>
          is there a better solution than mine?<br>
          <br>
          Thanks<br>
          <br>
          Giuseppe Marco Randazzo<br>
          <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>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br>