<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>Thank you very much sir, this is what I am looking for ! Handling
      a 2D color map (spectrogram) in a 3D space is very messy.</p>
    <p>I don't know why they chose the name "histogram" for this VTK
      chart and why it isn't popular (It is not used in ParaView, and
      "histogram" isn't the chart with bars used in image processing ?).<br>
    </p>
    <p>I hope this chart will allow me to display a waterfall in a
      not-too-disgusting way<span class="st"><em></em></span>. In a 3D
      space, I'm modifiying the camera parameters to show the waterfall
      effect.<br>
    </p>
    <p>However, in the test example, I commented these lines :<br>
    </p>
    <p>//chart->MouseButtonPressEvent(mouseEvent);<br>
      //chart->MouseButtonReleaseEvent(mouseEvent); // segfault<br>
    </p>
    <p>As, in "vtkIdType vtkPlotHistogram2D::GetNearestPoint(const
      vtkVector2f& point, const vtkVector2f& tolerance,
      vtkVector2f* location)"</p>
    <p>the member "Input" (vtkSmartPointer<vtkImageData>) is not
      checked against nullptr.</p>
    Best regards.<br>
    <br>
    <div class="moz-cite-prefix">Le 15/12/2018 à 07:14, kenichiro
      yoshimi a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHDyfPAYtEut_Gve_gk5LJ06a=fN7BBN4Czx+7r6TXsDA0QtAA@mail.gmail.com">
      <pre wrap="">Hi,

I had a look at this test which you were just looking for:
<a class="moz-txt-link-freetext" href="https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestHistogram2D.cxx">https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestHistogram2D.cxx</a>

Best,

2018年12月14日(金) 23:57 Mohamed Amine Mzoughi <a class="moz-txt-link-rfc2396E" href="mailto:aminemzoughi@febus-optics.com"><aminemzoughi@febus-optics.com></a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">
Hello,

I've seen this screenshot of a 2D chart :
<a class="moz-txt-link-freetext" href="https://www.na-mic.org/wiki/File:VTK-Charts-Histogram2D.png">https://www.na-mic.org/wiki/File:VTK-Charts-Histogram2D.png</a> and I didn't
find the VTK class that allows me to create it. (the original link is :
<a class="moz-txt-link-freetext" href="https://www.na-mic.org/wiki/2011_Summer_Project_Week_Breakout_Session_VTKCharts">https://www.na-mic.org/wiki/2011_Summer_Project_Week_Breakout_Session_VTKCharts</a>).
Is this chart was removed ? where can I found its source code ?

Currently I am using a vtkImageActor to display a 2-D color map (or
spectrogram) but I am struggling with the camera and the scale of the
actor to make it right (to fit the whole window) and I am drawing the
axis in another QVTKOpenGL widget managing a 2D scene (vtkAxis - like
the ParaView Slice View). I am not really comfortable with this solution.

I don't want to use APIs like QCustomPlot or Qwt because I will have to
convert my data to use them and this will add another dependency to my
program.

I played a little with vtkContextView, vtkContextArea and vtkImageItem
to display a vtkImageData, but there is no possibility to change the
color or display a vtkImageData whose point data array has a single
compnent (it should have 4 components: r,g,b,a).

Thanks.

_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="https://public.kitware.com/mailman/listinfo/vtkusers">https://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>