<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
    space; -webkit-line-break: after-white-space;" bgcolor="#FFFFFF"
    text="#000000">
    <div>Dear Utkarsh,</div>
    <div><br>
    </div>
    <div>thank you very much for your fast reply and the provided
      example.<br>
      I compiled PV4.2RC2 from source and just tried to compile your
      example. Nevertheless I receive a compilation error complaining
      that the file<br>
      <br>
      <span style=" color:#008000;">vtkSMParaViewPipelineControllerWithRendering.h</span><br>
    </div>
    <div><br>
    </div>
    <div>cannot be found.<br>
      Where is this file supposed to be residing ?<br>
      <br>
      Thank you.<br>
      <br>
      Best regards,<br>
      <br>
      Florian<br>
      <br>
      <br>
    </div>
    <br>
    <div class="AppleOriginalContents" style="direction: ltr;">
      <div>Am 15.09.2014 um 17:16 schrieb Utkarsh Ayachit
        <a class="moz-txt-link-rfc2396E" href="mailto:utkarsh.ayachit@kitware.com"><utkarsh.ayachit@kitware.com></a>:</div>
      <br class="Apple-interchange-newline">
      <blockquote type="cite">Attached is an example based on ParaView
        4.2-RC1. As it shows, you<br>
        cannot directly use VTK objects to create visualization
        pipelines in<br>
        ParaView. While this can surely be done with 4.1 or earlier, I'd<br>
        suggest basing off 4.2, if possible since it simplified a lot of
        this<br>
        initialization.<br>
        <br>
        Utkarsh<br>
        <br>
        On Mon, Sep 15, 2014 at 10:23 AM, Florian Hoffmann<br>
        <a class="moz-txt-link-rfc2396E" href="mailto:florian.hoffmann@inutech.de"><florian.hoffmann@inutech.de></a> wrote:<br>
        <blockquote type="cite">I would like to automatically add a
          glyph filter and render the correctly<br>
          scaled spheres after the user has opened a file in my custom
          dock widget.<br>
          I created a DockWidget using the example in
          /examples/Plugins/DockWidget.<br>
          When pressing a button a specific file is being opened for the
          user by the<br>
          following calls:<br>
          <br>
          void on_button_clicked()<br>
          {<br>
                 QString xdmfFile = "C:\\..\\unknown_case.xdmf";<br>
          <br>
             QStringList visuFiles;<br>
          <br>
             visuFiles.append(xdmfFile);<br>
          <br>
             pqPipelineSource* pqPlinesource =<br>
          pqLoadDataReaction::loadData(visuFiles);<br>
          <br>
             pqPlinesource->updatePipeline();<br>
          <br>
            // TODO:<br>
            // add spherical glyph for loaded polyData<br>
            // scale spherical glyphs by a scalar attribute/property<br>
            // render glyphs<br>
          <br>
          }<br>
          <br>
          I would like to include that the code automatically adds
          spherical glyphs<br>
          and renders them for the data just loaded.<br>
          <br>
          I tried the following code but I am not sure if it works<br>
          <br>
                         vtkSMProxy *myProxy =
          pqPlinesource->getProxy();<br>
          <br>
                 vtkObjectBase *myObject =
          myProxy->GetClientSideObject();<br>
          <br>
                 vtkAlgorithm *myvtkAlgo =
          vtkAlgorithm::SafeDownCast(myObject);<br>
          <br>
                 vtkGlyph3D *myspheres =  vtkGlyph3D::New();<br>
          <br>
       myspheres->SetSourceConnection(myvtkAlgo->GetOutputPort());<br>
          <br>
          <br>
          <br>
          In case this is supposed to work, how can I now update the
          pipeline and<br>
          render the spheres using C++ PV core functionality ? (The user
          should also<br>
          see the result in the pipeline browser dock of the GUI).<br>
          <br>
          In case my approach is totally wrong, what would be the right
          way of<br>
          handling this situation ?<br>
          <br>
          Thank you.<br>
          <br>
          Best regards,<br>
          <br>
          Florian<br>
          <br>
          _______________________________________________<br>
          Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at<br>
          <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the ParaView Wiki at:<br>
          <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a><br>
          <br>
        </blockquote>
        <span class="AppleTemporaryEditingElement"
          id="cid:F67B7FAD-BF07-44B9-AFC6-C80166862CAB@fritz.box"><DockWidget.tar.gz></span></blockquote>
    </div>
    <br>
    <br>
  </body>
</html>