<!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="#000000">
    Hello Eric, <br>
    <br>
    Thank you for the suggestion. <br>
    <br>
    I used vtkPoints instead of vtkDoubleArray to insert the points of
    the graph and I found out about vtkGraphToPolyData, this allowed to
    convert the lines and the vertices into polydata and then into
    actors. Very useful because I want to compare this with the dataset.<br>
    <br>
    Sincerely,<br>
    <br>
    Le 09/09/2011 15:17, Eric E. Monson a &eacute;crit&nbsp;:
    <blockquote
      cite="mid:2B558E37-0409-40D0-AA24-725F72546B27@cs.duke.edu"
      type="cite">Hello Juan Carlos,
      <div><br>
      </div>
      <div>You can show your tree with a vtkGraphLayoutView, but use
        SetLayoutStrategyToPassThrough() so it won't try to do any
        layout on the graph. With that layout strategy it will just use
        the coordinates that are already stored in the tree/graph.</div>
      <div><br>
      </div>
      <div>Good luck,</div>
      <div>-Eric</div>
      <div><br>
        <div>
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            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;"><span class="Apple-style-span"
              style="border-collapse: separate; color: rgb(0, 0, 0);
              font-family: Helvetica; font-size: 12px; 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;">
              <div style="word-wrap: break-word;">
                <div>&middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot;
                  &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot; &middot;</div>
                <div>Eric E Monson</div>
                <div>Duke Visualization Technology Group</div>
                <div><br class="webkit-block-placeholder">
                </div>
              </div>
            </span><br>
          </span></div>
        <div>
          <div>On Sep 9, 2011, at 6:22 AM, Juan Carlos Prieto wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta http-equiv="content-type" content="text/html;
              charset=ISO-8859-1">
            <div bgcolor="#ffffff" text="#000000"> Hello Everyone, <br>
              <br>
              I was wondering if is possible to assign coordinates to
              the vtkTree. I have an algorithm that collects a number of
              points from an image and it stores them in the vtkTree,
              I'm using a MutableDirectedGraph and a vtkDoubleArray to
              store the coordinates of each point, then assigning the
              Array to the Graph and finally converting them to a
              vtkTree. <br>
              <br>
              It is possible to show this tree using the coordinates?
              from the examples, I can't find one that does this type of
              operation. <br>
              <br>
              any suggestions will be greatly appreciated. <br>
              <br>
              Have a nice day
              <div class="moz-signature">-- <br>
                Juan Carlos Prieto <font face="arial" color="grey"
                  size="2"> <br>
                  Phd Student <br>
                  <a moz-do-not-send="true"
                    href="http://www.creatis.insa-lyon.fr/">CREATIS</a>
                  Tel:+33472438918 <br>
                  7 Av Jean Capelle <br>
                  69621 Villeurbanne Cedex <br>
                  France <br>
                  <a moz-do-not-send="true"
                    href="http://www.creatis.insa-lyon.fr/%7Eprieto">Personal

                    page</a> </font> </div>
            </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>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Juan Carlos Prieto
      <font face="arial" color="grey" size="2">
        <br>
        Phd Student
        <br>
        <a href="http://www.creatis.insa-lyon.fr">CREATIS</a>
        Tel:+33472438918
        <br>
        7 Av Jean Capelle
        <br>
        69621 Villeurbanne Cedex
        <br>
        France <br>
        <a href="http://www.creatis.insa-lyon.fr/%7Eprieto">Personal
          page</a>
      </font>
    </div>
  </body>
</html>