<!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">
    <big><font size="-1" face="Tahoma"><big>I encounter the same problem
          as you, indeed.</big></font></big><font face="Tahoma"><br>
      I opened a new post (take a look at<big> </big></font><font
      face="Tahoma"><span class="Apple-style-span"
        style="border-collapse: separate; color: rgb(0, 0, 0);
        font-family: 'Times New Roman'; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: normal; orphans: 2; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; font-size: medium;"><big>"</big></span></font><font
      face="Tahoma"><span class="Apple-style-span"
        style="border-collapse: separate; color: rgb(0, 0, 0);
        font-family: 'Times New Roman'; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: normal; orphans: 2; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; font-size: medium;"><big>integrate a
          vtkOrientationMarkerWidget into a QVtkWidget" if the answer
          come first here</big> </span>).<br>
      <br>
      I think it doesn't come from vtkSmartPointer but more with the
      relation between the renderer and the interactor but I can't find
      what it is exactly...</font><br>
    <br>
    Hope we'll find a solution...<br>
    <br>
    Nicolas S.<br>
    <br>
    <br>
    Le 17/09/2010 16:57, Benoist Laurent a &eacute;crit&nbsp;:
    <blockquote cite="mid:8BA60F0E-EF10-4A37-A6CF-7F8137981F1A@ibpc.fr"
      type="cite">Hi all,
      <div><br>
      </div>
      <div>The example works very well.</div>
      <div>However, when I try to put the code relative to the axes in a
        different fonction the application crashes.</div>
      <div><br>
      </div>
      <div>
        <div>void displayAxes(vtkRenderWindowInteractor
          *renderWindowInteractor)</div>
        <div>{&nbsp;</div>
        <div>&nbsp;&nbsp; &nbsp;vtkSmartPointer&lt;vtkAxesActor&gt; axes =&nbsp;</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;vtkSmartPointer&lt;vtkAxesActor&gt;::New();</div>
        <div><br>
        </div>
        <div>&nbsp;&nbsp; &nbsp;vtkSmartPointer&lt;vtkOrientationMarkerWidget&gt;
          widget =&nbsp;</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp;
          &nbsp;vtkSmartPointer&lt;vtkOrientationMarkerWidget&gt;::New();</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;SetOutlineColor( 0.9300, 0.5700, 0.1300 );</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;SetOrientationMarker( axes );</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;SetInteractor( renderWindowInteractor );</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;SetViewport( 0.0, 0.0, 0.4, 0.4 );</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;SetEnabled( 1 );</div>
        <div>&nbsp;&nbsp; &nbsp;widget-&gt;InteractiveOn();</div>
        <div>}</div>
      </div>
      <div><br>
      </div>
      <div>So I guess there's something I did not understand with the
        vtkSmartPointer and/or the vtkWidget.</div>
      <div><br>
      </div>
      <div>An idea ?</div>
      <div>Thanks,</div>
      <div><br>
      </div>
      <div>Benoist</div>
      <div><br>
        <div><br>
          <div>
            <div>Le 17 sept. 10 &agrave; 15:55, Nicolas Sarrasin a &eacute;crit :</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">
              <div bgcolor="#ffffff" text="#003333"> <font size="-1"><font
                    face="Tahoma">Thanks very much! <br>
                    It's exactly what I wanted.<br>
                  </font></font><br>
                Le 16/09/2010 18:55, David Doria a &eacute;crit&nbsp;:
                <blockquote
                  cite="mid:AANLkTi=pyP=R1sijAYXDJOjt7it3zSNvSn61B6=89o=+@mail.gmail.com"
                  type="cite">
                  <div class="gmail_quote">On Thu, Sep 16, 2010 at 12:31
                    PM, Nicolas Sarrasin <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</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="#003333"> Hi all,<br>
                        <br>
                        How can i display 3Daxes in the bottom-right
                        corner of my window ? <br>
                        I want to fix the position in the screen, not in
                        the space.<br>
                        <br>
                        I can render those axes with vtkAxesActor but I
                        don't know to to fix its position.<br>
                        <br>
                        Thanks by advance,<br>
                        <br>
                        N. Sarrasin<br>
                      </div>
                      <div bgcolor="#ffffff" text="#003333"><br>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>Try this:&nbsp;</div>
                    <a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes</a><br
                      clear="all">
                    <br>
                    <div>David&nbsp;</div>
                  </div>
                </blockquote>
                <br>
              </div>
              _______________________________________________<br>
              Powered by <a moz-do-not-send="true"
                href="http://www.kitware.com">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">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </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.03050105.03090307@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>