<!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="#003333">
    <font size="-1"><font face="Tahoma">Hi Jim,<br>
        <br>
        When I try to set my interactor according to your steps</font></font>
    <small>i get the following warnings and my AxesActors aren't
      displayed :<br>
      <br>
      Generic Warning: In </small><small>(vktdir)</small><small>\Widgets\vtkOrientationMarkerWidget.cxx,
      line 533<br>
      Set interactor and Enabled before changing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interaction.<br>
      <br>
      ERROR: In (vktdir)\GUISupport\Qt\QVTKWidget.cxx, line 968<br>
      QVTKInteractor (028ABC68): QVTKInteractor cannot control the event
      loop.<br>
      <br>
      Any idea ?<br>
      <br>
    </small><br>
    Le 17/09/2010 17:22, Jim Peterson a &eacute;crit&nbsp;:
    <blockquote cite="mid:4C9387A2.4060500@cox.net" type="cite">I Am not
      sure if this is a factor based on the information provided, but it
      appears the vtkOrientationMarkerWidget expects the
      renderWindowInteractor to be connected to the RenderWindow before
      widget is connected to the RenderWindowInteractor.&nbsp; At least that
      appears to be the controlling factor from my Java implementations.
      <br>
      <br>
      in other words, Widget.SetInteractor() prior to
      RenderWindow.SetInteractor() or
      RenderWindowInteractor.SetRenderWindow() fails.
      Widget.SetInteractor() after either of the other functions works.
      <br>
      <br>
      HTH,
      <br>
      Jim
      <br>
      <br>
      Benoist Laurent wrote:
      <br>
      <blockquote type="cite">Hi all,
        <br>
        <br>
        The example works very well.
        <br>
        However, when I try to put the code relative to the axes in a
        different fonction the application crashes.
        <br>
        <br>
        void displayAxes(vtkRenderWindowInteractor
        *renderWindowInteractor)
        <br>
        { &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkAxesActor&gt; axes = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        vtkSmartPointer&lt;vtkAxesActor&gt;::New();
        <br>
        <br>
        &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkOrientationMarkerWidget&gt; widget =
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        vtkSmartPointer&lt;vtkOrientationMarkerWidget&gt;::New();
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;SetOutlineColor( 0.9300, 0.5700, 0.1300 );
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;SetOrientationMarker( axes );
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;SetInteractor( renderWindowInteractor );
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;SetViewport( 0.0, 0.0, 0.4, 0.4 );
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;SetEnabled( 1 );
        <br>
        &nbsp;&nbsp;&nbsp; widget-&gt;InteractiveOn();
        <br>
        }
        <br>
        <br>
        So I guess there's something I did not understand with the
        vtkSmartPointer and/or the vtkWidget.
        <br>
        <br>
        An idea ?
        <br>
        Thanks,
        <br>
        <br>
        Benoist
        <br>
        <br>
        <br>
        Le 17 sept. 10 &agrave; 15:55, Nicolas Sarrasin a &eacute;crit :
        <br>
        <br>
        <blockquote type="cite">Thanks very much!
          <br>
          It's exactly what I wanted.
          <br>
          <br>
          Le 16/09/2010 18:55, David Doria a &eacute;crit :
          <br>
          <blockquote type="cite">On Thu, Sep 16, 2010 at 12:31 PM,
            Nicolas Sarrasin &lt;<a class="moz-txt-link-abbreviated" href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</a>
            <a class="moz-txt-link-rfc2396E" href="mailto:nsarrasin@phenix-systems.com">&lt;mailto:nsarrasin@phenix-systems.com&gt;</a>&gt; wrote:
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; Hi all,
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; How can i display 3Daxes in the bottom-right corner of
            my window ?
            <br>
            &nbsp;&nbsp;&nbsp; I want to fix the position in the screen, not in the
            space.
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; I can render those axes with vtkAxesActor but I don't
            know to to
            <br>
            &nbsp;&nbsp;&nbsp; fix its position.
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; Thanks by advance,
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; N. Sarrasin
            <br>
            <br>
            <br>
            Try this:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes</a><br>
            <br>
            David </blockquote>
          <br>
          _______________________________________________
          <br>
          Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.kitware.com">&lt;http://www.kitware.com&gt;</a>
          <br>
          <br>
          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>
          <br>
          <br>
          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>
          <br>
          <br>
          Follow this link to subscribe/unsubscribe:
          <br>
          <a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
          <br>
        </blockquote>
        <br>
------------------------------------------------------------------------
        <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
        <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 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>
        <br>
        <br>
        Follow this link to subscribe/unsubscribe:
        <br>
        <a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
        <br>
        &nbsp; </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <hr style="width: 100%; height: 2px;">
      <table style="text-align: left; font-family: Verdana; width:
        500px; height: 110px;" border="0" cellpadding="2"
        cellspacing="0">
        <tbody>
          <tr>
            <td style="text-align: center; width: 80px; font-family:
              Verdana;"><a><img style="border: 0px solid; width: 75px;
                  height: 66px;" alt="Logo Phenix Systems"
                  src="cid:part1.00060806.00040503@phenix-systems.com"></a></td>
            <td style="width: 506px; font-family: Verdana;"><small
                style="color: rgb(51, 102, 102);"><span
                  style="font-weight: bold;">Nicolas Sarrasin -
                  Ing&eacute;nieur Developpement 3D CFAO</span><br
                  style="background-color: transparent;">
                <a style="background-color: transparent;
                  text-decoration: underline;">Phenix systems</a><br
                  style="background-color: transparent; font-style:
                  italic;">
                <small><span style="background-color: transparent;
                    font-style: italic;"> Parc Europ&eacute;en d'Entreprises </span><br
                    style="background-color: transparent; font-style:
                    italic;">
                  <span style="background-color: transparent;
                    font-style: italic;">
                    rue Richard Wagner - 63200 Riom FRANCE </span><br
                    style="font-style: italic;">
                  <span style="font-style: italic;">
                    tel : +33 (0)4 73 33 45 85 | fax : +33 (0)4 73 33 45
                    86 </span></small></small></td>
          </tr>
          <tr style="font-family: Verdana;">
            <td colspan="2" rowspan="1" style="width: 80px;"><font
                size="2" color="#36a629">Pensez environnement&nbsp;!</font><br>
              <font size="1" color="#36a629">N'imprimez ce mail que si
                c'est vraiment n&eacute;cessaire</font></td>
          </tr>
        </tbody>
      </table>
      <br style="font-family: Verdana;">
    </div>
  </body>
</html>